|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.saxonica.schema.SchemaStructure
com.saxonica.schema.AbstractParticle
An abstract class that implements an XML Schema Particle.
Note that not all Particles belong to this class. In particular, Element Wildcards are particles,
but they are not instances of AbstractParticle: this is because it is more convenient for them to
share implementation details with Attribute Wildcards. To refer generically to Particles, use
the Particle interface.
| Field Summary | |
static int |
UNBOUNDED
A constant to represent an UNBOUNDED number of occurrences |
| Fields inherited from interface net.sf.saxon.type.SchemaComponent |
FIXED_UP, INCOMPLETE, INVALID, UNVALIDATED, VALIDATED, VALIDATING |
| Constructor Summary | |
protected |
AbstractParticle()
Default Constructor, uses a default minimum occurrence of 1, and a default unbounded maximum occurrence |
| Method Summary | |
int |
getMaxOccurs()
Returns the maximum number of occurrences that this Particle may appear in the containing content model |
int |
getMinOccurs()
Returns the minimum number of occurrences that this Particle must appear in the containing content model |
abstract Term |
getTerm()
Get the term corresponding to this particle |
void |
rewrite()
Rewrite a particle prior to compiling it |
void |
setMaxOccurs(int maxOccurs)
Sets the maximum number of occurrences for this Particle within the containing content model |
void |
setMinOccurs(int minOccurs)
Sets the minimum number of occurrences for this Particle within the containing content model |
| Methods inherited from class com.saxonica.schema.SchemaStructure |
getColumnNumber, getFixupStatus, getLineNumber, getPublicId, getSchema, getSystemId, getValidationStatus, lookForCycles, setFixupStatus, setLineNumber, setLocator, setSchema, setSystemId, setValidationStatus |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.saxonica.schema.Particle |
compile, getElementParticleCardinality, getElementParticleType, isEmptiable |
| Methods inherited from interface com.saxonica.schema.UserSchemaComponent |
fixup, lookForCycles, validate |
| Methods inherited from interface net.sf.saxon.type.SchemaComponent |
getValidationStatus |
| Field Detail |
public static int UNBOUNDED
| Constructor Detail |
protected AbstractParticle()
| Method Detail |
public final int getMaxOccurs()
getMaxOccurs in interface Particlepublic final int getMinOccurs()
getMinOccurs in interface Particlepublic final void setMaxOccurs(int maxOccurs)
maxOccurs - the maximum number of occurrences for this Particle, or -1 to indicate
that the maximum is unboundedpublic final void setMinOccurs(int minOccurs)
setMinOccurs in interface ParticleminOccurs - the minimum number of occurrences for this Particlepublic abstract Term getTerm()
getTerm in interface Particlepublic void rewrite()
rewrite in interface Particle
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||