Package org.apache.xerces.impl.xs
Class XSParticleDecl
java.lang.Object
org.apache.xerces.impl.xs.XSParticleDecl
- All Implemented Interfaces:
org.apache.xerces.xs.XSObject,org.apache.xerces.xs.XSParticle
Store schema particle declaration.
INTERNAL:
- Usage of this class is not supported. It may be altered or removed at any time.
- Version:
- $Id: XSParticleDecl.java 965250 2010-07-18 16:04:58Z mrglavas $
- Author:
- Sandy Gao, IBM
-
Field Summary
FieldsModifier and TypeFieldDescriptionorg.apache.xerces.xs.XSObjectListintintshortorg.apache.xerces.xs.XSTermstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final short -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean3.9.6 Schema Component Constraint: Particle Emptiable whether this particle is emptibleorg.apache.xerces.xs.XSObjectListOptional.int{max occurs} determines the maximum number of terms that can occur.boolean{max occurs} whether the maxOccurs value is unbounded.int{min occurs} determines the minimum number of terms that can occur.getName()Thenameof thisXSObjectdepending on theXSObjecttype.The namespace URI of this node, ornullif it is unspecified.org.apache.xerces.xs.XSNamespaceItemA namespace schema information item corresponding to the target namespace of the component, if it is globally declared; ornullotherwise.org.apache.xerces.xs.XSTermgetTerm(){term} One of a model group, a wildcard, or an element declaration.shortgetType()Get the type of the object, i.e ELEMENT_DECLARATION.booleanisEmpty()intint3.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()toString()
-
Field Details
-
PARTICLE_EMPTY
public static final short PARTICLE_EMPTY- See Also:
-
PARTICLE_ELEMENT
public static final short PARTICLE_ELEMENT- See Also:
-
PARTICLE_WILDCARD
public static final short PARTICLE_WILDCARD- See Also:
-
PARTICLE_MODELGROUP
public static final short PARTICLE_MODELGROUP- See Also:
-
PARTICLE_ZERO_OR_MORE
public static final short PARTICLE_ZERO_OR_MORE- See Also:
-
PARTICLE_ZERO_OR_ONE
public static final short PARTICLE_ZERO_OR_ONE- See Also:
-
PARTICLE_ONE_OR_MORE
public static final short PARTICLE_ONE_OR_MORE- See Also:
-
fType
public short fType -
fValue
public org.apache.xerces.xs.XSTerm fValue -
fMinOccurs
public int fMinOccurs -
fMaxOccurs
public int fMaxOccurs -
fAnnotations
public org.apache.xerces.xs.XSObjectList fAnnotations
-
-
Constructor Details
-
XSParticleDecl
public XSParticleDecl()
-
-
Method Details
-
makeClone
-
emptiable
public boolean emptiable()3.9.6 Schema Component Constraint: Particle Emptiable whether this particle is emptible -
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() -
toString
-
reset
public void reset() -
getType
public short getType()Get the type of the object, i.e ELEMENT_DECLARATION.- Specified by:
getTypein interfaceorg.apache.xerces.xs.XSObject
-
getName
Thenameof thisXSObjectdepending on theXSObjecttype.- Specified by:
getNamein interfaceorg.apache.xerces.xs.XSObject
-
getNamespace
The namespace URI of this node, ornullif it is unspecified. defines how a namespace URI is attached to schema components.- Specified by:
getNamespacein interfaceorg.apache.xerces.xs.XSObject
-
getMinOccurs
public int getMinOccurs(){min occurs} determines the minimum number of terms that can occur.- Specified by:
getMinOccursin interfaceorg.apache.xerces.xs.XSParticle
-
getMaxOccursUnbounded
public boolean getMaxOccursUnbounded(){max occurs} whether the maxOccurs value is unbounded.- Specified by:
getMaxOccursUnboundedin interfaceorg.apache.xerces.xs.XSParticle
-
getMaxOccurs
public int getMaxOccurs(){max occurs} determines the maximum number of terms that can occur.- Specified by:
getMaxOccursin interfaceorg.apache.xerces.xs.XSParticle
-
getTerm
public org.apache.xerces.xs.XSTerm getTerm(){term} One of a model group, a wildcard, or an element declaration.- Specified by:
getTermin interfaceorg.apache.xerces.xs.XSParticle
-
getNamespaceItem
public org.apache.xerces.xs.XSNamespaceItem getNamespaceItem()Description copied from interface:org.apache.xerces.xs.XSObjectA namespace schema information item corresponding to the target namespace of the component, if it is globally declared; ornullotherwise.- Specified by:
getNamespaceItemin interfaceorg.apache.xerces.xs.XSObject- See Also:
-
getAnnotations
public org.apache.xerces.xs.XSObjectList getAnnotations()Optional. Annotations.- Specified by:
getAnnotationsin interfaceorg.apache.xerces.xs.XSParticle
-