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
|
String |
getDocumentation()
Returns user specified documentation
|
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)
SchemaParticlecanStartWithElement in interface SchemaParticlepublic QNameSet acceptedStartNames()
SchemaParticleacceptedStartNames in interface SchemaParticlepublic QNameSet getExcludeNextSet()
public boolean isSkippable()
SchemaParticleisSkippable in interface SchemaParticlepublic boolean isDeterministic()
public int getParticleType()
SchemaParticleSchemaParticle.ALL, SchemaParticle.CHOICE,
SchemaParticle.SEQUENCE, SchemaParticle.ELEMENT, or SchemaParticle.WILDCARD).getParticleType in interface SchemaParticlepublic void setParticleType(int pType)
public boolean isSingleton()
SchemaParticleisSingleton in interface SchemaParticlepublic BigInteger getMinOccurs()
SchemaParticlegetMinOccurs in interface SchemaParticlepublic void setMinOccurs(BigInteger min)
public int getIntMinOccurs()
SchemaParticlegetIntMinOccurs in interface SchemaParticlepublic BigInteger getMaxOccurs()
SchemaParticlegetMaxOccurs in interface SchemaParticlepublic int getIntMaxOccurs()
SchemaParticlegetIntMaxOccurs in interface SchemaParticlepublic void setMaxOccurs(BigInteger max)
public SchemaParticle[] getParticleChildren()
SchemaParticlegetParticleChildren in interface SchemaParticlepublic void setParticleChildren(SchemaParticle[] children)
public SchemaParticle getParticleChild(int i)
SchemaParticlegetParticleChild in interface SchemaParticlepublic int countOfParticleChild()
SchemaParticlecountOfParticleChild in interface SchemaParticlepublic void setWildcardSet(QNameSet set)
public QNameSet getWildcardSet()
SchemaParticlegetWildcardSet in interface SchemaParticlepublic void setWildcardProcess(int process)
public int getWildcardProcess()
SchemaParticleSchemaParticle.STRICT, SchemaParticle.LAX, SchemaParticle.SKIP).getWildcardProcess in interface SchemaParticlepublic QName getName()
SchemaParticlegetName in interface SchemaParticlepublic void setNameAndTypeRef(QName formname, SchemaType.Ref typeref)
public boolean isTypeResolved()
public void resolveTypeRef(SchemaType.Ref typeref)
public boolean isAttribute()
public SchemaType getType()
SchemaParticlegetType in interface SchemaParticlepublic String getDefaultText()
SchemaParticlegetDefaultText in interface SchemaParticlepublic boolean isDefault()
SchemaParticleisDefault in interface SchemaParticlepublic boolean isFixed()
SchemaParticleisFixed in interface SchemaParticlepublic boolean isNillable()
SchemaParticleisNillable in interface SchemaParticlepublic void setNillable(boolean nillable)
public XmlAnySimpleType getDefaultValue()
SchemaParticlegetDefaultValue in interface SchemaParticlepublic void setDefaultValue(XmlValueRef defaultRef)
public Object getUserData()
public void setUserData(Object data)
public String getDocumentation()
SchemaParticle
<xs:element ... >
<xs:annotation>
<xs:documentation>
getDocumentation method will return whatever stuff here.
</xs:documentation>
</xs:annotation>
</xs:element>
getDocumentation in interface SchemaParticle