Top Description Fields Constructors Methods
org.apache.xerces.impl.xs

public Class XSModelGroupImpl

extends Object
implements XSModelGroup
Class Inheritance
All Implemented Interfaces
org.apache.xerces.xs.XSModelGroup, org.apache.xerces.xs.XSTerm, org.apache.xerces.xs.XSObject
Imports
org.apache.xerces.impl.xs.util.XSObjectListImpl, org.apache.xerces.xs.XSAnnotation, .XSConstants, .XSModelGroup, .XSNamespaceItem, .XSObjectList

Store schema model group declaration.
Author
Sandy Gao, IBM
Version
$Id: XSModelGroupImpl.java 699892 2008-09-28 21:08:27Z mrglavas $

Field Summary

Modifier and TypeField and Description
public XSObjectList
public short
private String
fDescription

get the string description of this particle

public int
public XSParticleDecl[]
public static final short
public static final short
public static final short

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public XSAnnotation
public XSObjectList
public short
getCompositor()

Implements org.apache.xerces.xs.XSModelGroup.getCompositor.

{compositor} One of all, choice or sequence.
public String
getName()

Implements org.apache.xerces.xs.XSObject.getName.

The name of this XSObject depending on the XSObject type.
public String
getNamespace()

Implements org.apache.xerces.xs.XSObject.getNamespace.

The namespace URI of this node, or null if it is unspecified.
public XSNamespaceItem
getNamespaceItem()

Implements org.apache.xerces.xs.XSObject.getNamespaceItem.

A namespace schema information item corresponding to the target namespace of the component, if it is globally declared; or null otherwise.
public XSObjectList
getParticles()

Implements org.apache.xerces.xs.XSModelGroup.getParticles.

{particles} A list of particles
public short
getType()

Implements org.apache.xerces.xs.XSObject.getType.

Get the type of the object, i.e ELEMENT_DECLARATION.
public boolean
public int
private int
private int
public int
minEffectiveTotalRange()

3.8.6 Effective Total Range (all and sequence) and Effective Total Range (choice) The following methods are used to return min/max range for a particle.

private int
private int
public void
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

fAnnotationsback to summary
public XSObjectList fAnnotations
fCompositorback to summary
public short fCompositor
fDescriptionback to summary
private String fDescription

get the string description of this particle

fParticleCountback to summary
public int fParticleCount
fParticlesback to summary
public XSParticleDecl[] fParticles
MODELGROUP_ALLback to summary
public static final short MODELGROUP_ALL
MODELGROUP_CHOICEback to summary
public static final short MODELGROUP_CHOICE
MODELGROUP_SEQUENCEback to summary
public static final short MODELGROUP_SEQUENCE

Constructor Detail

XSModelGroupImplback to summary
public XSModelGroupImpl()

Method Detail

getAnnotationback to summary
public XSAnnotation getAnnotation()

Implements org.apache.xerces.xs.XSModelGroup.getAnnotation.

Optional. Annotation.

getAnnotationsback to summary
public XSObjectList getAnnotations()

Implements org.apache.xerces.xs.XSModelGroup.getAnnotations.

Optional. Annotations.

getCompositorback to summary
public short getCompositor()

Implements org.apache.xerces.xs.XSModelGroup.getCompositor.

{compositor} One of all, choice or sequence. The valid constants values are: ALL, CHOICE, SEQUENCE.

getNameback to summary
public String getName()

Implements org.apache.xerces.xs.XSObject.getName.

The name of this XSObject depending on the XSObject type.

getNamespaceback to summary
public String getNamespace()

Implements org.apache.xerces.xs.XSObject.getNamespace.

The namespace URI of this node, or null if it is unspecified. defines how a namespace URI is attached to schema components.

getNamespaceItemback to summary
public XSNamespaceItem getNamespaceItem()

Implements org.apache.xerces.xs.XSObject.getNamespaceItem.

Doc from org.apache.xerces.xs.XSObject.getNamespaceItem.

A namespace schema information item corresponding to the target namespace of the component, if it is globally declared; or null otherwise.

See Also
org.apache.xerces.xs.XSObject#getNamespaceItem()
getParticlesback to summary
public XSObjectList getParticles()

Implements org.apache.xerces.xs.XSModelGroup.getParticles.

{particles} A list of particles

getTypeback to summary
public short getType()

Implements org.apache.xerces.xs.XSObject.getType.

Get the type of the object, i.e ELEMENT_DECLARATION.

isEmptyback to summary
public boolean isEmpty()
maxEffectiveTotalRangeback to summary
public int maxEffectiveTotalRange()
maxEffectiveTotalRangeAllSeqback to summary
private int maxEffectiveTotalRangeAllSeq()
maxEffectiveTotalRangeChoiceback to summary
private int maxEffectiveTotalRangeChoice()
minEffectiveTotalRangeback to summary
public int minEffectiveTotalRange()

3.8.6 Effective Total Range (all and sequence) and Effective Total Range (choice) The following methods are used to return min/max range for a particle. They are not exactly the same as it's described in the spec, but all the values from the spec are retrievable by these methods.

minEffectiveTotalRangeAllSeqback to summary
private int minEffectiveTotalRangeAllSeq()
minEffectiveTotalRangeChoiceback to summary
private int minEffectiveTotalRangeChoice()
resetback to summary
public void reset()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.