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

Variable Index

 o isRepeatable
Whether the particle may be repeated.
 o isRequired
Whether the particle is required.
 o type
Content particle type.
 o TYPE_CHOICE
Content particle is a choice group (Group).
 o TYPE_ELEMENTTYPEREF
Content particle is a reference to an element type (Reference).
 o TYPE_SEQUENCE
Content particle is a sequence group (Group).
 o TYPE_UNKNOWN
Content particle type unknown.

Constructor Index

 o Particle()
Construct a new Particle.

Variables

 o TYPE_UNKNOWN
 public static final int TYPE_UNKNOWN
Content particle type unknown.

 o TYPE_ELEMENTTYPEREF
 public static final int TYPE_ELEMENTTYPEREF
Content particle is a reference to an element type (Reference).

 o TYPE_CHOICE
 public static final int TYPE_CHOICE
Content particle is a choice group (Group).

 o TYPE_SEQUENCE
 public static final int TYPE_SEQUENCE
Content particle is a sequence group (Group).

 o type
 public int type
Content particle type.

 o 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.

 o isRepeatable
 public boolean isRepeatable
Whether the particle may be repeated.

By default, this is false.

Constructors

 o Particle
 public Particle()
Construct a new Particle.


All Packages  Class Hierarchy  This Package  Previous  Next  Index