public class SchemaParticleImpl extends Object implements SchemaParticle
Modifier and Type | Field and Description |
---|---|
protected XmlObject |
_parseObject |
Constructor and Description |
---|
SchemaParticleImpl() |
Modifier and Type | Method and Description |
---|---|
QNameSet |
acceptedStartNames()
Returns the QNameSet of element names that can be
accepted at the beginning of this particle.
|
boolean |
canStartWithElement(QName name)
True if this particle can start with the given element
(taking into account the structure of all child particles
of course).
|
int |
countOfParticleChild()
The number of children.
|
String |
getDefaultText()
For elements only: returns the default (or fixed) text value
|
XmlAnySimpleType |
getDefaultValue()
For elements only: returns the default (or fixed) strongly-typed value
|
QNameSet |
getExcludeNextSet() |
int |
getIntMaxOccurs()
Returns 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.
|
int |
getIntMinOccurs()
Returns 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.
|
BigInteger |
getMaxOccurs()
Returns the maxOccurs value for this particle, or null if it
is unbounded.
|
BigInteger |
getMinOccurs()
Returns the minOccurs value for this particle.
|
QName |
getName()
For elements only: the QName for the element use.
|
SchemaParticle |
getParticleChild(int i)
Another way to access the particle children.
|
SchemaParticle[] |
getParticleChildren()
Applies to sequence, choice, and all particles only: returns an array
of all the particle children in order.
|
int |
getParticleType()
Returns the particle type (
SchemaParticle.ALL , SchemaParticle.CHOICE ,
SchemaParticle.SEQUENCE , SchemaParticle.ELEMENT , or SchemaParticle.WILDCARD ). |
SchemaType |
getType()
For elements only: returns the type of the element.
|
Object |
getUserData() |
int |
getWildcardProcess()
For wildcards, returns the processing code (
SchemaParticle.STRICT , SchemaParticle.LAX , SchemaParticle.SKIP ). |
QNameSet |
getWildcardSet()
For wildcards, returns a QNameSet representing the wildcard.
|
boolean |
hasTransitionNotes() |
boolean |
hasTransitionRules() |
boolean |
isAttribute() |
boolean |
isDefault()
For elements only: True if has default.
|
boolean |
isDeterministic() |
boolean |
isFixed()
For elements only: true if is fixed value.
|
boolean |
isNillable()
For elements only: true if nillable.
|
boolean |
isSingleton()
One if minOccurs == maxOccurs == 1.
|
boolean |
isSkippable()
True if this particle can be skipped (taking into account
both the minOcurs as well as the structure of all the
child particles)
|
boolean |
isTypeResolved() |
protected void |
mutate() |
void |
resolveTypeRef(SchemaType.Ref typeref) |
void |
setDefault(String deftext,
boolean isFixed,
XmlObject parseObject) |
void |
setDefaultValue(XmlValueRef defaultRef) |
void |
setImmutable() |
void |
setMaxOccurs(BigInteger max) |
void |
setMinOccurs(BigInteger min) |
void |
setNameAndTypeRef(QName formname,
SchemaType.Ref typeref) |
void |
setNillable(boolean nillable) |
void |
setParticleChildren(SchemaParticle[] children) |
void |
setParticleType(int pType) |
void |
setTransitionNotes(QNameSet excludeNext,
boolean isDeterministic) |
void |
setTransitionRules(QNameSet start,
boolean isSkippable) |
void |
setUserData(Object data) |
void |
setWildcardProcess(int process) |
void |
setWildcardSet(QNameSet set) |
protected XmlObject _parseObject
protected void mutate()
public void setImmutable()
public boolean hasTransitionRules()
public boolean hasTransitionNotes()
public void setTransitionRules(QNameSet start, boolean isSkippable)
public void setTransitionNotes(QNameSet excludeNext, boolean isDeterministic)
public boolean canStartWithElement(QName name)
SchemaParticle
canStartWithElement
in interface SchemaParticle
public QNameSet acceptedStartNames()
SchemaParticle
acceptedStartNames
in interface SchemaParticle
public QNameSet getExcludeNextSet()
public boolean isSkippable()
SchemaParticle
isSkippable
in interface SchemaParticle
public boolean isDeterministic()
public int getParticleType()
SchemaParticle
SchemaParticle.ALL
, SchemaParticle.CHOICE
,
SchemaParticle.SEQUENCE
, SchemaParticle.ELEMENT
, or SchemaParticle.WILDCARD
).getParticleType
in interface SchemaParticle
public void setParticleType(int pType)
public boolean isSingleton()
SchemaParticle
isSingleton
in interface SchemaParticle
public BigInteger getMinOccurs()
SchemaParticle
getMinOccurs
in interface SchemaParticle
public void setMinOccurs(BigInteger min)
public int getIntMinOccurs()
SchemaParticle
getIntMinOccurs
in interface SchemaParticle
public BigInteger getMaxOccurs()
SchemaParticle
getMaxOccurs
in interface SchemaParticle
public int getIntMaxOccurs()
SchemaParticle
getIntMaxOccurs
in interface SchemaParticle
public void setMaxOccurs(BigInteger max)
public SchemaParticle[] getParticleChildren()
SchemaParticle
getParticleChildren
in interface SchemaParticle
public void setParticleChildren(SchemaParticle[] children)
public SchemaParticle getParticleChild(int i)
SchemaParticle
getParticleChild
in interface SchemaParticle
public int countOfParticleChild()
SchemaParticle
countOfParticleChild
in interface SchemaParticle
public void setWildcardSet(QNameSet set)
public QNameSet getWildcardSet()
SchemaParticle
getWildcardSet
in interface SchemaParticle
public void setWildcardProcess(int process)
public int getWildcardProcess()
SchemaParticle
SchemaParticle.STRICT
, SchemaParticle.LAX
, SchemaParticle.SKIP
).getWildcardProcess
in interface SchemaParticle
public QName getName()
SchemaParticle
getName
in interface SchemaParticle
public void setNameAndTypeRef(QName formname, SchemaType.Ref typeref)
public boolean isTypeResolved()
public void resolveTypeRef(SchemaType.Ref typeref)
public boolean isAttribute()
public SchemaType getType()
SchemaParticle
getType
in interface SchemaParticle
public String getDefaultText()
SchemaParticle
getDefaultText
in interface SchemaParticle
public boolean isDefault()
SchemaParticle
isDefault
in interface SchemaParticle
public boolean isFixed()
SchemaParticle
isFixed
in interface SchemaParticle
public boolean isNillable()
SchemaParticle
isNillable
in interface SchemaParticle
public void setNillable(boolean nillable)
public XmlAnySimpleType getDefaultValue()
SchemaParticle
getDefaultValue
in interface SchemaParticle
public void setDefaultValue(XmlValueRef defaultRef)
public Object getUserData()
public void setUserData(Object data)