Class XSParticleDecl
- java.lang.Object
-
- org.smooks.engine.delivery.sax.ng.org.apache.xerces.impl.xs.XSParticleDecl
-
- All Implemented Interfaces:
XSObject,XSParticle
public class XSParticleDecl extends Object implements XSParticle
Store schema particle declaration.- Version:
- $Id$
- Author:
- Sandy Gao, IBM
-
-
Field Summary
Fields Modifier and Type Field Description XSObjectListfAnnotationsintfMaxOccursintfMinOccursshortfTypeXSTermfValuestatic shortPARTICLE_ELEMENTstatic shortPARTICLE_EMPTYstatic shortPARTICLE_MODELGROUPstatic shortPARTICLE_ONE_OR_MOREstatic shortPARTICLE_WILDCARDstatic shortPARTICLE_ZERO_OR_MOREstatic shortPARTICLE_ZERO_OR_ONE
-
Constructor Summary
Constructors Constructor Description XSParticleDecl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanemptiable()3.9.6 Schema Component Constraint: Particle Emptiable whether this particle is emptibleXSObjectListgetAnnotations()Optional.intgetMaxOccurs(){max occurs} determines the maximum number of terms that can occur.booleangetMaxOccursUnbounded(){max occurs} whether the maxOccurs value is unbounded.intgetMinOccurs(){min occurs} determines the minimum number of terms that can occur.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.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()XSParticleDeclmakeClone()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
-
PARTICLE_EMPTY
public static final short PARTICLE_EMPTY
- See Also:
- Constant Field Values
-
PARTICLE_ELEMENT
public static final short PARTICLE_ELEMENT
- See Also:
- Constant Field Values
-
PARTICLE_WILDCARD
public static final short PARTICLE_WILDCARD
- See Also:
- Constant Field Values
-
PARTICLE_MODELGROUP
public static final short PARTICLE_MODELGROUP
- See Also:
- Constant Field Values
-
PARTICLE_ZERO_OR_MORE
public static final short PARTICLE_ZERO_OR_MORE
- See Also:
- Constant Field Values
-
PARTICLE_ZERO_OR_ONE
public static final short PARTICLE_ZERO_OR_ONE
- See Also:
- Constant Field Values
-
PARTICLE_ONE_OR_MORE
public static final short PARTICLE_ONE_OR_MORE
- See Also:
- Constant Field Values
-
fType
public short fType
-
fValue
public XSTerm fValue
-
fMinOccurs
public int fMinOccurs
-
fMaxOccurs
public int fMaxOccurs
-
fAnnotations
public XSObjectList fAnnotations
-
-
Method Detail
-
makeClone
public XSParticleDecl 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()
-
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
-
getMinOccurs
public int getMinOccurs()
{min occurs} determines the minimum number of terms that can occur.- Specified by:
getMinOccursin interfaceXSParticle
-
getMaxOccursUnbounded
public boolean getMaxOccursUnbounded()
{max occurs} whether the maxOccurs value is unbounded.- Specified by:
getMaxOccursUnboundedin interfaceXSParticle
-
getMaxOccurs
public int getMaxOccurs()
{max occurs} determines the maximum number of terms that can occur.- Specified by:
getMaxOccursin interfaceXSParticle
-
getTerm
public XSTerm getTerm()
{term} One of a model group, a wildcard, or an element declaration.- Specified by:
getTermin interfaceXSParticle
-
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()
-
getAnnotations
public XSObjectList getAnnotations()
Optional. Annotations.- Specified by:
getAnnotationsin interfaceXSParticle
-
-