java.io.SerializableElementDecl, Group, Wildcardpublic abstract class Particle extends Annotated
| Modifier and Type | Field | Description |
|---|---|---|
static int |
UNBOUNDED |
A constant to represent an UNBOUNDED particle
|
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| Modifier | Constructor | Description |
|---|---|---|
protected |
Particle() |
Default Constructor, uses a default minimum occurance
of 1, and a default unbounded maximum occurance
|
| Modifier and Type | Method | Description |
|---|---|---|
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
|
boolean |
isEmptiable() |
|
protected boolean |
isMaxOccursSet() |
Indicates whetehr maxOccurs has been set.
|
protected boolean |
isMinOccursSet() |
Indicates whether minOccurs has been set.
|
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
|
addAnnotation, getAnnotations, removeAnnotationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetStructureType, isValid, validateprotected Particle()
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 contextpublic boolean isEmptiable()
protected final boolean isMaxOccursSet()
protected final boolean isMinOccursSet()
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com