|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.wutka.dtd.DTDEnumeration
public class DTDEnumeration
Represents an enumeration of attribute values
| Field Summary | |
|---|---|
protected java.util.Vector |
items
|
| Constructor Summary | |
|---|---|
DTDEnumeration()
Creates a new enumeration |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Vector items
| Constructor Detail |
|---|
public DTDEnumeration()
| Method Detail |
|---|
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
write in interface DTDOutputjava.io.IOExceptionpublic boolean equals(java.lang.Object ob)
equals in class java.lang.Objectpublic 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)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||