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


Constructor Summary
DtdElement()
           
 
Method Summary
 void addAttribute(DtdAttribute a)
           
static ElementSpec createSpec(java.lang.String s)
           
 AttributeDescriptor getAttributeDescriptor(java.lang.String n)
           
 AttributeDescriptor[] getAttributeDescriptors()
           
 java.lang.String[] getAttributeNames()
           
 ElementSpec getChildren()
           
 java.lang.String[] getComments()
           
 ContentDescriptor getContent()
           
 java.lang.String getElementName()
           
 java.lang.String getName()
           
 boolean hasAttribute(java.lang.String n)
           
 boolean isEmpty()
           
 void setComments(java.lang.String[] comments)
           
 org.w3c.dom.Element toDocument(org.w3c.dom.Document d)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DtdElement

public DtdElement()
Method Detail

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