Class XSModelGroupImpl
- java.lang.Object
-
- org.smooks.engine.delivery.sax.ng.org.apache.xerces.impl.xs.XSModelGroupImpl
-
- All Implemented Interfaces:
XSModelGroup,XSObject,XSTerm
public class XSModelGroupImpl extends Object implements XSModelGroup
Store schema model group declaration.- Version:
- $Id$
- Author:
- Sandy Gao, IBM
-
-
Field Summary
Fields Modifier and Type Field Description XSObjectListfAnnotationsshortfCompositorintfParticleCountXSParticleDecl[]fParticlesstatic shortMODELGROUP_ALLstatic shortMODELGROUP_CHOICEstatic shortMODELGROUP_SEQUENCE-
Fields inherited from interface org.smooks.engine.delivery.sax.ng.org.apache.xerces.xs.XSModelGroup
COMPOSITOR_ALL, COMPOSITOR_CHOICE, COMPOSITOR_SEQUENCE
-
-
Constructor Summary
Constructors Constructor Description XSModelGroupImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XSAnnotationgetAnnotation()Optional.XSObjectListgetAnnotations()Optional.shortgetCompositor(){compositor} One of all, choice or sequence.StringgetName()Thenameof thisXSObjectdepending on theXSObjecttype.StringgetNamespace()The namespace URI of this node, ornullif it is unspecified.XSNamespaceItemgetNamespaceItem()A namespace schema information item corresponding to the target namespace of the component, if it is globally declared; ornullotherwise.XSObjectListgetParticles(){particles} A list of particlesshortgetType()Get the type of the object, i.e ELEMENT_DECLARATION.booleanisEmpty()intmaxEffectiveTotalRange()intminEffectiveTotalRange()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.voidreset()StringtoString()
-
-
-
Field Detail
-
MODELGROUP_CHOICE
public static final short MODELGROUP_CHOICE
- See Also:
- Constant Field Values
-
MODELGROUP_SEQUENCE
public static final short MODELGROUP_SEQUENCE
- See Also:
- Constant Field Values
-
MODELGROUP_ALL
public static final short MODELGROUP_ALL
- See Also:
- Constant Field Values
-
fCompositor
public short fCompositor
-
fParticles
public XSParticleDecl[] fParticles
-
fParticleCount
public int fParticleCount
-
fAnnotations
public XSObjectList fAnnotations
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
-
minEffectiveTotalRange
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.
-
maxEffectiveTotalRange
public int maxEffectiveTotalRange()
-
reset
public void reset()
-
getType
public short getType()
Get the type of the object, i.e ELEMENT_DECLARATION.
-
getName
public String getName()
Thenameof thisXSObjectdepending on theXSObjecttype.
-
getNamespace
public String getNamespace()
The namespace URI of this node, ornullif it is unspecified. defines how a namespace URI is attached to schema components.- Specified by:
getNamespacein interfaceXSObject
-
getCompositor
public short getCompositor()
{compositor} One of all, choice or sequence. The valid constants values are: ALL, CHOICE, SEQUENCE.- Specified by:
getCompositorin interfaceXSModelGroup
-
getParticles
public XSObjectList getParticles()
{particles} A list of particles- Specified by:
getParticlesin interfaceXSModelGroup
-
getAnnotation
public XSAnnotation getAnnotation()
Optional. Annotation.- Specified by:
getAnnotationin interfaceXSModelGroup
-
getAnnotations
public XSObjectList getAnnotations()
Optional. Annotations.- Specified by:
getAnnotationsin interfaceXSModelGroup
-
getNamespaceItem
public XSNamespaceItem getNamespaceItem()
Description copied from interface:XSObjectA namespace schema information item corresponding to the target namespace of the component, if it is globally declared; ornullotherwise.- Specified by:
getNamespaceItemin interfaceXSObject- See Also:
XSObject.getNamespaceItem()
-
-