org.apache.ws.jaxme.xs.util

Class DTDParser.DTDElement

public class DTDParser.DTDElement extends 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
voidaddAttribute(DTDParser.DTDAttribute pAttribute)
Adds a new attribute to the element.
DTDParser.DTDAttribute[]getAttributes()
Returns the elements attributes.
LocatorgetLocator()
Returns the elements locator.
StringgetModel()
Returns the elements content model.
StringgetName()
Returns the elements name.
voidsetModel(String pModel)
Sets the elements content model.

Constructor Detail

DTDElement

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

Method Detail

addAttribute

public void addAttribute(DTDParser.DTDAttribute pAttribute)
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.