|
|||||||||
| 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()
|
Map |
getOptions()
DefaultValue will have comma separated list values for the properties of ListDataType This method will create a map with comma separated values of DefaultValue. |
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 DataTypeInPlaceEditableValuegetDataType in interface DataTypeValue
public DataTypeValueSummarizer.ValueSummary getValueSummary()
throws DataTypeException
DataTypeException
public DataTypeValueSummarizer.InPlaceValueMediator getInPlaceValueMediator()
throws DataTypeException
DataTypeExceptionpublic String getDataTypeName()
public String getDescription()
getDescription in interface PropertyInstance
public Object getDefaultValue()
throws ManagementException
getDefaultValue in interface PropertyInstanceManagementException
public Map getOptions()
throws DataTypeException,
ManagementException
DataTypeException
ManagementExceptionpublic boolean isSystem()
isSystem in interface PropertyInstancepublic String getName()
getName in interface PropertyInstance
public String getShortDisplayValue()
throws DataTypeException,
ManagementException
DataTypeException
ManagementException
public String getEditorValueAsString()
throws DataTypeException
getEditorValueAsString in interface DataTypeInPlaceEditableValueDataTypeException
public Object getValue()
throws DataTypeException
DataTypeValue
getValue in interface DataTypeValueDataTypeExceptionDataTypeValue.isValueSet()public boolean getIsValueSet()
public boolean isValueSet()
DataTypeValue
isValueSet in interface DataTypeValue
public void setEditorValueAsString(String value)
throws DataTypeException
setEditorValueAsString in interface DataTypeInPlaceEditableValueDataTypeException
public void setValue(Object value)
throws DataTypeException
DataTypeValue
setValue in interface DataTypeValuevalue - 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 DataTypeValueDataTypeExceptionDataTypeValue.isValueSet()
public void setValueAsString(String value)
throws DataTypeException
DataTypeValue
setValueAsString in interface DataTypeValuevalue - Value in the default value String form required by the
data type associated with this DataTypeValue instance.
DataTypeExceptionpublic void unsetValue()
DataTypeValue
unsetValue in interface DataTypeValue
public void validate()
throws DataTypeException
validate in interface DataTypeValueDataTypeException
public DataTypeSerializedValue getSerializedValue()
throws DataTypeException
getSerializedValue in interface DataTypeValueDataTypeException
public void setSerializedValue(DataTypeSerializedValue serVal)
throws DataTypeException
setSerializedValue in interface DataTypeValueDataTypeExceptionpublic void setDoOverrideValue(boolean doDefaultOverride)
public void setOverrideValue(Object defaultOverrideValue)
public void setOverrideValueAsString(String defaultOverrideValue)
throws DataTypeException
DataTypeExceptionpublic void setDescriptionOverride(String descriptionOverride)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||