|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bea.wli.worklist.portal.PropertyInstanceHolder
public class PropertyInstanceHolder
Utility class to assist in the editing of task properties. This class holds a PropertyInstance from a task, and decorates it with a summary value and other helper classes. These helpers allow the property to be edited in-place, and ease the interaction with standard property editors like the text and JavaBean/XMLBean property editors.
Field Summary |
---|
Fields inherited from interface com.bea.wli.datatype.DataTypeValue |
---|
VALUE_PROPERTY_NAME |
Fields inherited from interface com.bea.wli.datatype.DataTypeInPlaceEditableValue |
---|
VALUE_PROPERTY_NAME |
Constructor Summary | |
---|---|
PropertyInstanceHolder(PropertyInstance prop)
|
Method Summary | |
---|---|
DataType |
getDataType()
Get the data type that defines the values this data type value can hold. |
String |
getDataTypeName()
|
Object |
getDefaultValue()
|
String |
getDescription()
|
String |
getEditorValueAsString()
|
DataTypeValueSummarizer.InPlaceValueMediator |
getInPlaceValueMediator()
|
boolean |
getIsValueSet()
|
String |
getName()
|
PropertyInstance |
getPropertyInstance()
|
DataTypeSerializedValue |
getSerializedValue()
|
String |
getShortDisplayValue()
|
Object |
getValue()
Get the object value set for this data type value, or null if none has been set. |
String |
getValueAsString()
Get the value for this data type as a String, or null if none has been set. |
DataTypeValueSummarizer.ValueSummary |
getValueSummary()
|
boolean |
isSystem()
|
boolean |
isValueSet()
Returns true if getValue() or getSerializedValue() return non-null. |
void |
setDescriptionOverride(String descriptionOverride)
|
void |
setDoOverrideValue(boolean doDefaultOverride)
|
void |
setEditorValueAsString(String value)
|
void |
setOverrideValue(Object defaultOverrideValue)
|
void |
setOverrideValueAsString(String defaultOverrideValue)
|
void |
setSerializedValue(DataTypeSerializedValue serVal)
|
void |
setValue(Object value)
Set the value of this data type value. |
void |
setValueAsString(String value)
Set the value for this data type value as a String. |
void |
unsetValue()
Clear any value set into this property instance. |
void |
validate()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertyInstanceHolder(PropertyInstance prop)
Method Detail |
---|
public PropertyInstance getPropertyInstance()
public DataType getDataType()
DataTypeValue
getDataType
in interface DataTypeInPlaceEditableValue
getDataType
in interface DataTypeValue
public DataTypeValueSummarizer.ValueSummary getValueSummary() throws DataTypeException
DataTypeException
public DataTypeValueSummarizer.InPlaceValueMediator getInPlaceValueMediator() throws DataTypeException
DataTypeException
public String getDataTypeName()
public String getDescription()
getDescription
in interface PropertyInstance
public Object getDefaultValue() throws ManagementException
getDefaultValue
in interface PropertyInstance
ManagementException
public boolean isSystem()
isSystem
in interface PropertyInstance
public String getName()
getName
in interface PropertyInstance
public String getShortDisplayValue() throws DataTypeException, ManagementException
DataTypeException
ManagementException
public String getEditorValueAsString() throws DataTypeException
getEditorValueAsString
in interface DataTypeInPlaceEditableValue
DataTypeException
public Object getValue() throws DataTypeException
DataTypeValue
getValue
in interface DataTypeValue
DataTypeException
DataTypeValue.isValueSet()
public boolean getIsValueSet()
public boolean isValueSet()
DataTypeValue
isValueSet
in interface DataTypeValue
public void setEditorValueAsString(String value) throws DataTypeException
setEditorValueAsString
in interface DataTypeInPlaceEditableValue
DataTypeException
public void setValue(Object value) throws DataTypeException
DataTypeValue
setValue
in interface DataTypeValue
value
- Object value for this data type value. If value is null,
this call has the same effect as calling unsetValue().
DataTypeException
- If the provided object value is of the wrong
type for the data type value.public String getValueAsString() throws DataTypeException
DataTypeValue
getValueAsString
in interface DataTypeValue
DataTypeException
DataTypeValue.isValueSet()
public void setValueAsString(String value) throws DataTypeException
DataTypeValue
setValueAsString
in interface DataTypeValue
value
- Value in the default value String form required by the
data type associated with this DataTypeValue instance.
DataTypeException
public void unsetValue()
DataTypeValue
unsetValue
in interface DataTypeValue
public void validate() throws DataTypeException
validate
in interface DataTypeValue
DataTypeException
public DataTypeSerializedValue getSerializedValue() throws DataTypeException
getSerializedValue
in interface DataTypeValue
DataTypeException
public void setSerializedValue(DataTypeSerializedValue serVal) throws DataTypeException
setSerializedValue
in interface DataTypeValue
DataTypeException
public void setDoOverrideValue(boolean doDefaultOverride)
public void setOverrideValue(Object defaultOverrideValue)
public void setOverrideValueAsString(String defaultOverrideValue) throws DataTypeException
DataTypeException
public void setDescriptionOverride(String descriptionOverride)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |