All Packages Class Hierarchy This Package Previous Next Index
Class org.xmlmiddleware.schemas.dtds.Particle
java.lang.Object
|
+----org.xmlmiddleware.schemas.dtds.Particle
- public class Particle
- extends Object
Class representing a content particle in a content model.
This is the base class for Group and Reference.
- Version:
- 2.0
- Author:
- Ronald Bourret
-
isRepeatable
- Whether the particle may be repeated.
-
isRequired
- Whether the particle is required.
-
type
- Content particle type.
-
TYPE_CHOICE
- Content particle is a choice group (Group).
-
TYPE_ELEMENTTYPEREF
- Content particle is a reference to an element type (Reference).
-
TYPE_SEQUENCE
- Content particle is a sequence group (Group).
-
TYPE_UNKNOWN
- Content particle type unknown.
-
Particle()
- Construct a new Particle.
TYPE_UNKNOWN
public static final int TYPE_UNKNOWN
- Content particle type unknown.
TYPE_ELEMENTTYPEREF
public static final int TYPE_ELEMENTTYPEREF
- Content particle is a reference to an element type (Reference).
TYPE_CHOICE
public static final int TYPE_CHOICE
- Content particle is a choice group (Group).
TYPE_SEQUENCE
public static final int TYPE_SEQUENCE
- Content particle is a sequence group (Group).
type
public int type
- Content particle type.
isRequired
public boolean isRequired
- Whether the particle is required.
By default, this is true. The following table shows how isRequired
and isRepeatable map to the *, +, and ? qualifiers:
isRequired
------------------------
isRepeatable | true | false
--------------|-----------|------------
true | + | *
--------------|-----------|------------
false | -- | ?
Note that the defaults of isRequired and isRepeatable map to
the required/not repeatable (i.e. no operator) case.
isRepeatable
public boolean isRepeatable
- Whether the particle may be repeated.
By default, this is false.
Particle
public Particle()
- Construct a new Particle.
All Packages Class Hierarchy This Package Previous Next Index