com.wutka.dtd
Class DTDNotationList

java.lang.Object
  |
  +--com.wutka.dtd.DTDNotationList
All Implemented Interfaces:
DTDOutput

public class DTDNotationList
extends java.lang.Object
implements DTDOutput

Represents a notation declaration for an attribute


Field Summary
protected  java.util.Vector items
           
 
Constructor Summary
DTDNotationList()
          Creates a new notation
 
Method Summary
 void add(java.lang.String item)
          Adds a item to the list of notation values
 boolean equals(java.lang.Object ob)
           
 java.lang.String[] getItem()
          Returns the items in the notation list
 java.lang.String getItem(int i)
          Retrieves an item from the notation list
 java.lang.String[] getItems()
          Returns the list of notation values as an array
 java.util.Vector getItemsVec()
          Returns the list of notation values as a vector
 void remove(java.lang.String item)
          Removes an item from the list of notation values
 void setItem(java.lang.String[] newItems)
          Sets the items in the notation list
 void setItem(java.lang.String item, int i)
          Stores an item in the notation list
 void write(java.io.PrintWriter out)
          Writes a declaration for this notation
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

items

protected java.util.Vector items
Constructor Detail

DTDNotationList

public DTDNotationList()
Creates a new notation
Method Detail

add

public void add(java.lang.String item)
Adds a item to the list of notation values

remove

public void remove(java.lang.String item)
Removes an item from the list of notation values

getItems

public java.lang.String[] getItems()
Returns the list of notation values as an array

getItemsVec

public java.util.Vector getItemsVec()
Returns the list of notation values as a vector

write

public void write(java.io.PrintWriter out)
           throws java.io.IOException
Writes a declaration for this notation
Specified by:
write in interface DTDOutput

equals

public boolean equals(java.lang.Object ob)
Overrides:
equals in class java.lang.Object

getItem

public java.lang.String[] getItem()
Returns the items in the notation list

setItem

public void setItem(java.lang.String[] newItems)
Sets the items in the notation list

setItem

public void setItem(java.lang.String item,
                    int i)
Stores an item in the notation list

getItem

public java.lang.String getItem(int i)
Retrieves an item from the notation list