public class PropertyValueImpl extends Object implements PropertyValue
PropertyValue
implementation.Constructor and Description |
---|
PropertyValueImpl(Object value,
PropertyEntityDefinition property)
Create a property value associated with its definition
|
Modifier and Type | Method and Description |
---|---|
PropertyEntityDefinition |
getProperty()
Get the property.
|
Object |
getValue()
Get the property value.
|
<T> T |
getValueAs(Class<T> type)
Get the property value converted to the given type.
|
public PropertyValueImpl(Object value, PropertyEntityDefinition property)
value
- the property valueproperty
- the property entity definitionpublic Object getValue()
PropertyValue
getValue
in interface PropertyValue
PropertyValue.getValue()
public <T> T getValueAs(Class<T> type) throws org.springframework.core.convert.ConversionException
PropertyValue
getValueAs
in interface PropertyValue
type
- the type the value should be converted toorg.springframework.core.convert.ConversionException
- if the conversion service is not available or
the conversion fails or is not supportedPropertyValue.getValueAs(Class)
public PropertyEntityDefinition getProperty()
PropertyValue
getProperty
in interface PropertyValue
PropertyValue.getProperty()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a