Package com.sun.xml.xsom.impl
Class ModelGroupImpl
- java.lang.Object
-
- com.sun.xml.xsom.impl.ComponentImpl
-
- com.sun.xml.xsom.impl.ModelGroupImpl
-
- All Implemented Interfaces:
Ref.Term,XSComponent,XSModelGroup,XSTerm,Iterable<XSParticle>
public class ModelGroupImpl extends ComponentImpl implements XSModelGroup, Ref.Term
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.sun.xml.xsom.XSModelGroup
XSModelGroup.Compositor
-
-
Field Summary
-
Fields inherited from class com.sun.xml.xsom.impl.ComponentImpl
ownerDocument
-
Fields inherited from interface com.sun.xml.xsom.XSModelGroup
ALL, CHOICE, SEQUENCE
-
-
Constructor Summary
Constructors Constructor Description ModelGroupImpl(SchemaDocumentImpl owner, AnnotationImpl _annon, Locator _loc, ForeignAttributesImpl _fa, XSModelGroup.Compositor _compositor, ParticleImpl[] _children)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectapply(XSFunction function)Accepts a functor.Objectapply(XSTermFunction function)<T,P>
Tapply(XSTermFunctionWithParam<T,P> function, P param)XSElementDeclasElementDecl()XSModelGroupasModelGroup()XSModelGroupDeclasModelGroupDecl()XSWildcardasWildcard()ParticleImplgetChild(int idx)Gets i-ith child.ParticleImpl[]getChildren()Gets all the children in one array.XSModelGroup.CompositorgetCompositor()intgetSize()Gets the number of children.XSTermgetTerm()Obtains a reference as a term.booleanisElementDecl()booleanisModelGroup()booleanisModelGroupDecl()booleanisWildcard()Iterator<XSParticle>iterator()voidredefine(ModelGroupDeclImpl oldMG)voidvisit(XSTermVisitor visitor)voidvisit(XSVisitor visitor)Accepts a visitor.-
Methods inherited from class com.sun.xml.xsom.impl.ComponentImpl
getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface com.sun.xml.xsom.XSComponent
getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle
-
-
-
-
Constructor Detail
-
ModelGroupImpl
public ModelGroupImpl(SchemaDocumentImpl owner, AnnotationImpl _annon, Locator _loc, ForeignAttributesImpl _fa, XSModelGroup.Compositor _compositor, ParticleImpl[] _children)
-
-
Method Detail
-
getChild
public ParticleImpl getChild(int idx)
Description copied from interface:XSModelGroupGets i-ith child.- Specified by:
getChildin interfaceXSModelGroup
-
getSize
public int getSize()
Description copied from interface:XSModelGroupGets the number of children.- Specified by:
getSizein interfaceXSModelGroup
-
getChildren
public ParticleImpl[] getChildren()
Description copied from interface:XSModelGroupGets all the children in one array.- Specified by:
getChildrenin interfaceXSModelGroup
-
getCompositor
public XSModelGroup.Compositor getCompositor()
- Specified by:
getCompositorin interfaceXSModelGroup
-
redefine
public void redefine(ModelGroupDeclImpl oldMG)
-
iterator
public Iterator<XSParticle> iterator()
- Specified by:
iteratorin interfaceIterable<XSParticle>
-
isWildcard
public boolean isWildcard()
- Specified by:
isWildcardin interfaceXSTerm
-
isModelGroupDecl
public boolean isModelGroupDecl()
- Specified by:
isModelGroupDeclin interfaceXSTerm
-
isModelGroup
public boolean isModelGroup()
- Specified by:
isModelGroupin interfaceXSTerm
-
isElementDecl
public boolean isElementDecl()
- Specified by:
isElementDeclin interfaceXSTerm
-
asWildcard
public XSWildcard asWildcard()
- Specified by:
asWildcardin interfaceXSTerm
-
asModelGroupDecl
public XSModelGroupDecl asModelGroupDecl()
- Specified by:
asModelGroupDeclin interfaceXSTerm
-
asModelGroup
public XSModelGroup asModelGroup()
- Specified by:
asModelGroupin interfaceXSTerm
-
asElementDecl
public XSElementDecl asElementDecl()
- Specified by:
asElementDeclin interfaceXSTerm
-
visit
public void visit(XSVisitor visitor)
Description copied from interface:XSComponentAccepts a visitor.- Specified by:
visitin interfaceXSComponent
-
visit
public void visit(XSTermVisitor visitor)
-
apply
public Object apply(XSTermFunction function)
-
apply
public <T,P> T apply(XSTermFunctionWithParam<T,P> function, P param)
-
apply
public Object apply(XSFunction function)
Description copied from interface:XSComponentAccepts a functor.- Specified by:
applyin interfaceXSComponent
-
-