Ref.Term, XSComponent, XSModelGroup, XSTerm, java.lang.Iterable<XSParticle>public class ModelGroupImpl extends ComponentImpl implements XSModelGroup, Ref.Term
XSModelGroup.CompositorownerDocumentALL, CHOICE, SEQUENCE| Constructor | Description |
|---|---|
ModelGroupImpl(SchemaDocumentImpl owner,
AnnotationImpl _annon,
org.xml.sax.Locator _loc,
ForeignAttributesImpl _fa,
XSModelGroup.Compositor _compositor,
ParticleImpl[] _children) |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Object |
apply(XSFunction function) |
Accepts a functor.
|
java.lang.Object |
apply(XSTermFunction function) |
|
<T,P> T |
apply(XSTermFunctionWithParam<T,P> function,
P param) |
|
XSElementDecl |
asElementDecl() |
|
XSModelGroup |
asModelGroup() |
|
XSModelGroupDecl |
asModelGroupDecl() |
|
XSWildcard |
asWildcard() |
|
ParticleImpl |
getChild(int idx) |
Gets i-ith child.
|
ParticleImpl[] |
getChildren() |
Gets all the children in one array.
|
XSModelGroup.Compositor |
getCompositor() |
|
int |
getSize() |
Gets the number of children.
|
XSTerm |
getTerm() |
Obtains a reference as a term.
|
boolean |
isElementDecl() |
|
boolean |
isModelGroup() |
|
boolean |
isModelGroupDecl() |
|
boolean |
isWildcard() |
|
java.util.Iterator<XSParticle> |
iterator() |
|
void |
redefine(ModelGroupDeclImpl oldMG) |
|
void |
visit(XSTermVisitor visitor) |
|
void |
visit(XSVisitor visitor) |
Accepts a visitor.
|
getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSinglepublic ModelGroupImpl(SchemaDocumentImpl owner, AnnotationImpl _annon, org.xml.sax.Locator _loc, ForeignAttributesImpl _fa, XSModelGroup.Compositor _compositor, ParticleImpl[] _children)
public ParticleImpl getChild(int idx)
XSModelGroupgetChild in interface XSModelGrouppublic int getSize()
XSModelGroupgetSize in interface XSModelGrouppublic ParticleImpl[] getChildren()
XSModelGroupgetChildren in interface XSModelGrouppublic XSModelGroup.Compositor getCompositor()
getCompositor in interface XSModelGrouppublic void redefine(ModelGroupDeclImpl oldMG)
public java.util.Iterator<XSParticle> iterator()
iterator in interface java.lang.Iterable<XSParticle>public boolean isWildcard()
isWildcard in interface XSTermpublic boolean isModelGroupDecl()
isModelGroupDecl in interface XSTermpublic boolean isModelGroup()
isModelGroup in interface XSTermpublic boolean isElementDecl()
isElementDecl in interface XSTermpublic XSWildcard asWildcard()
asWildcard in interface XSTermpublic XSModelGroupDecl asModelGroupDecl()
asModelGroupDecl in interface XSTermpublic XSModelGroup asModelGroup()
asModelGroup in interface XSTermpublic XSElementDecl asElementDecl()
asElementDecl in interface XSTermpublic void visit(XSVisitor visitor)
XSComponentvisit in interface XSComponentpublic void visit(XSTermVisitor visitor)
public java.lang.Object apply(XSTermFunction function)
public <T,P> T apply(XSTermFunctionWithParam<T,P> function, P param)
public java.lang.Object apply(XSFunction function)
XSComponentapply in interface XSComponentCopyright © 2017 Oracle Corporation. All rights reserved.