wt.org
Class StandardAttributeHolder

java.lang.Object
  extended bywt.org.StandardAttributeHolder
All Implemented Interfaces:
AttributeHolder, Evolvable, Externalizable, Serializable

public class StandardAttributeHolder
extends Object
implements AttributeHolder, Externalizable, Evolvable

Standard implementation of the attribute holding behavior. Hash map implementation of the attribute holding behavior.

Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
          Deprecated.  
static long EXTERNALIZATION_VERSION_UID
          Deprecated.  
private  com.objectspace.jgl.HashMap map
          Deprecated.  
protected static long OLD_FORMAT_VERSION_UID
          Deprecated.  
private static String RESOURCE
          Deprecated.  
(package private) static long serialVersionUID
          Deprecated.  
 
Constructor Summary
StandardAttributeHolder()
          Deprecated.  
 
Method Summary
 void addValue(String attr_name, Object value)
          Deprecated.  
 Enumeration getAttrNames()
          Deprecated.  
 com.objectspace.jgl.HashMap getMap()
          Deprecated.  
 Object getSingleValue(String attr_name)
          Deprecated.  
 Enumeration getValues(String attr_name)
          Deprecated.  
private  void mapValidate(com.objectspace.jgl.HashMap a_Map)
          Deprecated.  
 void readExternal(ObjectInput input)
          Deprecated.  
private  boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Deprecated. Reads the non-transient fields of this class from an external source, which is not the current version.
protected  boolean readVersion(StandardAttributeHolder thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Deprecated.  
 void removeAttribute(String attr_name)
          Deprecated.  
 void removeValue(String attr_name, Object value)
          Deprecated.  
 void replaceValue(String attr_name, Object value)
          Deprecated.  
 void setMap(com.objectspace.jgl.HashMap a_Map)
          Deprecated.  
 void setValue(String attr_name, Object value)
          Deprecated.  
private  int sizeEnumeration(Enumeration e)
          Deprecated.  
 String toString()
          Deprecated.  
 void writeExternal(ObjectOutput output)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
Deprecated. 
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME
Deprecated. 

map

private com.objectspace.jgl.HashMap map
Deprecated. 

serialVersionUID

static final long serialVersionUID
Deprecated. 
See Also:
Constant Field Values

EXTERNALIZATION_VERSION_UID

public static final long EXTERNALIZATION_VERSION_UID
Deprecated. 
See Also:
Constant Field Values

OLD_FORMAT_VERSION_UID

protected static final long OLD_FORMAT_VERSION_UID
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

StandardAttributeHolder

public StandardAttributeHolder()
Deprecated.  

No arg constructor.

Supported API: false

Method Detail

writeExternal

public void writeExternal(ObjectOutput output)
                   throws IOException
Deprecated.  

Writes the non-transient fields of this class to an external source.

Supported API: false

Specified by:
writeExternal in interface Externalizable
Parameters:
output -
Throws:
IOException

readExternal

public void readExternal(ObjectInput input)
                  throws IOException,
                         ClassNotFoundException
Deprecated.  

Reads the non-transient fields of this class from an external source.

Supported API: false

Specified by:
readExternal in interface Externalizable
Parameters:
input -
Throws:
IOException
ClassNotFoundException

readVersion

protected boolean readVersion(StandardAttributeHolder thisObject,
                              ObjectInput input,
                              long readSerialVersionUID,
                              boolean passThrough,
                              boolean superDone)
                       throws IOException,
                              ClassNotFoundException
Deprecated.  

Reads the non-transient fields of this class from an external source.

Supported API: false

Parameters:
thisObject -
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

readOldVersion

private boolean readOldVersion(ObjectInput input,
                               long readSerialVersionUID,
                               boolean passThrough,
                               boolean superDone)
                        throws IOException,
                               ClassNotFoundException
Deprecated. 
Reads the non-transient fields of this class from an external source, which is not the current version.

Parameters:
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

getMap

public com.objectspace.jgl.HashMap getMap()
Deprecated.  

Gets the object for the association that plays role: map.

Supported API: false

Returns:
HashMap

setMap

public void setMap(com.objectspace.jgl.HashMap a_Map)
            throws WTPropertyVetoException
Deprecated.  

Sets the object for the association that plays role: map.

Supported API: false

Parameters:
a_Map -
Throws:
WTPropertyVetoException

mapValidate

private void mapValidate(com.objectspace.jgl.HashMap a_Map)
                  throws WTPropertyVetoException
Deprecated. 
Parameters:
a_Map -
Throws:
WTPropertyVetoException

getValues

public Enumeration getValues(String attr_name)
Deprecated.  

Returns the values associated with a given attribute name.

Supported API: false

Specified by:
getValues in interface AttributeHolder
Parameters:
attr_name -
Returns:
Enumeration

getSingleValue

public Object getSingleValue(String attr_name)
Deprecated.  

Return one value associated with the attribute name. Handy method if one knows that the attribute holds just a single value. Returns null if no value is associated with the attribute.

Supported API: false

Specified by:
getSingleValue in interface AttributeHolder
Parameters:
attr_name -
Returns:
Object

getAttrNames

public Enumeration getAttrNames()
Deprecated.  

Returns all names of the attributes help by the object.

Supported API: false

Specified by:
getAttrNames in interface AttributeHolder
Returns:
Enumeration

addValue

public void addValue(String attr_name,
                     Object value)
Deprecated.  

Add a new value given the attribute name. Similar to the "set" method only that multiple values are allowed.

Supported API: false

Specified by:
addValue in interface AttributeHolder
Parameters:
attr_name -
value -

setValue

public void setValue(String attr_name,
                     Object value)
Deprecated.  

Replace object for all the current values of the attribute.

Supported API: false

Specified by:
setValue in interface AttributeHolder
Parameters:
attr_name -
value -

replaceValue

public void replaceValue(String attr_name,
                         Object value)
Deprecated.  

Replace object for all the current values of the attribute.

Supported API: false

Specified by:
replaceValue in interface AttributeHolder
Parameters:
attr_name -
value -

removeValue

public void removeValue(String attr_name,
                        Object value)
Deprecated.  

Removes a specific value from the attribute. If the value is the last one the attribute is removed as well.

Supported API: false

Specified by:
removeValue in interface AttributeHolder
Parameters:
attr_name -
value -

removeAttribute

public void removeAttribute(String attr_name)
Deprecated.  

Removes an attribute from the object (with all its values).

Supported API: false

Specified by:
removeAttribute in interface AttributeHolder
Parameters:
attr_name -

toString

public String toString()
Deprecated.  

Creates string representation of the attribute holder.

Supported API: false

Specified by:
toString in interface AttributeHolder
Returns:
String

sizeEnumeration

private int sizeEnumeration(Enumeration e)
Deprecated.