ValueInterpreter

Inheritance: java.lang.Object

public abstract class ValueInterpreter

Defines operations required to interpret metadata property values.

Constructors

Constructor Description
ValueInterpreter()

Methods

Method Description
getInterpretedValueType() Gets the type of the interpreted value.
toInterpretedValue(PropertyValue originalValue) Interprets the provided property value.
toSourceValue(PropertyValue interpretedValue) Converts an interpreted value back to its original form.

ValueInterpreter()

public ValueInterpreter()

getInterpretedValueType()

public abstract MetadataPropertyType getInterpretedValueType()

Gets the type of the interpreted value.

Returns: MetadataPropertyType - The type of the interpreted value.

toInterpretedValue(PropertyValue originalValue)

public final PropertyValue toInterpretedValue(PropertyValue originalValue)

Interprets the provided property value.

Parameters:

Parameter Type Description
originalValue PropertyValue The value to interpret.

Returns: PropertyValue - The interpreted value.

toSourceValue(PropertyValue interpretedValue)

public final PropertyValue toSourceValue(PropertyValue interpretedValue)

Converts an interpreted value back to its original form.

Parameters:

Parameter Type Description
interpretedValue PropertyValue The interpreted value to convert.

Returns: PropertyValue - The original value.