-
- All Superinterfaces:
Iterable<XSParticle>
,XSComponent
,XSTerm
- All Known Implementing Classes:
ModelGroupImpl
public interface XSModelGroup extends XSComponent, XSTerm, Iterable<XSParticle>
Model group.- Author:
- Kohsuke Kawaguchi ([email protected])
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
XSModelGroup.Compositor
Type-safe enumeration for kind of model groups.
-
Field Summary
Fields Modifier and Type Field Description static XSModelGroup.Compositor
ALL
A constant that represents "all" compositor.static XSModelGroup.Compositor
CHOICE
A constant that represents "choice" compositor.static XSModelGroup.Compositor
SEQUENCE
A constant that represents "sequence" compositor.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description XSParticle
getChild(int idx)
Gets i-ith child.XSParticle[]
getChildren()
Gets all the children in one array.XSModelGroup.Compositor
getCompositor()
int
getSize()
Gets the number of children.-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Methods inherited from interface com.sun.xml.xsom.XSComponent
apply, getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle, visit
-
Methods inherited from interface com.sun.xml.xsom.XSTerm
apply, apply, asElementDecl, asModelGroup, asModelGroupDecl, asWildcard, isElementDecl, isModelGroup, isModelGroupDecl, isWildcard, visit
-
-
-
-
Field Detail
-
ALL
static final XSModelGroup.Compositor ALL
A constant that represents "all" compositor.
-
SEQUENCE
static final XSModelGroup.Compositor SEQUENCE
A constant that represents "sequence" compositor.
-
CHOICE
static final XSModelGroup.Compositor CHOICE
A constant that represents "choice" compositor.
-
-
Method Detail
-
getCompositor
XSModelGroup.Compositor getCompositor()
-
getChild
XSParticle getChild(int idx)
Gets i-ith child.
-
getSize
int getSize()
Gets the number of children.
-
getChildren
XSParticle[] getChildren()
Gets all the children in one array.
-
-