com.ds.fw.types
Class FwAssociation

java.lang.Object
  |
  +--com.ds.fw.types.FwSimpleObject
        |
        +--com.ds.fw.types.FwAssociation
All Implemented Interfaces:
java.lang.Cloneable, FwAssociationIF, FwCopyableIF, FwDisplayableIF, FwSimpleObjectIF, java.io.Serializable

public class FwAssociation
extends FwSimpleObject
implements FwAssociationIF

See Also:
Serialized Form

Field Summary
 java.lang.Object _key
           
 java.lang.Object _value
           
 
Constructor Summary
FwAssociation()
           
FwAssociation(java.lang.Object k, java.lang.Object v)
           
 
Method Summary
 boolean equals(java.lang.Object o)
          Compares this FwAssociation to the specified object.
 java.lang.Object getKey()
          Gets the key
 java.lang.Object getValue()
          Gets the value of this FwAssociation object
 boolean hasKey(java.lang.Object o)
          Verify if a FwAssociation object has a given key
 boolean hasValue(java.lang.Object o)
          Verify if this FwAssociation object has value , equals to the given as parameter object
 void postCopy()
          This should never be called directly from a client.
 void setKey(java.lang.Object o)
          Sets the key
 void setValue(java.lang.Object o)
          Sets the value of this FwAssociation object
 java.lang.String toStringValue()
          Returns the string representation of this FwAssociation .
 
Methods inherited from class com.ds.fw.types.FwSimpleObject
getClassName, getClone, getCopy, getCopy, getDeepCopy, getDisplayString, getDisplayStringFor, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ds.fw.types.FwSimpleObjectIF
getClassName, getClone, getCopy, getCopy, getDeepCopy, getDisplayString, getDisplayStringFor, toString
 

Field Detail

_key

public java.lang.Object _key

_value

public java.lang.Object _value
Constructor Detail

FwAssociation

public FwAssociation()

FwAssociation

public FwAssociation(java.lang.Object k,
                     java.lang.Object v)
Method Detail

getKey

public java.lang.Object getKey()
Gets the key

Specified by:
getKey in interface FwAssociationIF
Returns:
the key

setKey

public void setKey(java.lang.Object o)
Sets the key

Specified by:
setKey in interface FwAssociationIF
Parameters:
o - the new value of the key

hasKey

public boolean hasKey(java.lang.Object o)
Verify if a FwAssociation object has a given key

Specified by:
hasKey in interface FwAssociationIF
Parameters:
o - - the key (as Object) we check for
Returns:
true if this FwAssociation object has key equals to the given as parameter

getValue

public java.lang.Object getValue()
Gets the value of this FwAssociation object

Specified by:
getValue in interface FwAssociationIF
Returns:
the value of this FwAssociation object

setValue

public void setValue(java.lang.Object o)
Sets the value of this FwAssociation object

Specified by:
setValue in interface FwAssociationIF
Parameters:
o - the new value

hasValue

public boolean hasValue(java.lang.Object o)
Verify if this FwAssociation object has value , equals to the given as parameter object

Specified by:
hasValue in interface FwAssociationIF
Parameters:
o - - the value for which we check
Returns:
true if the value of the FwAssociation object is equals to the value given as parameter or they are both null

equals

public boolean equals(java.lang.Object o)
Compares this FwAssociation to the specified object.

Overrides:
equals in class java.lang.Object
Parameters:
o - - the object to compare this FwAssociation against
Returns:
true if they are equals

toStringValue

public java.lang.String toStringValue()
Returns the string representation of this FwAssociation . The format is "key->value"

Specified by:
toStringValue in interface FwSimpleObjectIF
Overrides:
toStringValue in class FwSimpleObject
Returns:
the string representation of this FwAssociation

postCopy

public void postCopy()
Description copied from interface: FwCopyableIF
This should never be called directly from a client. This method is used to make a clone independent from its original. Subclasses that override this method should always call super.postCopy().

Specified by:
postCopy in interface FwSimpleObjectIF
Overrides:
postCopy in class FwSimpleObject