org.merlotxml.util.xml.xerces
Class DTDElementImpl

java.lang.Object
  extended byorg.merlotxml.util.xml.xerces.DTDElementImpl
All Implemented Interfaces:
java.lang.Comparable, DTDElement

public class DTDElementImpl
extends java.lang.Object
implements DTDElement, java.lang.Comparable

Author:
Evert Hoff

Constructor Summary
DTDElementImpl(DTDDocumentImpl doc, GrammarComplexType complexType)
           
DTDElementImpl(DTDDocumentImpl doc, java.lang.String name)
           
 
Method Summary
 int compareTo(java.lang.Object o)
           
 DTDAttribute getAttribute(java.lang.String name)
          Returns a single named attribute for this element
 java.util.Enumeration getAttributes()
          Returns the list of attributes
 DTDContentSpec getContentSpec()
          Returns the content spec of the element.
 DTDDocumentImpl getDTDDocumentImpl()
           
 java.lang.String getName()
          Returns the name of this element
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DTDElementImpl

public DTDElementImpl(DTDDocumentImpl doc,
                      java.lang.String name)

DTDElementImpl

public DTDElementImpl(DTDDocumentImpl doc,
                      GrammarComplexType complexType)
Method Detail

getDTDDocumentImpl

public DTDDocumentImpl getDTDDocumentImpl()

getName

public java.lang.String getName()
Description copied from interface: DTDElement
Returns the name of this element

Specified by:
getName in interface DTDElement

getAttributes

public java.util.Enumeration getAttributes()
Description copied from interface: DTDElement
Returns the list of attributes

Specified by:
getAttributes in interface DTDElement
Returns:
an enumeration consisting of DTDAttribute objects or null

getAttribute

public DTDAttribute getAttribute(java.lang.String name)
Description copied from interface: DTDElement
Returns a single named attribute for this element

Specified by:
getAttribute in interface DTDElement

getContentSpec

public DTDContentSpec getContentSpec()
Description copied from interface: DTDElement
Returns the content spec of the element. Should not be used and will probably go away

Specified by:
getContentSpec in interface DTDElement

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable