All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class de.tudarmstadt.ito.schemas.dtd.Particle

java.lang.Object
   |
   +----de.tudarmstadt.ito.schemas.dtd.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:
1.01
Author:
Ronald Bourret, Technical University of Darmstadt

Variable Index

 o isRepeatable
Whether the particle may be repeated.
 o isRequired
Whether the particle is required.
 o PARTICLE_CHOICE
Content particle is a choice group (Group).
 o PARTICLE_ELEMENTTYPEREF
Content particle is a reference to an element type (Reference).
 o PARTICLE_SEQUENCE
Content particle is a sequence group (Group).
 o PARTICLE_UNKNOWN
Content particle type unknown.
 o type
Content particle type.

Constructor Index

 o Particle()
Construct a new Particle.

Variables

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

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

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

 o PARTICLE_SEQUENCE
 public static final int PARTICLE_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