Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.merlotxml.util.xml
Interface DTDDocument  view DTDDocument download DTDDocument.java


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.

Version:
$Id: DTDDocument.java,v 1.1.1.1 2001/07/02 15:41:28 flament Exp $

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.
 java.util.Enumeration getElements()
          Returns the list of declared elements from the document.
 java.lang.String getExternalID()
          Returns the SYSTEM identifier for a dtd
 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.
 java.lang.String getName()
          Returns the name of the DTD
 

Method Detail

getName

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


getElements

public java.util.Enumeration getElements()
Returns the list of declared elements from the document.


getInsertableElements

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


elementIsValid

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


getExternalID

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