|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xmlbeans.impl.schema.SchemaParticleImpl
public class SchemaParticleImpl
Field Summary | |
---|---|
protected XmlObject |
_parseObject
|
Fields inherited from interface org.apache.xmlbeans.SchemaParticle |
---|
ALL, CHOICE, ELEMENT, LAX, SEQUENCE, SKIP, STRICT, WILDCARD |
Constructor Summary | |
---|---|
SchemaParticleImpl()
|
Method Summary | |
---|---|
QNameSet |
acceptedStartNames()
Returns the QNameSet of element names that can be accepted at the beginning of this particle. |
boolean |
canStartWithElement(javax.xml.namespace.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. |
java.lang.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. |
java.math.BigInteger |
getMaxOccurs()
Returns the maxOccurs value for this particle, or null if it is unbounded. |
java.math.BigInteger |
getMinOccurs()
Returns the minOccurs value for this particle. |
javax.xml.namespace.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. |
java.lang.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(java.lang.String deftext,
boolean isFixed,
XmlObject parseObject)
|
void |
setDefaultValue(XmlValueRef defaultRef)
|
void |
setImmutable()
|
void |
setMaxOccurs(java.math.BigInteger max)
|
void |
setMinOccurs(java.math.BigInteger min)
|
void |
setNameAndTypeRef(javax.xml.namespace.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(java.lang.Object data)
|
void |
setWildcardProcess(int process)
|
void |
setWildcardSet(QNameSet set)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected XmlObject _parseObject
Constructor Detail |
---|
public SchemaParticleImpl()
Method Detail |
---|
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(javax.xml.namespace.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 java.math.BigInteger getMinOccurs()
SchemaParticle
getMinOccurs
in interface SchemaParticle
public void setMinOccurs(java.math.BigInteger min)
public int getIntMinOccurs()
SchemaParticle
getIntMinOccurs
in interface SchemaParticle
public java.math.BigInteger getMaxOccurs()
SchemaParticle
getMaxOccurs
in interface SchemaParticle
public int getIntMaxOccurs()
SchemaParticle
getIntMaxOccurs
in interface SchemaParticle
public void setMaxOccurs(java.math.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 javax.xml.namespace.QName getName()
SchemaParticle
getName
in interface SchemaParticle
public void setNameAndTypeRef(javax.xml.namespace.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 java.lang.String getDefaultText()
SchemaParticle
getDefaultText
in interface SchemaParticle
public boolean isDefault()
SchemaParticle
isDefault
in interface SchemaParticle
public boolean isFixed()
SchemaParticle
isFixed
in interface SchemaParticle
public void setDefault(java.lang.String deftext, boolean isFixed, XmlObject parseObject)
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 java.lang.Object getUserData()
public void setUserData(java.lang.Object data)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |