|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataTypeValue
Represents a value of some data type that can be edited as a field in UI editor using a String representation.
Field Summary | |
---|---|
static String |
VALUE_PROPERTY_NAME
|
Method Summary | |
---|---|
DataType |
getDataType()
Get the data type that defines the values this data type value can hold. |
DataTypeSerializedValue |
getSerializedValue()
|
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. |
boolean |
isValueSet()
Returns true if getValue() or getSerializedValue() return non-null. |
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()
|
Field Detail |
---|
static final String VALUE_PROPERTY_NAME
Method Detail |
---|
DataType getDataType()
Object getValue() throws DataTypeException
DataTypeException
isValueSet()
void setValue(Object value) throws DataTypeException
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.String getValueAsString() throws DataTypeException
DataTypeException
isValueSet()
void setValueAsString(String value) throws DataTypeException
value
- Value in the default value String form required by the
data type associated with this DataTypeValue instance.
DataTypeException
DataTypeSerializedValue getSerializedValue() throws DataTypeException
DataTypeException
void setSerializedValue(DataTypeSerializedValue serVal) throws DataTypeException
DataTypeException
boolean isValueSet()
void unsetValue()
void validate() throws DataTypeException
DataTypeException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |