|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.fc.WTStringMap
WTStringMap
class maps keys to values. Both the keys and
the values must be of type String. A map contains no duplicate keys;
each key can map to at most one value.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private boolean |
dirty
|
static long |
EXTERNALIZATION_VERSION_UID
|
private String |
mapString
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
(package private) Hashtable |
stringTable
|
Constructor Summary | |
WTStringMap()
No arg constructor. |
|
WTStringMap(String value)
Constructor that takes as argument a String in the internal representation format (even number of comma separated strings). |
Method Summary | |
void |
clear()
Removes all mappings from this map. |
boolean |
containsKey(String key)
Returns true if this map contains a mapping for the specified key. |
boolean |
containsValue(String value)
Returns true if this map maps one or more keys to the specified value. |
boolean |
equals(Object obj)
Compares the specified object with this map for equality. |
String |
get(String key)
Returns the value to which this map maps the specified key. |
protected String |
getMapString()
Gets the value of the attribute: mapString; Internal representation of the map. |
int |
hashCode()
Returns hash code. |
boolean |
isEmpty()
Returns true if this map contains no key-value mappings. |
Enumeration |
keys()
Returns am emumeration with the keys contained in this map. |
private void |
mapStringValidate(String a_MapString)
|
String |
put(String key,
String value)
Associates the specified value with the specified key in this map. |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(WTStringMap thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
String |
remove(String key)
Removes the mapping for this key from this map if present. |
protected void |
setMapString(String a_MapString)
Sets the value of the attribute: mapString; Internal representation of the map. |
private void |
setStringValue()
|
private void |
setTable()
|
int |
size()
Returns the number of key-value mappings in this map. |
String |
toString()
Returns the internal string representation of the object. |
Enumeration |
values()
Returns an enumeration with the values contained in this map. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private String mapString
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
Hashtable stringTable
private boolean dirty
Constructor Detail |
public WTStringMap()
public WTStringMap(String value) throws DatastoreException
value
-
DatastoreException
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(WTStringMap thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
protected String getMapString()
protected void setMapString(String a_MapString) throws WTPropertyVetoException
a_MapString
-
WTPropertyVetoException
private void mapStringValidate(String a_MapString) throws WTPropertyVetoException
a_MapString
-
WTPropertyVetoException
public String toString()
public void clear()
public boolean containsKey(String key)
key
-
public boolean containsValue(String value)
value
-
public boolean equals(Object obj)
obj
-
public String get(String key)
key
-
public boolean isEmpty()
public Enumeration keys()
public String put(String key, String value)
key
- value
-
public String remove(String key)
key
-
public int size()
public Enumeration values()
public int hashCode()
private void setTable()
private void setStringValue()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |