Methods Summary |
---|
public final void | addElement(com.sun.org.apache.xml.internal.utils.StringToStringTable value)Append a StringToStringTable object onto the vector.
if ((m_firstFree + 1) >= m_mapSize)
{
m_mapSize += m_blocksize;
StringToStringTable newMap[] = new StringToStringTable[m_mapSize];
System.arraycopy(m_map, 0, newMap, 0, m_firstFree + 1);
m_map = newMap;
}
m_map[m_firstFree] = value;
m_firstFree++;
|
public final boolean | contains(com.sun.org.apache.xml.internal.utils.StringToStringTable s)Tell if the table contains the given StringToStringTable.
for (int i = 0; i < m_firstFree; i++)
{
if (m_map[i].equals(s))
return true;
}
return false;
|
public final boolean | containsKey(java.lang.String key)Given a string, find out if there is a value in this table
that matches the key.
for (int i = m_firstFree - 1; i >= 0; --i)
{
if (m_map[i].get(key) != null)
return true;
}
return false;
|
public final com.sun.org.apache.xml.internal.utils.StringToStringTable | elementAt(int i)Get the nth element.
return m_map[i];
|
public final java.lang.String | get(java.lang.String key)Given a string, find the last added occurance value
that matches the key.
for (int i = m_firstFree - 1; i >= 0; --i)
{
String nsuri = m_map[i].get(key);
if (nsuri != null)
return nsuri;
}
return null;
|
public final int | getLength()Get the length of the list.
return m_firstFree;
|
public final void | removeLastElem()Remove the last element.
if (m_firstFree > 0)
{
m_map[m_firstFree] = null;
m_firstFree--;
}
|
public final int | size()Get the length of the list.
return m_firstFree;
|