org.merlotxml.util.xml.xml4j
Class DTDDocumentImpl

java.lang.Object
  |
  +--org.merlotxml.util.xml.xml4j.DTDDocumentImpl

public class DTDDocumentImpl
extends java.lang.Object
implements DTDDocument

A DTDDocument based on the XML 4j package

Version:
$Id: DTDDocumentImpl.java,v 1.8 2000/06/27 05:58:53 camk Exp $
Author:
Kelly A. Campbell

Constructor Summary
DTDDocumentImpl(com.ibm.xml.parser.DTD doc, java.lang.String publicId, java.lang.String systemId)
           
 
Method Summary
protected  DTDElement fetchElement(java.lang.String name)
           
 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, int index)
          Returns a list of the possible elements that can be inserted or appended on this element.
 java.lang.String getName()
          Returns the name of the DTD
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DTDDocumentImpl

public DTDDocumentImpl(com.ibm.xml.parser.DTD doc,
                       java.lang.String publicId,
                       java.lang.String systemId)
Method Detail

getName

public java.lang.String getName()
Description copied from interface: DTDDocument
Returns the name of the DTD
Specified by:
getName in interface DTDDocument

getElements

public java.util.Enumeration getElements()
Description copied from interface: DTDDocument
Returns the list of declared elements from the document.
Specified by:
getElements in interface DTDDocument
Tags copied from interface: DTDDocument
Returns:
Enumeration consisting of DTDElement objects or null

fetchElement

protected DTDElement fetchElement(java.lang.String name)

getInsertableElements

public java.util.Enumeration getInsertableElements(org.w3c.dom.Element el,
                                                   int index)
Description copied from interface: DTDDocument
Returns a list of the possible elements that can be inserted or appended on this element.
Specified by:
getInsertableElements in interface DTDDocument
Tags copied from interface: DTDDocument
Parameters:
el - A DOM element
Returns:
vector containing DTDElement objects

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