Top Description Inners Fields Methods
com.sun.xml.xsom

public Interface XSModelGroup

extends XSComponent, XSTerm, Iterable<XSParticle>
Known Direct Implementers
com.sun.xml.xsom.impl.ModelGroupImpl

Model group.
Author
Kohsuke Kawaguchi ([email protected])

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum
XSModelGroup.Compositor

Type-safe enumeration for kind of model groups.

Field Summary

Modifier and TypeField and Description
public static final XSModelGroup.Compositor
ALL

A constant that represents "all" compositor.

public static final XSModelGroup.Compositor
CHOICE

A constant that represents "choice" compositor.

public static final XSModelGroup.Compositor
SEQUENCE

A constant that represents "sequence" compositor.

Method Summary

Modifier and TypeMethod and Description
public XSParticle
getChild(int idx)

Gets i-ith child.

public XSParticle[]
getChildren()

Gets all the children in one array.

public XSModelGroup.Compositor
public int
getSize()

Gets the number of children.

Inherited from com.sun.xml.xsom.XSComponent:
applygetAnnotationgetAnnotationgetForeignAttributegetForeignAttributesgetLocatorgetOwnerSchemagetRootgetSourceDocumentselectselectSinglevisit
Inherited from com.sun.xml.xsom.XSTerm:
applyapplyasElementDeclasModelGroupasModelGroupDeclasWildcardisElementDeclisModelGroupisModelGroupDeclisWildcardvisit
Inherited from java.lang.Iterable:
forEachiteratorspliterator

Field Detail

ALLback to summary
public static final XSModelGroup.Compositor ALL

A constant that represents "all" compositor.

CHOICEback to summary
public static final XSModelGroup.Compositor CHOICE

A constant that represents "choice" compositor.

SEQUENCEback to summary
public static final XSModelGroup.Compositor SEQUENCE

A constant that represents "sequence" compositor.

Method Detail

getChildback to summary
public XSParticle getChild(int idx)

Gets i-ith child.

getChildrenback to summary
public XSParticle[] getChildren()

Gets all the children in one array.

getCompositorback to summary
public XSModelGroup.Compositor getCompositor()
getSizeback to summary
public int getSize()

Gets the number of children.

com.sun.xml.xsom back to summary

public final Enum XSModelGroup.Compositor

extends Enum<XSModelGroup.Compositor>
Class Inheritance

Type-safe enumeration for kind of model groups. Constants are defined in the XSModelGroup interface.

Field Summary

Modifier and TypeField and Description
public static final XSModelGroup.Compositor
public static final XSModelGroup.Compositor
public static final XSModelGroup.Compositor
private final String

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

Either "all", "sequence", or "choice".
toString
()

Overrides java.lang.Enum.toString.

Returns the human-readable compositor name.

public static XSModelGroup.Compositor
public static XSModelGroup.Compositor[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinalvalueOf

Field Detail

ALLback to summary
public static final XSModelGroup.Compositor ALL
CHOICEback to summary
public static final XSModelGroup.Compositor CHOICE
SEQUENCEback to summary
public static final XSModelGroup.Compositor SEQUENCE
valueback to summary
private final String value

Constructor Detail

Compositorback to summary
private Compositor(String _value)

Method Detail

toStringback to summary
public String toString()

Overrides java.lang.Enum.toString.

Returns the human-readable compositor name.

Returns:String

Either "all", "sequence", or "choice".

valueOfback to summary
public static XSModelGroup.Compositor valueOf(String name)
valuesback to summary
public static XSModelGroup.Compositor[] values()