com.gomjabbar.xml.doctypes.dtd
Class DtdElement
java.lang.Object
|
+--com.gomjabbar.xml.doctypes.dtd.DtdElement
- All Implemented Interfaces:
- ElementDescriptor
- public class DtdElement
- extends java.lang.Object
- implements ElementDescriptor
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DtdElement
public DtdElement()
getChildren
public ElementSpec getChildren()
getName
public java.lang.String getName()
hasAttribute
public boolean hasAttribute(java.lang.String n)
addAttribute
public void addAttribute(DtdAttribute a)
throws DtdException
getAttributeNames
public java.lang.String[] getAttributeNames()
- Specified by:
getAttributeNames
in interface ElementDescriptor
getElementName
public java.lang.String getElementName()
- Specified by:
getElementName
in interface ElementDescriptor
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface ElementDescriptor
getContent
public ContentDescriptor getContent()
- Specified by:
getContent
in interface ElementDescriptor
getAttributeDescriptors
public AttributeDescriptor[] getAttributeDescriptors()
- Specified by:
getAttributeDescriptors
in interface ElementDescriptor
getAttributeDescriptor
public AttributeDescriptor getAttributeDescriptor(java.lang.String n)
- Specified by:
getAttributeDescriptor
in interface ElementDescriptor
setComments
public void setComments(java.lang.String[] comments)
getComments
public java.lang.String[] getComments()
- Specified by:
getComments
in interface ElementDescriptor
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
toDocument
public org.w3c.dom.Element toDocument(org.w3c.dom.Document d)
createSpec
public static ElementSpec createSpec(java.lang.String s)
throws DtdException