Matra DTD Parser 0.8b

com.conradroche.matra.decl
Class AttList

java.lang.Object
  |
  +--com.conradroche.matra.decl.AttList

public class AttList
extends Object

Class to store the attribute list for an element type.

Author:
Conrad Roche

Constructor Summary
AttList()
          AttList default constructor.
AttList(String content)
          Read an attribute list declaration from the string.
 
Method Summary
 void addAttribute(Attribute a)
          Add an attribute to the attribute list.
 Vector getAttribs()
          Get the list of attributes in the atribute list.
 String getEleName()
          Get the name of the element to which this attribute list is associated.
 boolean getHasNotationAttribute()
          Checks if the attribute list has an attribute of type notation.
 void merge(AttList attList)
          Merges all the attributes in the specified attribute list into this attribute list.
 void reset()
          reset the attribute list.
 void setEleName(String newEleName)
          Set the element name associated with this attribute list.
 String toString()
          Convert this Attribute list to a DTD String.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttList

public AttList()
AttList default constructor.

AttList

public AttList(String content)
        throws DTDSyntaxException
Read an attribute list declaration from the string.
Parameters:
content - The text defining the attribute list.
Throws:
DTDSyntaxException - If syntax error encountered on parsing.
Method Detail

addAttribute

public void addAttribute(Attribute a)
Add an attribute to the attribute list.
Parameters:
a - The Attribute to be added.

getHasNotationAttribute

public boolean getHasNotationAttribute()
Checks if the attribute list has an attribute of type notation.
Returns:
true if the attribute list has an attribute of type notation; false otherwise.

getAttribs

public Vector getAttribs()
Get the list of attributes in the atribute list.
Returns:
The list of attributes.

getEleName

public String getEleName()
Get the name of the element to which this attribute list is associated.
Returns:
The element name.
See Also:
setEleName(java.lang.String)

reset

public void reset()
reset the attribute list.

merge

public void merge(AttList attList)
Merges all the attributes in the specified attribute list into this attribute list.
Parameters:
attList - The attribute list to merge from.

setEleName

public void setEleName(String newEleName)
Set the element name associated with this attribute list.
Parameters:
newEleName - The name of the element.
See Also:
getEleName()

toString

public String toString()
Convert this Attribute list to a DTD String.
Overrides:
toString in class Object
Returns:
java.lang.String

Matra DTD Parser 0.8b