oracle.apps.fnd.wf.design
Class AttributeValue

java.lang.Object
  |
  +--oracle.apps.fnd.wf.common.Element
        |
        +--oracle.apps.fnd.wf.common.BaseComponent
              |
              +--oracle.apps.fnd.wf.design.DesignBaseComponent
                    |
                    +--oracle.apps.fnd.wf.design.AttributeValue

public class AttributeValue
extends DesignBaseComponent

AttributeValue is the container for the workflow property's value (attribute value).


Field Summary
static java.lang.String RCS_ID
           
static boolean RCS_ID_RECORDED
           
 
Fields inherited from class oracle.apps.fnd.wf.common.Element
ELEMENT_DB_CREATED, ELEMENT_DB_CREATING, ELEMENT_DB_DIRTY, ELEMENT_DB_LOADED, ELEMENT_DB_LOADING, ELEMENT_DB_NOT_INITIALIZED, ELEMENT_DB_SAVED, ELEMENT_DB_SAVING
 
Constructor Summary
AttributeValue()
          Use this constructor only if the attribute value name is not available.
AttributeValue(java.lang.String id)
          Use this constructor if the attribute value name is available.
AttributeValue(java.lang.String id, java.lang.Object value)
          Use this constructor only for dynamic attributes.
 
Method Summary
 void assign(AttributeValue pComponent)
          Copies all the attribute value object information to this container.
 void assignItemAttrValue(AttributeValue pItemAttrValue)
          Copies the item attribute name and item attribute value to this container.
 java.lang.Object clone()
          Creates a new Attribute value base on the current one.
 Attribute getAttribute()
          Returns the attribute definition for this attribute value it also tries to convert the value object as well.
 BaseComponent getOwner()
          Returns the owner of this attribute value.
 java.lang.String getSourceId()
          Returns the item attribute name when value type is item attribute, otherwise returns null.
 java.lang.Object getValue()
          Returns the value of the attribute.
 java.lang.String getValueType()
          Returns the value type of the attribute.
 void resolveReference()
          Resolves the Attribute definition reference to the actual Attribute if it is not already exist.
 void setValue(java.lang.Object pValue)
          Sets the value of an attribute.
 void setValueType(java.lang.String pValueType)
          Setter function for the value type of the attribute.
 java.lang.String toString()
          Returns the attribute value in String format.
 
Methods inherited from class oracle.apps.fnd.wf.design.DesignBaseComponent
assign, createRuntimeInstance, getAccessController, getAttribute, getAttributes, getDescription, getDisplayName, setDescription, setDisplayName, setName, setResolved
 
Methods inherited from class oracle.apps.fnd.wf.common.BaseComponent
addChild, getChildByTypeAndName, getChildren, getChildrenByName, getChildrenByType, getName, getParent, removeChild, removeChildren
 
Methods inherited from class oracle.apps.fnd.wf.common.Element
create, getDBStatus, getId, load, save, setStore
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RCS_ID

public static final java.lang.String RCS_ID

RCS_ID_RECORDED

public static final boolean RCS_ID_RECORDED
Constructor Detail

AttributeValue

public AttributeValue(java.lang.String id)
Use this constructor if the attribute value name is available.
Parameters:
id - : Attribute value name.

AttributeValue

public AttributeValue()
Use this constructor only if the attribute value name is not available. Once the attribute value name is retrieved, setName() should be used to set the attribute value name.

AttributeValue

public AttributeValue(java.lang.String id,
                      java.lang.Object value)
Use this constructor only for dynamic attributes.
Parameters:
id - : Attribute value name.
value - : Attribute value.
Method Detail

getValueType

public java.lang.String getValueType()
Returns the value type of the attribute.
Returns:
Value type.

setValueType

public void setValueType(java.lang.String pValueType)
Setter function for the value type of the attribute. Value should match one of the pre-defined attribute value type.
Parameters:
pValueType - : Value type.

getValue

public java.lang.Object getValue()
Returns the value of the attribute.
Returns:
Attribute value.

setValue

public void setValue(java.lang.Object pValue)
Sets the value of an attribute. This is cannonical value holder
Parameters:
pValue - : Attribute value.

getSourceId

public java.lang.String getSourceId()
Returns the item attribute name when value type is item attribute, otherwise returns null.
Returns:
Item attribute name (if applicable).

getAttribute

public Attribute getAttribute()
Returns the attribute definition for this attribute value it also tries to convert the value object as well.
Returns:
Attribute definition.

getOwner

public BaseComponent getOwner()
Returns the owner of this attribute value.
Returns:
Owner class.

resolveReference

public void resolveReference()
Resolves the Attribute definition reference to the actual Attribute if it is not already exist.
Overrides:
resolveReference in class DesignBaseComponent

clone

public java.lang.Object clone()
Creates a new Attribute value base on the current one.
Returns:
Attribute value.

assignItemAttrValue

public void assignItemAttrValue(AttributeValue pItemAttrValue)
Copies the item attribute name and item attribute value to this container.
Parameters:
pItemAttrValue - : Attribute value.

toString

public java.lang.String toString()
Returns the attribute value in String format.
Overrides:
toString in class DesignBaseComponent
Returns:
Attribute value.

assign

public void assign(AttributeValue pComponent)
Copies all the attribute value object information to this container.
Parameters:
pComponent - : Attribute value.