|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xml.utils.StringToStringTable
A very simple lookup table that stores a list of strings, the even number strings being keys, and the odd number strings being values.
| Field Summary | |
private int |
m_blocksize
Size of blocks to allocate |
private int |
m_firstFree
Number of strings this contains |
private String[] |
m_map
Array of strings this contains |
private int |
m_mapSize
Size of this table |
| Constructor Summary | |
StringToStringTable()
Default constructor. |
|
StringToStringTable(int blocksize)
Construct a StringToStringTable, using the given block size. |
|
| Method Summary | |
boolean |
contains(String key)
Tell if the table contains the given string. |
boolean |
containsValue(String val)
Tell if the table contains the given string. |
String |
elementAt(int i)
Get the nth element. |
String |
get(String key)
Tell if the table contains the given string. |
String |
getByValue(String val)
Tell if the table contains the given string in the value. |
String |
getIgnoreCase(String key)
Tell if the table contains the given string. |
int |
getLength()
Get the length of the list. |
void |
put(String key,
String value)
Append a string onto the vector. |
void |
remove(String key)
Remove the given string and its value from this table. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private int m_blocksize
private String[] m_map
private int m_firstFree
private int m_mapSize
| Constructor Detail |
public StringToStringTable()
public StringToStringTable(int blocksize)
blocksize - Size of blocks to allocate| Method Detail |
public final int getLength()
public final void put(String key,
String value)
key - String to add to the listvalue - Value of the stringpublic final String get(String key)
key - String to look up
public final void remove(String key)
key - String to remove from the tablepublic final String getIgnoreCase(String key)
key - String to look up
public final String getByValue(String val)
val - Value of the string to look up
public final String elementAt(int i)
i - index of the string to look up.
public final boolean contains(String key)
key - String to look up
public final boolean containsValue(String val)
val - value to look up
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||