|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.org.DefaultAttributeHolder
Supported API: false
Extendable: false
Field Summary | |
private Hashtable |
attributes
|
private static HashMap |
baseKeys
|
private static String |
CLASSNAME
|
static long |
EXTERNALIZATION_VERSION_UID
|
private Hashtable |
keys
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
Constructor Summary | |
DefaultAttributeHolder()
Supported API: false |
Method Summary | |
private void |
_addKey(String normalized,
String unnormalized)
|
private String |
_normalizeName(String name)
|
void |
addValue(String attr_name,
Object value)
Adds value to attribute. |
Enumeration |
getAttrNames()
Returns all names of the attributes held by the object. |
Object |
getSingleValue(String attr_name)
Return one value associated with the attribute name. |
Enumeration |
getValues(String attr_name)
Returns the values associated with a given attribute name. |
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(DefaultAttributeHolder thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
removeAttribute(String attr_name)
Removes an attribute from the object (with all its values). |
void |
removeValue(String attr_name,
Object value)
Removes a specific value from the attribute. |
void |
replaceValue(String attr_name,
Object value)
Replaces object for all the current values of the attribute. |
void |
setValue(String attr_name,
Object value)
Replaces object for all the current values of the attribute. |
String |
toString()
Creates string representation of the attribute holder. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private Hashtable attributes
private Hashtable keys
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static final HashMap baseKeys
Constructor Detail |
public DefaultAttributeHolder()
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(DefaultAttributeHolder 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
public Enumeration getValues(String attr_name) throws WTException
getValues
in interface AttributeHolder
attr_name
-
WTException
public Object getSingleValue(String attr_name) throws WTException
getSingleValue
in interface AttributeHolder
attr_name
-
WTException
public Enumeration getAttrNames() throws WTException
getAttrNames
in interface AttributeHolder
WTException
public void addValue(String attr_name, Object value) throws WTException
addValue
in interface AttributeHolder
attr_name
- value
-
WTException
public void setValue(String attr_name, Object value) throws WTException
setValue
in interface AttributeHolder
attr_name
- value
-
WTException
public void replaceValue(String attr_name, Object value) throws WTException
replaceValue
in interface AttributeHolder
attr_name
- value
-
WTException
public void removeValue(String attr_name, Object value) throws WTException
removeValue
in interface AttributeHolder
attr_name
- value
-
WTException
public void removeAttribute(String attr_name) throws WTException
removeAttribute
in interface AttributeHolder
attr_name
-
WTException
public String toString()
toString
in interface AttributeHolder
private String _normalizeName(String name)
private void _addKey(String normalized, String unnormalized)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |