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
Method Summary |
short |
getCardinality()
Returns the multiplicity for this ContentParticle. |
void |
setCardinality(short multiplicity)
Sets the multiplicity for this ContentParticle. |
CARDINALITY_OPTIONAL
public static final short CARDINALITY_OPTIONAL
CARDINALITY_MULTIPLE
public static final short CARDINALITY_MULTIPLE
CARDINALITY_OPTIONAL_MULTIPLE
public static final short CARDINALITY_OPTIONAL_MULTIPLE
CARDINALITY_ONCE
public static final short CARDINALITY_ONCE
getCardinality
public short getCardinality()
- Returns the multiplicity for this ContentParticle.
The multiplicity can have one of four values -
CARDINALITY_OPTIONAL ('?'), CARDINALITY_MULTIPLE ('+') or
CARDINALITY_OPTIONAL_MULTIPLE ('*') or
CARDINALITY_ONCE.
- Returns:
- The multiplicity for this ContentParticle.
setCardinality
public void setCardinality(short multiplicity)
- Sets the multiplicity for this ContentParticle.
The multiplicity can have one of four values -
CARDINALITY_OPTIONAL ('?'), CARDINALITY_MULTIPLE ('+') or
CARDINALITY_OPTIONAL_MULTIPLE ('*') or
CARDINALITY_ONCE.
- Parameters:
multiplicity
- The multiplicity for this ContentParticle.