gov.sns.tools.transforms
Interface DataTransform
- All Known Subinterfaces:
- DoubleArrayTransform, DoubleTransform
- All Known Implementing Classes:
- DoubleArrayTransformAdaptor, DoubleTransformAdaptor
- public interface DataTransform
Provides a mapping from a primitive transform to a ValueTransform.
While ValueTransform provides the recognized means for transforming between
raw and physical values it requires a transformation of ArrayValue which is
a general wrapper for value types including primitives and arrays of primitives.
Often this is invconvenient to code. It is often much more convenient to code
with a particular primitive value type (e.g. double) and hence implement
a more specific transform (e.g. DoubleTransform). DataTransform facilitates
the conversion from the specific transform to the more general ValueTransform.
DataTransform is referenced only in its subclasses.
- See Also:
DataTransformFactory
noOperationTransform
public static final DataTransform noOperationTransform
- No Operation Transform suitable as a default transform
valueTransform
public ValueTransform valueTransform()
- Construct and return a general ValueTransform from the DataTransform.
- Returns:
- An equivalent value transform for converting ArrayValue stores.