Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.align.transformation.function.impl
Class PropertyValueImpl

java.lang.Object
  extended by eu.esdihumboldt.hale.common.align.transformation.function.impl.PropertyValueImpl
All Implemented Interfaces:
PropertyValue

public class PropertyValueImpl
extends Object
implements PropertyValue

Default PropertyValue implementation.

Author:
Simon Templer

Constructor Summary
PropertyValueImpl(Object value, PropertyEntityDefinition property)
          Create a property value associated with its definition
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyValueImpl

public PropertyValueImpl(Object value,
                         PropertyEntityDefinition property)
Create a property value associated with its definition

Parameters:
value - the property value
property - the property entity definition
Method Detail

getValue

public Object getValue()
Description copied from interface: PropertyValue
Get the property value.

Specified by:
getValue in interface PropertyValue
Returns:
the property value
See Also:
PropertyValue.getValue()

getValueAs

public <T> T getValueAs(Class<T> type)
             throws org.springframework.core.convert.ConversionException
Description copied from interface: PropertyValue
Get the property value converted to the given type.

Specified by:
getValueAs in interface PropertyValue
Parameters:
type - the type the value should be converted to
Returns:
the converted property value
Throws:
org.springframework.core.convert.ConversionException - if the conversion service is not available or the conversion fails or is not supported
See Also:
PropertyValue.getValueAs(Class)

getProperty

public PropertyEntityDefinition getProperty()
Description copied from interface: PropertyValue
Get the property.

Specified by:
getProperty in interface PropertyValue
Returns:
the property entity definition
See Also:
PropertyValue.getProperty()

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d