Matra DTD Parser 0.8b

com.conradroche.dtd.decl.elem
Interface ContentParticle

All Known Subinterfaces:
CompositeContentParticle, SimpleContentParticle

public interface ContentParticle

The ContentParticle.

From the XML Specifications -
content particles (cps), consist of names, choice lists of content particles, or sequence lists of content particles. [48] cp ::= (Name | choice | seq) ('?' | '*' | '+')?

Author:
Conrad Roche

Field Summary
static short CARDINALITY_MULTIPLE
          Constant to denote and multiple cardinality.
static short CARDINALITY_ONCE
          Constant to denote and single cardinality.
static short CARDINALITY_OPTIONAL
          Constant to denote and optional cardinality.
static short CARDINALITY_OPTIONAL_MULTIPLE
          Constant to denote and optional multiple cardinality.
 
Method Summary
 short getCardinality()
          Returns the cardinality for this ContentParticle.
 void setCardinality(short cardinality)
          Sets the cardinality for this ContentParticle.
 

Field Detail

CARDINALITY_OPTIONAL

public static final short CARDINALITY_OPTIONAL
Constant to denote and optional cardinality.

CARDINALITY_MULTIPLE

public static final short CARDINALITY_MULTIPLE
Constant to denote and multiple cardinality.

CARDINALITY_OPTIONAL_MULTIPLE

public static final short CARDINALITY_OPTIONAL_MULTIPLE
Constant to denote and optional multiple cardinality.

CARDINALITY_ONCE

public static final short CARDINALITY_ONCE
Constant to denote and single cardinality.
Method Detail

getCardinality

public short getCardinality()
Returns the cardinality for this ContentParticle.
The cardinality can have one of four values - CARDINALITY_OPTIONAL ('?'), CARDINALITY_MULTIPLE ('+') or CARDINALITY_OPTIONAL_MULTIPLE ('*') or CARDINALITY_ONCE.
Returns:
The cardinality for this ContentParticle.
See Also:
setCardinality(short)

setCardinality

public void setCardinality(short cardinality)
Sets the cardinality for this ContentParticle.
The cardinality can have one of four values - CARDINALITY_OPTIONAL ('?'), CARDINALITY_MULTIPLE ('+') or CARDINALITY_OPTIONAL_MULTIPLE ('*') or CARDINALITY_ONCE.
Parameters:
cardinality - The cardinality for this ContentParticle.
See Also:
getCardinality()

Matra DTD Parser 0.8b