org.merlotxml.util.xml.xerces
Class DTDDocumentImpl

java.lang.Object
  extended byorg.merlotxml.util.xml.xerces.DTDDocumentImpl
All Implemented Interfaces:
DTDDocument

public class DTDDocumentImpl
extends java.lang.Object
implements DTDDocument

Author:
Evert Hoff

Constructor Summary
DTDDocumentImpl(java.lang.String publicId, java.lang.String systemId)
          Deprecated. Use GrammarDocument.
DTDDocumentImpl(java.lang.String pluginId, java.lang.String publicId, java.lang.String systemId)
          Deprecated. Use GrammarDocument.
 
Method Summary
 boolean elementIsValid(org.w3c.dom.Element el, boolean checkChildren)
          Returns whether or not an element (with or without its children) is valid according to its DTD definition.
 DTDElement fetchElement(java.lang.String name)
          Deprecated. Use GrammarDocument.
 java.util.Enumeration getElements()
          Returns the list of declared elements from the document.
 java.lang.String getExternalID()
          Returns the external identifier or null if there is none.
 java.util.Enumeration getInsertableElements(org.w3c.dom.Element el)
          Deprecated. Use GrammarComplexType.
 java.util.Enumeration getInsertableElements(org.w3c.dom.Element el, int index)
          Returns the list of the possible elements that can be inserted as a child in an element.
 int getInsertPosition(org.w3c.dom.Element parent, java.lang.String childElementName)
          Deprecated. Use GrammarComplexType.
 java.lang.String getName()
          Returns the name of the DTD
 void setGrammarDocument(GrammarDocument grammarDocument)
          Deprecated. Use GrammarComplexType.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DTDDocumentImpl

public DTDDocumentImpl(java.lang.String pluginId,
                       java.lang.String publicId,
                       java.lang.String systemId)
Deprecated. Use GrammarDocument.


DTDDocumentImpl

public DTDDocumentImpl(java.lang.String publicId,
                       java.lang.String systemId)
Deprecated. Use GrammarDocument.

Method Detail

getName

public java.lang.String getName()
Deprecated. Use GrammarDocument.

Description copied from interface: DTDDocument
Returns the name of the DTD

Specified by:
getName in interface DTDDocument

getElements

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

Description copied from interface: DTDDocument
Returns the list of declared elements from the document.

Specified by:
getElements in interface DTDDocument
Returns:
Enumeration consisting of DTDElement objects or null

fetchElement

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

Specified by:
fetchElement in interface DTDDocument

getInsertableElements

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

Description copied from interface: DTDDocument
Returns the list of the possible elements that can be inserted as a child in an element.

Specified by:
getInsertableElements in interface DTDDocument
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.

Specified by:
getInsertableElements in interface DTDDocument

getInsertPosition

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

Specified by:
getInsertPosition in interface DTDDocument

elementIsValid

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

Description copied from interface: DTDDocument
Returns whether or not an element (with or without its children) is valid according to its DTD definition.

Specified by:
elementIsValid in interface DTDDocument

getExternalID

public java.lang.String getExternalID()
Returns the external identifier or null if there is none.

The string should include PUBLIC and SYSTEM identifiers if they are available.

Specified by:
getExternalID in interface DTDDocument

setGrammarDocument

public void setGrammarDocument(GrammarDocument grammarDocument)
Deprecated. Use GrammarComplexType.

Temporary method.

Specified by:
setGrammarDocument in interface DTDDocument