|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Represents a Particle as defined by XML Schema. A particle is a component of a content model, consisting of a term and a permitted cardinality range. The term may be an element declaration, a wildcard, a sequence, a choice, or all.
| Field Summary |
| Fields inherited from interface net.sf.saxon.type.SchemaComponent |
FIXED_UP, INCOMPLETE, INVALID, UNVALIDATED, VALIDATED, VALIDATING |
| Method Summary | |
void |
compile(PreparedSchema schema,
UserComplexType subjectType)
Compile a particle |
int |
getElementParticleCardinality(int fingerprint)
Find an element particle within this complex type definition having a given element name (identified by fingerprint), and return the cardinality associated with that element particle, that is, the number of times the element can occur within this complex type. |
SchemaType |
getElementParticleType(int fingerprint)
Find an element particle within this complex type definition having a given element name (identified by fingerprint), and return the schema type associated with that element particle. |
int |
getMaxOccurs()
Returns the maximum number of occurrences that this CMParticle may appear |
int |
getMinOccurs()
Returns the minimum number of occurrences that this Particle must appear |
Term |
getTerm()
Returns the term contained by this particle |
boolean |
isEmptiable()
Determine if empty content is allowed |
void |
rewrite()
Rewrite a particle prior to compiling it |
void |
setMinOccurs(int minOccurs)
Change the value of minOccurs. |
| Methods inherited from interface com.saxonica.schema.UserSchemaComponent |
fixup, lookForCycles, validate |
| Methods inherited from interface net.sf.saxon.type.SchemaComponent |
getValidationStatus |
| Method Detail |
public int getMaxOccurs()
public int getMinOccurs()
public void setMinOccurs(int minOccurs)
public Term getTerm()
public boolean isEmptiable()
throws UnresolvedReferenceException
UnresolvedReferenceExceptionpublic SchemaType getElementParticleType(int fingerprint)
fingerprint - Identifies the name of the child element within this content model
public int getElementParticleCardinality(int fingerprint)
throws SchemaException,
ValidationException
StaticProperty.EXACTLY_ONE, StaticProperty.ALLOWS_ZERO_OR_ONE,
StaticProperty.ALLOWS_ZERO_OR_MORE, StaticProperty.ALLOWS_ONE_OR_MORE,
If there is no such particle, return zero.
fingerprint - Identifies the name of the child element within this content model
SchemaException
ValidationExceptionpublic void rewrite()
public void compile(PreparedSchema schema,
UserComplexType subjectType)
throws SchemaException,
ValidationException
schema - used for error reporting purposessubjectType - the complex type being compiled
SchemaException
ValidationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||