Interface CoreFieldTransformer<SESSION extends CoreSession>

All Superinterfaces:
Serializable
All Known Subinterfaces:
FieldTransformer
All Known Implementing Classes:
ConstantTransformer, FieldTransformerAdapter, MethodBasedFieldTransformer, NamespaceURITransformer, QNameTransformer

public interface CoreFieldTransformer<SESSION extends CoreSession> extends Serializable
This interface is used by the Transformation Mapping to build the value for a specific field. The user must provide implementations of this interface to the Transformation Mapping.
  • Field Details

    • BUILD_FIELD_VALUE_METHOD

      static final String BUILD_FIELD_VALUE_METHOD
      Method name should be same as the value of this field. This field is used to find method name in reflection call.
      See Also:
  • Method Details

    • buildFieldValue

      Object buildFieldValue(Object instance, String fieldName, SESSION session)
      Parameters:
      instance - - an instance of the domain class which contains the attribute
      session - - the current session
      fieldName - - the name of the field being transformed. Used if the user wants to use this transformer for multiple fields.
      Returns:
      - The value to be written for the field associated with this transformer