org.apache.ws.jaxme.xs.util

Class 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

DTDElement(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.
Locator
getLocator()
Returns the elements locator.
String
getModel()
Returns the elements content model.
String
getName()
Returns the elements name.
void
setModel(String pModel)
Sets the elements content model.

Constructor Details

DTDElement

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

Method Details

addAttribute

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

getAttributes

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

getLocator

public Locator getLocator()
Returns the elements locator.

getModel

public String getModel()
Returns the elements content model.

getName

public String getName()
Returns the elements name.

setModel

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