com.conradroche.dtd.decl.elem
Interface MixedContent
- All Superinterfaces:
- ContentSpec
- public interface MixedContent
- extends ContentSpec
Interface defining a Mixed Content.
From the XML Specifications
[Definition: An element type has mixed content
when elements of that type may contain character
data, optionally interspersed with child elements.]
In this case, the types of the child elements may
be constrained, but not their order or their
number of occurrences.
- Author:
- Conrad Roche
Method Summary |
void |
addElement(String elemName)
Adds an element name to the list of valid
child elements. |
Collection |
getElementList()
Returns a Collection of Element names (other than #PCDATA)
that constitute this mixed contentspec. |
void |
setElementList(Collection elemList)
Sets the collection of element names that constitute
this mixed content. |
getElementList
public Collection getElementList()
- Returns a Collection of Element names (other than #PCDATA)
that constitute this mixed contentspec. If the
content spec is "(#PCDATA)" then this method will
return null.
- Returns:
- A Collection of String element names that
constitute this mixed content.
- See Also:
setElementList(java.util.Collection)
setElementList
public void setElementList(Collection elemList)
- Sets the collection of element names that constitute
this mixed content.
- Parameters:
elemList
- A Collection of String element names that
constitute this mixed content.- See Also:
getElementList()
addElement
public void addElement(String elemName)
- Adds an element name to the list of valid
child elements.
- Parameters:
elemName
- The element name to add.