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>
-
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
ConstructorDescriptionModelGroupImpl
(SchemaDocumentImpl owner, AnnotationImpl _annon, Locator _loc, ForeignAttributesImpl _fa, XSModelGroup.Compositor _compositor, ParticleImpl[] _children) -
Method Summary
Modifier and TypeMethodDescriptionapply
(XSFunction function) Accepts a functor.apply
(XSTermFunction function) <T,
P> T apply
(XSTermFunctionWithParam<T, P> function, P param) getChild
(int idx) Gets i-ith child.Gets all the children in one array.int
getSize()
Gets the number of children.getTerm()
Obtains a reference as a term.boolean
boolean
boolean
boolean
iterator()
void
redefine
(ModelGroupDeclImpl oldMG) void
visit
(XSTermVisitor visitor) void
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 Details
-
ModelGroupImpl
public ModelGroupImpl(SchemaDocumentImpl owner, AnnotationImpl _annon, Locator _loc, ForeignAttributesImpl _fa, XSModelGroup.Compositor _compositor, ParticleImpl[] _children)
-
-
Method Details
-
getChild
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
Description copied from interface:XSModelGroup
Gets all the children in one array.- Specified by:
getChildren
in interfaceXSModelGroup
-
getCompositor
- Specified by:
getCompositor
in interfaceXSModelGroup
-
redefine
-
iterator
- Specified by:
iterator
in interfaceIterable<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
- Specified by:
asWildcard
in interfaceXSTerm
-
asModelGroupDecl
- Specified by:
asModelGroupDecl
in interfaceXSTerm
-
asModelGroup
- Specified by:
asModelGroup
in interfaceXSTerm
-
asElementDecl
- Specified by:
asElementDecl
in interfaceXSTerm
-
visit
Description copied from interface:XSComponent
Accepts a visitor.- Specified by:
visit
in interfaceXSComponent
-
visit
-
apply
-
apply
-
apply
Description copied from interface:XSComponent
Accepts a functor.- Specified by:
apply
in interfaceXSComponent
-
getTerm
Description copied from interface:Ref.Term
Obtains a reference as a term.
-