com.sun.xml.xsom
Interface XSModelGroup

All Superinterfaces:
Iterable<XSParticle>, XSComponent, XSTerm
All Known Implementing Classes:
ModelGroupImpl

public interface XSModelGroup
extends XSComponent, XSTerm, Iterable<XSParticle>

Model group.

Author:
Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)

Nested Class Summary
static class XSModelGroup.Compositor
          Type-safe enumeration for kind of model groups.
 
Field Summary
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
 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 com.sun.xml.xsom.XSTerm
apply, apply, asElementDecl, asModelGroup, asModelGroupDecl, asWildcard, isElementDecl, isModelGroup, isModelGroupDecl, isWildcard, visit
 
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 java.lang.Iterable
iterator
 

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.



Copyright © 2012 Oracle. All Rights Reserved.