com.ibm.di.entry
Class AttributeValue

java.lang.Object
  extended by com.ibm.di.entry.AttributeValue
All Implemented Interfaces:
Serializable

public class AttributeValue
extends Object
implements Serializable

The AttributeValue class is used in conjunction with the Attribute object to store information about an attribute value. The class has a value and an operation properties associated with the value.

See Also:
Serialized Form

Field Summary
static int AV_ADD
          Used when a value has been added
static int AV_DELETE
          Used when a value has been deleted
static int AV_UNCHANGED
          Used when a value is not changed
static int AV_UNDEFINED
          Used when a value does not have a defined operation code
 
Constructor Summary
AttributeValue(Object value, int oper)
           
 
Method Summary
 int getOper()
           
 String getOperation()
          Return the operation code.
 Object getValue()
           
 void setOper(int oper)
           
 void setOperation(String oper)
           
 void setValue(Object value)
           
static int stringToOper(String oper)
           
 String toDeltaString()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

AV_UNDEFINED

public static final int AV_UNDEFINED
Used when a value does not have a defined operation code

See Also:
Constant Field Values

AV_UNCHANGED

public static final int AV_UNCHANGED
Used when a value is not changed

See Also:
Constant Field Values

AV_ADD

public static final int AV_ADD
Used when a value has been added

See Also:
Constant Field Values

AV_DELETE

public static final int AV_DELETE
Used when a value has been deleted

See Also:
Constant Field Values
Constructor Detail

AttributeValue

public AttributeValue(Object value,
                      int oper)
Method Detail

getValue

public Object getValue()

setValue

public void setValue(Object value)

getOper

public int getOper()

getOperation

public String getOperation()
Return the operation code. This only has meaning if this value is inside an Entry generated by an Iterator with Delta enabled.

Returns:
- The operation code. Possible return values are :
"unchanged" - Used when a value is not changed
"add" - Used when a value has been added
"delete" - Used when a value has been deleted
"" - Used when a value does not have a defined operation code

setOper

public void setOper(int oper)

setOperation

public void setOperation(String oper)

stringToOper

public static int stringToOper(String oper)

toString

public String toString()
Overrides:
toString in class Object

toDeltaString

public String toDeltaString()