public class ModelGroupImpl extends ComponentImpl implements XSModelGroup, Ref.Term
XSModelGroup.Compositor
ownerDocument
ALL, CHOICE, SEQUENCE
Constructor and Description |
---|
ModelGroupImpl(SchemaDocumentImpl owner,
AnnotationImpl _annon,
Locator _loc,
ForeignAttributesImpl _fa,
XSModelGroup.Compositor _compositor,
ParticleImpl[] _children) |
Modifier and Type | Method and Description |
---|---|
Object |
apply(XSFunction function)
Accepts a functor.
|
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() |
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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle
forEach, spliterator
public ModelGroupImpl(SchemaDocumentImpl owner, AnnotationImpl _annon, Locator _loc, ForeignAttributesImpl _fa, XSModelGroup.Compositor _compositor, ParticleImpl[] _children)
public ParticleImpl getChild(int idx)
XSModelGroup
getChild
in interface XSModelGroup
public int getSize()
XSModelGroup
getSize
in interface XSModelGroup
public ParticleImpl[] getChildren()
XSModelGroup
getChildren
in interface XSModelGroup
public XSModelGroup.Compositor getCompositor()
getCompositor
in interface XSModelGroup
public void redefine(ModelGroupDeclImpl oldMG)
public Iterator<XSParticle> iterator()
iterator
in interface Iterable<XSParticle>
public boolean isWildcard()
isWildcard
in interface XSTerm
public boolean isModelGroupDecl()
isModelGroupDecl
in interface XSTerm
public boolean isModelGroup()
isModelGroup
in interface XSTerm
public boolean isElementDecl()
isElementDecl
in interface XSTerm
public XSWildcard asWildcard()
asWildcard
in interface XSTerm
public XSModelGroupDecl asModelGroupDecl()
asModelGroupDecl
in interface XSTerm
public XSModelGroup asModelGroup()
asModelGroup
in interface XSTerm
public XSElementDecl asElementDecl()
asElementDecl
in interface XSTerm
public void visit(XSVisitor visitor)
XSComponent
visit
in interface XSComponent
public void visit(XSTermVisitor visitor)
public Object apply(XSTermFunction function)
public <T,P> T apply(XSTermFunctionWithParam<T,P> function, P param)
public Object apply(XSFunction function)
XSComponent
apply
in interface XSComponent
Copyright © 2021 JBoss by Red Hat. All rights reserved.