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
,java.lang.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, org.xml.sax.Locator _loc, ForeignAttributesImpl _fa, XSModelGroup.Compositor _compositor, ParticleImpl[] _children)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
apply(XSFunction function)
Accepts a functor.java.lang.Object
apply(XSTermFunction function)
<T,P>
Tapply(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.-
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 com.sun.xml.xsom.XSComponent
getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle
-
-
-
-
Constructor Detail
-
ModelGroupImpl
public ModelGroupImpl(SchemaDocumentImpl owner, AnnotationImpl _annon, org.xml.sax.Locator _loc, ForeignAttributesImpl _fa, XSModelGroup.Compositor _compositor, ParticleImpl[] _children)
-
-
Method Detail
-
getChild
public ParticleImpl getChild(int idx)
Description copied from interface:XSModelGroup
Gets i-ith child.- Specified by:
getChild
in interfaceXSModelGroup
-
getSize
public int getSize()
Description copied from interface:XSModelGroup
Gets the number of children.- Specified by:
getSize
in interfaceXSModelGroup
-
getChildren
public ParticleImpl[] getChildren()
Description copied from interface:XSModelGroup
Gets all the children in one array.- Specified by:
getChildren
in interfaceXSModelGroup
-
getCompositor
public XSModelGroup.Compositor getCompositor()
- Specified by:
getCompositor
in interfaceXSModelGroup
-
redefine
public void redefine(ModelGroupDeclImpl oldMG)
-
iterator
public java.util.Iterator<XSParticle> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<XSParticle>
-
isWildcard
public boolean isWildcard()
- Specified by:
isWildcard
in interfaceXSTerm
-
isModelGroupDecl
public boolean isModelGroupDecl()
- Specified by:
isModelGroupDecl
in interfaceXSTerm
-
isModelGroup
public boolean isModelGroup()
- Specified by:
isModelGroup
in interfaceXSTerm
-
isElementDecl
public boolean isElementDecl()
- Specified by:
isElementDecl
in interfaceXSTerm
-
asWildcard
public XSWildcard asWildcard()
- Specified by:
asWildcard
in interfaceXSTerm
-
asModelGroupDecl
public XSModelGroupDecl asModelGroupDecl()
- Specified by:
asModelGroupDecl
in interfaceXSTerm
-
asModelGroup
public XSModelGroup asModelGroup()
- Specified by:
asModelGroup
in interfaceXSTerm
-
asElementDecl
public XSElementDecl asElementDecl()
- Specified by:
asElementDecl
in interfaceXSTerm
-
visit
public void visit(XSVisitor visitor)
Description copied from interface:XSComponent
Accepts a visitor.- Specified by:
visit
in interfaceXSComponent
-
visit
public void visit(XSTermVisitor visitor)
-
apply
public java.lang.Object apply(XSTermFunction function)
-
apply
public <T,P> T apply(XSTermFunctionWithParam<T,P> function, P param)
-
apply
public java.lang.Object apply(XSFunction function)
Description copied from interface:XSComponent
Accepts a functor.- Specified by:
apply
in interfaceXSComponent
-
-