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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Dtd
public Dtd(DocumentManager dm,
java.lang.String spec)
throws DtdException
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