org.merlotxml.util.xml
Interface DTDDocument

All Known Implementing Classes:
DTDDocumentImpl

Deprecated. Use GrammarDocument.

public interface DTDDocument

This interface provides means to access the DTD definitions in a manner that can be independent of whatever third party underlying structures are used for the implementation.

Author:
Kelly A. Campbell

Method Summary
 boolean elementIsValid(org.w3c.dom.Element el, boolean checkChildren)
          Deprecated. Use GrammarComplexType
 DTDElement fetchElement(java.lang.String name)
          Deprecated. Use GrammarDocument.
 java.util.Enumeration getElements()
          Deprecated. Use GrammarDocument.
 java.lang.String getExternalID()
          Deprecated. Returns the SYSTEM identifier for a dtd
 java.util.Enumeration getInsertableElements(org.w3c.dom.Element el)
          Deprecated. Use GrammarComplexType
 java.util.Enumeration getInsertableElements(org.w3c.dom.Element el, int index)
          Deprecated. Use GrammarComplexType
 int getInsertPosition(org.w3c.dom.Element parent, java.lang.String childElementName)
          Deprecated. Use GrammarComplexType
 java.lang.String getName()
          Deprecated. Returns the name of the DTD
 void setGrammarDocument(GrammarDocument gdoc)
          Deprecated. Allows setting of the GrammarDocument
 

Method Detail

getName

public java.lang.String getName()
Deprecated. 
Returns the name of the DTD


getElements

public java.util.Enumeration getElements()
Deprecated. Use GrammarDocument.

Returns the list of declared elements from the document.

Returns:
Enumeration consisting of DTDElement objects or null

fetchElement

public DTDElement fetchElement(java.lang.String name)
Deprecated. Use GrammarDocument.


getInsertableElements

public java.util.Enumeration getInsertableElements(org.w3c.dom.Element el,
                                                   int index)
Deprecated. Use GrammarComplexType

Returns the list of the possible elements that can be inserted as a child in an element.

Parameters:
el - a DOM element (future parent element)
index - index where the returned elements should be insertable
Returns:
Enumeration of the insertable DTDElements objects

getInsertableElements

public java.util.Enumeration getInsertableElements(org.w3c.dom.Element el)
Deprecated. Use GrammarComplexType


getInsertPosition

public int getInsertPosition(org.w3c.dom.Element parent,
                             java.lang.String childElementName)
Deprecated. Use GrammarComplexType


elementIsValid

public boolean elementIsValid(org.w3c.dom.Element el,
                              boolean checkChildren)
Deprecated. Use GrammarComplexType

Returns whether or not an element (with or without its children) is valid according to its DTD definition.


getExternalID

public java.lang.String getExternalID()
Deprecated. 
Returns the SYSTEM identifier for a dtd


setGrammarDocument

public void setGrammarDocument(GrammarDocument gdoc)
Deprecated. 
Allows setting of the GrammarDocument