com.gomjabbar.xml.doctypes.dtd
Class Dtd

java.lang.Object
  |
  +--com.gomjabbar.xml.doctypes.dtd.Dtd
All Implemented Interfaces:
DocumentDescriptor

public class Dtd
extends java.lang.Object
implements DocumentDescriptor


Constructor Summary
Dtd(DocumentManager dm, java.lang.String spec)
           
 
Method Summary
 void addElement(DtdElement e)
           
 void addNotation(DtdNotation dn)
           
 void export(java.io.File f, java.lang.String url_for_dtd)
           
 DtdElement getElement(java.lang.String name)
           
 ElementDescriptor getElementDescriptor(java.lang.String name)
           
 java.lang.String[] getElementNames()
           
 java.lang.String[] getNotationNames()
           
 java.lang.String[] getRootElementNames()
           
 java.lang.String getXmlVersionDeclaration()
           
 boolean hasElement(java.lang.String n)
           
 java.lang.String resolveNotation(java.lang.String notationName)
           
 org.w3c.dom.Document toDocument(java.lang.String url_for_dtd)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Dtd

public Dtd(DocumentManager dm,
           java.lang.String spec)
    throws DtdException
Method Detail

hasElement

public boolean hasElement(java.lang.String n)

addElement

public void addElement(DtdElement e)
                throws DtdException

getElement

public DtdElement getElement(java.lang.String name)

getXmlVersionDeclaration

public java.lang.String getXmlVersionDeclaration()

getElementNames

public java.lang.String[] getElementNames()
Specified by:
getElementNames in interface DocumentDescriptor

getElementDescriptor

public ElementDescriptor getElementDescriptor(java.lang.String name)
Specified by:
getElementDescriptor in interface DocumentDescriptor

addNotation

public void addNotation(DtdNotation dn)

getNotationNames

public java.lang.String[] getNotationNames()
Specified by:
getNotationNames in interface DocumentDescriptor

resolveNotation

public java.lang.String resolveNotation(java.lang.String notationName)
Specified by:
resolveNotation in interface DocumentDescriptor

getRootElementNames

public java.lang.String[] getRootElementNames()
Specified by:
getRootElementNames in interface DocumentDescriptor

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toDocument

public org.w3c.dom.Document toDocument(java.lang.String url_for_dtd)

export

public void export(java.io.File f,
                   java.lang.String url_for_dtd)
            throws java.io.IOException