Milyn-Smooks Version 0.4

org.milyn.dtd
Class DTDStore.DTDObjectContainer

java.lang.Object
  extended byorg.milyn.dtd.DTDStore.DTDObjectContainer
Enclosing class:
DTDStore

public static class DTDStore.DTDObjectContainer
extends java.lang.Object

Container class for the underlying DTD implementation.

We're trying to hide the underlying implementation in the belief that it will probably change in the future.

Author:
tfennelly

Method Summary
 java.lang.String[] getAnyElements()
          Get the list of DTD elements whose content spec is defined as being ANY.
 java.util.List getChildElements(java.lang.String elementName)
          Get the child elements for the named element.
 java.util.List getElementAttributes(java.lang.String elementName)
          Get the defined element attributes for the named element.
 java.lang.String[] getEmptyElements()
          Get the list of DTD elements whose content spec is defined as being EMPTY.
 java.lang.String[] getMixedElements()
          Get the list of DTD elements whose content spec is defined as being MIXED.
 java.lang.String[] getNonAnyElements()
          Get the list of DTD elements whose content spec is not defined as being ANY.
 java.lang.String[] getNonEmptyElements()
          Get the list of DTD elements whose content spec is not defined as being EMPTY.
 java.lang.String[] getNonMixedElements()
          Get the list of DTD elements whose content spec is not defined as being MIXED.
 java.lang.String[] getNonPCDataElements()
          Get the list of DTD elements whose content spec is defined as being #PCDATA.
 java.lang.String[] getPCDataElements()
          Get the list of DTD elements whose content spec is defined as being #PCDATA.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getChildElements

public java.util.List getChildElements(java.lang.String elementName)
Get the child elements for the named element.

PCData is returned as a "*" list entry.

Parameters:
elementName - Element name.
Returns:
List of allowed element names (Strings).

getElementAttributes

public java.util.List getElementAttributes(java.lang.String elementName)
                                    throws ElementNotDefined
Get the defined element attributes for the named element.

Parameters:
elementName - The element name.
Returns:
The list of attribute names (Strings) for the named element.
Throws:
ElementNotDefined - Element not defined. Calls shouldn't be made to this function for undefined elements.

getEmptyElements

public java.lang.String[] getEmptyElements()
Get the list of DTD elements whose content spec is defined as being EMPTY.

Returns:
Array of elements names.

getNonEmptyElements

public java.lang.String[] getNonEmptyElements()
Get the list of DTD elements whose content spec is not defined as being EMPTY.

Returns:
Array of elements names.

getAnyElements

public java.lang.String[] getAnyElements()
Get the list of DTD elements whose content spec is defined as being ANY.

Returns:
Array of elements names.

getNonAnyElements

public java.lang.String[] getNonAnyElements()
Get the list of DTD elements whose content spec is not defined as being ANY.

Returns:
Array of elements names.

getMixedElements

public java.lang.String[] getMixedElements()
Get the list of DTD elements whose content spec is defined as being MIXED.

Returns:
Array of elements names.

getNonMixedElements

public java.lang.String[] getNonMixedElements()
Get the list of DTD elements whose content spec is not defined as being MIXED.

Returns:
Array of elements names.

getPCDataElements

public java.lang.String[] getPCDataElements()
Get the list of DTD elements whose content spec is defined as being #PCDATA.

Returns:
Array of elements names.

getNonPCDataElements

public java.lang.String[] getNonPCDataElements()
Get the list of DTD elements whose content spec is defined as being #PCDATA.

Returns:
Array of elements names.

Milyn-Smooks Version 0.4