com.conradroche.dtd.decl.elem
Interface MixedContent

All Superinterfaces:
ContentSpec

public interface MixedContent
extends ContentSpec

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(java.lang.String elemName)
          Adds an element name to the list of valid child elements.
 java.util.Collection getElementList()
          Returns a Collection of Element names (other than #PCDATA) that constitute this mixed contentspec.
 void setElementList(java.util.Collection elemList)
          Sets the collection of element names that constitute this mixed content.
 

Method Detail

getElementList

public java.util.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.

setElementList

public void setElementList(java.util.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.

addElement

public void addElement(java.lang.String elemName)
Adds an element name to the list of valid child elements.
Parameters:
elemName - The element name to add.