org.exolab.castor.xml.schema
public abstract class Particle extends Annotated
Field Summary | |
---|---|
static int | UNBOUNDED
A constant to represent an UNBOUNDED particle |
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 |
Parameters: minOccurs the minimum occurance maxOccurs the maximum occurance ( -1 for unbounded)
Returns: the maximum number of occurances that this CMParticle may appear. A non positive (n < 1) value indicates that the value is unspecified (ie. unbounded).
Returns: the minimum number of occurances that this CMParticle must appear A negative (n < 0) value indicates that the value is unspecified.
Parameters: maxOccurs the maximum number of occurances that this CMParticle may appear within it's parent context (-1 for unbounded)
Parameters: minOccurs the number of occurances that this CMParticle must appeae within it's parent context