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 XSModelGroup
XSModelGroup.Compositor -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ParticleImpl[]private final XSModelGroup.CompositorFields inherited from class ComponentImpl
ownerDocumentFields inherited from interface XSModelGroup
ALL, CHOICE, SEQUENCE -
Constructor Summary
ConstructorsConstructorDescriptionModelGroupImpl(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.intgetSize()Gets the number of children.getTerm()Obtains a reference as a term.booleanbooleanbooleanbooleaniterator()voidredefine(ModelGroupDeclImpl oldMG) voidvisit(XSTermVisitor visitor) voidAccepts a visitor.Methods inherited from class ComponentImpl
getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface XSComponent
getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle
-
Field Details
-
children
-
compositor
-
-
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: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
Description copied from interface:XSModelGroupGets all the children in one array.- Specified by:
getChildrenin interfaceXSModelGroup
-
getCompositor
- Specified by:
getCompositorin interfaceXSModelGroup
-
redefine
-
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
- Specified by:
asWildcardin interfaceXSTerm
-
asModelGroupDecl
- Specified by:
asModelGroupDeclin interfaceXSTerm
-
asModelGroup
- Specified by:
asModelGroupin interfaceXSTerm
-
asElementDecl
- Specified by:
asElementDeclin interfaceXSTerm
-
visit
Description copied from interface:XSComponentAccepts a visitor.- Specified by:
visitin interfaceXSComponent
-
visit
-
apply
-
apply
-
apply
Description copied from interface:XSComponentAccepts a functor.- Specified by:
applyin interfaceXSComponent
-
getTerm
-