Package org.apache.xmlbeans.impl.schema
Class SchemaParticleImpl
java.lang.Object
org.apache.xmlbeans.impl.schema.SchemaParticleImpl
- All Implemented Interfaces:
SchemaParticle
- Direct Known Subclasses:
SchemaLocalElementImpl
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the QNameSet of element names that can be accepted at the beginning of this particle.booleancanStartWithElement(QName name) True if this particle can start with the given element (taking into account the structure of all child particles of course).intThe number of children.For elements only: returns the default (or fixed) text valueFor elements only: returns the default (or fixed) strongly-typed valueReturns user specified documentationintReturns the maxOccurs value, pegged to a 32-bit int for convenience of a validating state machine that doesn't count higher than MAX_INT anyway.intReturns the minOccurs value, pegged to a 32-bit int for convenience of a validating state machine that doesn't count higher than MAX_INT anyway.Returns the maxOccurs value for this particle, or null if it is unbounded.Returns the minOccurs value for this particle.getName()For elements only: the QName for the element use.getParticleChild(int i) Another way to access the particle children.Applies to sequence, choice, and all particles only: returns an array of all the particle children in order.intReturns the particle type (SchemaParticle.ALL,SchemaParticle.CHOICE,SchemaParticle.SEQUENCE,SchemaParticle.ELEMENT, orSchemaParticle.WILDCARD).getType()For elements only: returns the type of the element.intFor wildcards, returns the processing code (SchemaParticle.STRICT,SchemaParticle.LAX,SchemaParticle.SKIP).For wildcards, returns a QNameSet representing the wildcard.booleanbooleanbooleanbooleanFor elements only: True if has default.booleanbooleanisFixed()For elements only: true if is fixed value.booleanFor elements only: true if nillable.booleanOne if minOccurs == maxOccurs == 1.booleanTrue if this particle can be skipped (taking into account both the minOcurs as well as the structure of all the child particles)booleanvoidresolveTypeRef(SchemaType.Ref typeref) voidsetDefault(String deftext, boolean isFixed, XmlObject parseObject) voidsetDefaultValue(XmlValueRef defaultRef) voidvoidsetMaxOccurs(BigInteger max) voidsetMinOccurs(BigInteger min) voidsetNameAndTypeRef(QName formname, SchemaType.Ref typeref) voidsetNillable(boolean nillable) voidsetParticleChildren(SchemaParticle[] children) voidsetParticleType(int pType) voidsetTransitionNotes(QNameSet excludeNext, boolean isDeterministic) voidsetTransitionRules(QNameSet start, boolean isSkippable) voidsetUserData(Object data) voidsetWildcardProcess(int process) voidsetWildcardSet(QNameSet set)
-
Constructor Details
-
SchemaParticleImpl
public SchemaParticleImpl()
-
-
Method Details
-
setImmutable
public void setImmutable() -
hasTransitionRules
public boolean hasTransitionRules() -
hasTransitionNotes
public boolean hasTransitionNotes() -
setTransitionRules
-
setTransitionNotes
-
canStartWithElement
Description copied from interface:SchemaParticleTrue if this particle can start with the given element (taking into account the structure of all child particles of course).- Specified by:
canStartWithElementin interfaceSchemaParticle
-
acceptedStartNames
Description copied from interface:SchemaParticleReturns the QNameSet of element names that can be accepted at the beginning of this particle.- Specified by:
acceptedStartNamesin interfaceSchemaParticle
-
getExcludeNextSet
-
isSkippable
public boolean isSkippable()Description copied from interface:SchemaParticleTrue if this particle can be skipped (taking into account both the minOcurs as well as the structure of all the child particles)- Specified by:
isSkippablein interfaceSchemaParticle
-
isDeterministic
public boolean isDeterministic() -
getParticleType
public int getParticleType()Description copied from interface:SchemaParticleReturns the particle type (SchemaParticle.ALL,SchemaParticle.CHOICE,SchemaParticle.SEQUENCE,SchemaParticle.ELEMENT, orSchemaParticle.WILDCARD).- Specified by:
getParticleTypein interfaceSchemaParticle
-
setParticleType
public void setParticleType(int pType) -
isSingleton
public boolean isSingleton()Description copied from interface:SchemaParticleOne if minOccurs == maxOccurs == 1.- Specified by:
isSingletonin interfaceSchemaParticle
-
getMinOccurs
Description copied from interface:SchemaParticleReturns the minOccurs value for this particle. If it's not specified explicitly, this returns BigInteger.ONE.- Specified by:
getMinOccursin interfaceSchemaParticle
-
setMinOccurs
-
getIntMinOccurs
public int getIntMinOccurs()Description copied from interface:SchemaParticleReturns the minOccurs value, pegged to a 32-bit int for convenience of a validating state machine that doesn't count higher than MAX_INT anyway.- Specified by:
getIntMinOccursin interfaceSchemaParticle
-
getMaxOccurs
Description copied from interface:SchemaParticleReturns the maxOccurs value for this particle, or null if it is unbounded. If it's not specified explicitly, this returns BigInteger.ONE.- Specified by:
getMaxOccursin interfaceSchemaParticle
-
getIntMaxOccurs
public int getIntMaxOccurs()Description copied from interface:SchemaParticleReturns the maxOccurs value, pegged to a 32-bit int for convenience of a validating state machine that doesn't count higher than MAX_INT anyway. Unbounded is given as MAX_INT.- Specified by:
getIntMaxOccursin interfaceSchemaParticle
-
setMaxOccurs
-
getParticleChildren
Description copied from interface:SchemaParticleApplies to sequence, choice, and all particles only: returns an array of all the particle children in order.- Specified by:
getParticleChildrenin interfaceSchemaParticle
-
setParticleChildren
-
getParticleChild
Description copied from interface:SchemaParticleAnother way to access the particle children.- Specified by:
getParticleChildin interfaceSchemaParticle
-
countOfParticleChild
public int countOfParticleChild()Description copied from interface:SchemaParticleThe number of children.- Specified by:
countOfParticleChildin interfaceSchemaParticle
-
setWildcardSet
-
getWildcardSet
Description copied from interface:SchemaParticleFor wildcards, returns a QNameSet representing the wildcard.- Specified by:
getWildcardSetin interfaceSchemaParticle
-
setWildcardProcess
public void setWildcardProcess(int process) -
getWildcardProcess
public int getWildcardProcess()Description copied from interface:SchemaParticleFor wildcards, returns the processing code (SchemaParticle.STRICT,SchemaParticle.LAX,SchemaParticle.SKIP).- Specified by:
getWildcardProcessin interfaceSchemaParticle
-
getName
Description copied from interface:SchemaParticleFor elements only: the QName for the element use. May be unqualified version of referenced element's name.- Specified by:
getNamein interfaceSchemaParticle
-
setNameAndTypeRef
-
isTypeResolved
public boolean isTypeResolved() -
resolveTypeRef
-
isAttribute
public boolean isAttribute() -
getType
Description copied from interface:SchemaParticleFor elements only: returns the type of the element.- Specified by:
getTypein interfaceSchemaParticle
-
getDefaultText
Description copied from interface:SchemaParticleFor elements only: returns the default (or fixed) text value- Specified by:
getDefaultTextin interfaceSchemaParticle
-
isDefault
public boolean isDefault()Description copied from interface:SchemaParticleFor elements only: True if has default. If isFixed, then isDefault is always true.- Specified by:
isDefaultin interfaceSchemaParticle
-
isFixed
public boolean isFixed()Description copied from interface:SchemaParticleFor elements only: true if is fixed value.- Specified by:
isFixedin interfaceSchemaParticle
-
setDefault
-
isNillable
public boolean isNillable()Description copied from interface:SchemaParticleFor elements only: true if nillable.- Specified by:
isNillablein interfaceSchemaParticle
-
setNillable
public void setNillable(boolean nillable) -
getDefaultValue
Description copied from interface:SchemaParticleFor elements only: returns the default (or fixed) strongly-typed value- Specified by:
getDefaultValuein interfaceSchemaParticle
-
setDefaultValue
-
getUserData
-
setUserData
-
getDocumentation
Description copied from interface:SchemaParticleReturns user specified documentation<xs:element ... > <xs:annotation> <xs:documentation> getDocumentation method will return whatever stuff here. </xs:documentation> </xs:annotation> </xs:element>- Specified by:
getDocumentationin interfaceSchemaParticle
-