com.conradroche.dtd.decl.elem
Interface CompositeContentParticle
- All Superinterfaces:
- ContentParticle
- public interface CompositeContentParticle
- extends ContentParticle
Holds a composite CP that holds either choice lists of
content particles, or sequence lists of content particles.
- Author:
- Conrad Roche
Field Summary |
static short |
CP_TYPE_CHOICE
Identifies the type of composition to be choice. |
static short |
CP_TYPE_SEQUENCE
Identifies the type of composition to be sequence. |
Method Summary |
Collection |
getCPList()
Returns the list of ContentParticle associated
with this CompositeContentParticle. |
short |
getCPType()
Returns the type for this Composite CP. |
void |
setCPList(Collection list)
Sets the list of ContentParticle associated
with this CompositeContentParticle. |
void |
setCPType(short type)
Sets the type for this Composite CP. |
CP_TYPE_CHOICE
public static final short CP_TYPE_CHOICE
- Identifies the type of composition to be choice.
CP_TYPE_SEQUENCE
public static final short CP_TYPE_SEQUENCE
- Identifies the type of composition to be sequence.
getCPType
public short getCPType()
- Returns the type for this Composite CP. The value returned
can be either
CP_TYPE_CHOICE
if this is a
"choice lists of content particles" or
CP_TYPE_SEQUENCE
if this is a
"sequence lists of content particles".
- Returns:
CP_TYPE_CHOICE
if this is a
"choice lists of content particles" or
CP_TYPE_SEQUENCE
if this is a
"sequence lists of content particles".- See Also:
setCPType(short)
setCPType
public void setCPType(short type)
- Sets the type for this Composite CP.
The value passed can be either
CP_TYPE_CHOICE
if this is a
"choice lists of content particles" or
CP_TYPE_SEQUENCE
if this is a
"sequence lists of content particles".
- Parameters:
type
- The type for this Composite CP.- See Also:
getCPType()
setCPList
public void setCPList(Collection list)
- Sets the list of ContentParticle associated
with this CompositeContentParticle.
- Parameters:
list
- List of ContentParticle- See Also:
getCPList()
getCPList
public Collection getCPList()
- Returns the list of ContentParticle associated
with this CompositeContentParticle.
- Returns:
- List of ContentParticle.
- See Also:
setCPList(java.util.Collection)