|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enhydra.apache.xerces.validators.common.XMLValidator.OrderedHashtable
Ordered hashtable. This class acts as a hashtable with
put()
and get()
operations but also
allows values to be queried via the order that they were
added to the hashtable.
Note: This class does not perform any error checking.
Note: This class is not efficient but is assumed to be used for a very small set of values.
Inner Class Summary | |
static class |
XMLValidator.OrderedHashtable.Entry
Hashtable entry. |
Constructor Summary | |
(package private) |
XMLValidator.OrderedHashtable()
|
Method Summary | |
void |
clear()
Removes all of the entries from the hashtable. |
Object |
clone()
Clones this object. |
IDValue |
get(Field key)
Returns the value associated to the specified key. |
int |
indexOf(Field key)
Returns the index of the entry with the specified key. |
Field |
keyAt(int index)
Returns the key at the specified index. |
void |
put(Field key,
IDValue value)
Puts an entry into the hashtable. |
int |
size()
Returns the number of entries in the hashtable. |
String |
toString()
Returns a string representation of this object. |
IDValue |
valueAt(int index)
Returns the value at the specified index. |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
XMLValidator.OrderedHashtable()
Method Detail |
public int size()
public void put(Field key, IDValue value)
public IDValue get(Field key)
public int indexOf(Field key)
public Field keyAt(int index)
public IDValue valueAt(int index)
public void clear()
public Object clone()
clone
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |