com.conradroche.matra.decl
Class AttList

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

public class AttList
extends java.lang.Object

Class to store the attribute list for an element type.

Author:
Conrad Roche

Constructor Summary
AttList()
          AttList default constructor.
AttList(java.lang.String content)
          Create an attribute list for the specified content.
 
Method Summary
 void addAttribute(Attribute a)
          Add an attribute to the attribute list.
 java.util.Vector getAttribs()
          Get the list of attributes in the atribute list.
 java.lang.String getEleName()
          Get the name of the element to which this attribute list is associated.
 boolean getHasNotationAttribute()
           
 void merge(AttList attList)
           
 void reset()
          reset the attribute list for use.
 void setEleName(java.lang.String newEleName)
          Set the element name associated with this attribute list.
 java.lang.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(java.lang.String content)
Create an attribute list for the specified content.
Parameters:
content - The text defining the attribute list.
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()

getAttribs

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

getEleName

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

reset

public void reset()
reset the attribute list for use.

merge

public void merge(AttList attList)

setEleName

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

toString

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