com.wutka.dtd
Modifier and Type | Field and Description |
---|---|
protected java.util.Vector |
items |
Constructor and Description |
---|
DTDEnumeration()
Creates a new enumeration
|
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.String item)
Adds a new value to the list of values
|
boolean |
equals(java.lang.Object ob) |
java.lang.String[] |
getItem()
Returns the items in the enumeration
|
java.lang.String |
getItem(int i)
Retrieves an item from the enumeration
|
java.lang.String[] |
getItems()
Returns the values as an array
|
java.util.Vector |
getItemsVec()
Returns the values as a vector (not a clone!)
|
void |
remove(java.lang.String item)
Removes a value from the list of values
|
void |
setItem(java.lang.String[] newItems)
Sets the items in the enumeration
|
void |
setItem(java.lang.String item,
int i)
Stores an item in the enumeration
|
void |
write(java.io.PrintWriter out)
Writes out a declaration for this enumeration
|
public void add(java.lang.String item)
public void remove(java.lang.String item)
public java.lang.String[] getItems()
public java.util.Vector getItemsVec()
public void write(java.io.PrintWriter out) throws java.io.IOException
public boolean equals(java.lang.Object ob)
equals
in class java.lang.Object
public java.lang.String[] getItem()
public void setItem(java.lang.String[] newItems)
public void setItem(java.lang.String item, int i)
public java.lang.String getItem(int i)
Copyright (c) 2001 Mark Wutka.