|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.castor.xml.schema.Structure
org.exolab.castor.xml.schema.Annotated
org.exolab.castor.xml.schema.Particle
public abstract class Particle
An abstract class that represents an XML Schema Particle This is not an entirely true representation of how XML Schema depicts a "particle" since this representation of a particle does not hold the "term" component (element, all, choice, sequence, group, any) but rather the "term" extends this class.
Field Summary | |
---|---|
static int |
UNBOUNDED
A constant to represent an UNBOUNDED particle |
Fields inherited from class org.exolab.castor.xml.schema.Structure |
---|
ANNOTATION, ANYTYPE, APPINFO, ATTRIBUTE, ATTRIBUTE_GROUP, COMPLEX_CONTENT, COMPLEX_TYPE, DOCUMENTATION, ELEMENT, FACET, GROUP, IDENTITY_FIELD, IDENTITY_SELECTOR, KEY, KEYREF, LIST, MODELGROUP, MODELGROUP_REF, REDEFINE, SCHEMA, SIMPLE_CONTENT, SIMPLE_TYPE, UNION, UNIQUE, UNKNOWN, WILDCARD |
Constructor Summary | |
---|---|
protected |
Particle()
Default Constructor, uses a default minimum occurance of 1, and a default unbounded maximum occurance |
protected |
Particle(int minOccurs,
int maxOccurs)
Constructor for Particle which allows setting the values for maximum and minimum occurances |
Method Summary | |
---|---|
int |
getMaxOccurs()
Returns the maximum number of occurances that this CMParticle may appear |
int |
getMinOccurs()
Returns the minimum number of occurances that this CMParticle must appear |
void |
setMaxOccurs(int maxOccurs)
Sets the maximum number of occurances that this CMParticle must appear within it's parent context |
void |
setMinOccurs(int minOccurs)
Sets the minimum number of occurances that this CMParticle must appear within it's parent context |
Methods inherited from class org.exolab.castor.xml.schema.Annotated |
---|
addAnnotation, getAnnotations, removeAnnotation |
Methods inherited from class org.exolab.castor.xml.schema.Structure |
---|
getStructureType, isValid, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int UNBOUNDED
Constructor Detail |
---|
protected Particle()
protected Particle(int minOccurs, int maxOccurs)
minOccurs
- the minimum occurancemaxOccurs
- the maximum occurance ( -1 for unbounded)Method Detail |
---|
public final int getMaxOccurs()
public final int getMinOccurs()
public final void setMaxOccurs(int maxOccurs)
maxOccurs
- the maximum number of occurances that this
CMParticle may appear within it's parent context (-1 for unbounded)public final void setMinOccurs(int minOccurs)
minOccurs
- the number of occurances that this
CMParticle must
appeae within it's parent context
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |