|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.saxonica.schema.SchemaElement
|
+--com.saxonica.schema.AbstractParticle
An abstract class that represents an XML Schema Particle
| Field Summary | |
static int |
UNBOUNDED
A constant to represent an UNBOUNDED particle |
| Fields inherited from class com.saxonica.schema.SchemaElement |
ANNOTATION, ANYTYPE, APPINFO, ATTRIBUTE, ATTRIBUTE_GROUP, COMPLEX_CONTENT, COMPLEX_TYPE, COMPOSITOR, DOCUMENTATION, ELEMENT, FACET, GROUP, IDENTITY_FIELD, IDENTITY_SELECTOR, KEY, KEYREF, LIST, REDEFINE, SCHEMA, SIMPLE_CONTENT, SIMPLE_TYPE, UNION, UNIQUE, UNKNOWN, WILDCARD_ATTRIBUTE, WILDCARD_ELEMENT |
| Constructor Summary | |
protected |
AbstractParticle()
Default Constructor, uses a default minimum occurrence of 1, and a default unbounded maximum occurrence |
protected |
AbstractParticle(int minOccurs,
int maxOccurs)
Constructor for Particle which allows setting the values for maximum and minimum occurrences |
| 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 |
Term |
getTerm()
Get the term corresponding to this particle |
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.SchemaElement |
getColumnNumber, getLineNumber, getPublicId, getStructureType, getSystemId, setLocator |
| 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, isEmptiable |
| Field Detail |
public static int UNBOUNDED
| Constructor Detail |
protected AbstractParticle()
protected AbstractParticle(int minOccurs,
int maxOccurs)
minOccurs - the minimum number of occurrencesmaxOccurs - the maximum number of occurrences ( -1 for unbounded)| Method Detail |
public final int getMaxOccurs()
getMaxOccurs in interface Particlepublic final int getMinOccurs()
getMinOccurs in interface Particlepublic Term getTerm()
getTerm 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)
minOccurs - the minimum number of occurrences for this Particle
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||