org.apache.ws.jaxme.xs.util
Class DTDParser.DTDElement

java.lang.Object
  extended by org.apache.ws.jaxme.xs.util.DTDParser.DTDElement
Enclosing class:
DTDParser

public class DTDParser.DTDElement
extends java.lang.Object

This class is used to collect the elements in the DTD temporarily.


Constructor Summary
DTDParser.DTDElement(java.lang.String pName)
          Creates a new element declaration with the given name.
 
Method Summary
 void addAttribute(DTDParser.DTDAttribute pAttribute)
          Adds a new attribute to the element.
 DTDParser.DTDAttribute[] getAttributes()
          Returns the elements attributes.
 org.xml.sax.Locator getLocator()
          Returns the elements locator.
 java.lang.String getModel()
          Returns the elements content model.
 java.lang.String getName()
          Returns the elements name.
 void setModel(java.lang.String pModel)
          Sets the elements content model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DTDParser.DTDElement

public DTDParser.DTDElement(java.lang.String pName)
Creates a new element declaration with the given name.

Method Detail

setModel

public void setModel(java.lang.String pModel)
Sets the elements content model.


getModel

public java.lang.String getModel()
Returns the elements content model.


getName

public java.lang.String getName()
Returns the elements name.


addAttribute

public void addAttribute(DTDParser.DTDAttribute pAttribute)
                  throws org.xml.sax.SAXException
Adds a new attribute to the element.

Throws:
org.xml.sax.SAXException

getAttributes

public DTDParser.DTDAttribute[] getAttributes()
Returns the elements attributes.


getLocator

public org.xml.sax.Locator getLocator()
Returns the elements locator.