org.apache.xml.utils
Class StringToStringTableVector
public class StringToStringTableVector
A very simple table that stores a list of StringToStringTables, optimized
for small lists.
StringToStringTableVector
public StringToStringTableVector()
Default constructor. Note that the default
block size is very small, for small lists.
StringToStringTableVector
public StringToStringTableVector(int blocksize)
Construct a StringToStringTableVector, using the given block size.
blocksize
- Size of blocks to allocate
addElement
public final void addElement(StringToStringTable value)
Append a StringToStringTable object onto the vector.
value
- StringToStringTable object to add
contains
public final boolean contains(StringToStringTable s)
Tell if the table contains the given StringToStringTable.
s
- The StringToStringTable to find
- True if the StringToStringTable is found
containsKey
public final boolean containsKey(String key)
Given a string, find out if there is a value in this table
that matches the key.
- True if the string was found in table, null if not
elementAt
public final StringToStringTable elementAt(int i)
Get the nth element.
i
- Index of element to find
- The StringToStringTable object at the given index
get
public final String get(String key)
Given a string, find the last added occurance value
that matches the key.
- the last added occurance value that matches the key
or null if not found.
getLength
public final int getLength()
Get the length of the list.
- Number of StringToStringTable objects in the list
removeLastElem
public final void removeLastElem()
Remove the last element.
size
public final int size()
Get the length of the list.
- Number of StringToStringTable objects in the list
Copyright B) 2004 Apache XML Project. All Rights Reserved.