Class QNameTransformer

All Implemented Interfaces:
Serializable, CoreFieldTransformer<Session>, AttributeTransformer, FieldTransformer

public class QNameTransformer extends Object implements AttributeTransformer, FieldTransformer
See Also:
  • Field Details

  • Constructor Details

    • QNameTransformer

      public QNameTransformer(String xPath)
  • Method Details

    • initialize

      public void initialize(AbstractTransformationMapping mapping)
      Description copied from interface: FieldTransformer
      Initialize this transformer. Only required if the user needs some special information from the mapping in order to do the transformation
      Specified by:
      initialize in interface AttributeTransformer
      Specified by:
      initialize in interface FieldTransformer
      mapping - - The mapping associated with this transformer. Only used if some special information is required.
    • buildAttributeValue

      public Object buildAttributeValue(Record record, Object object, Session session)
      Specified by:
      buildAttributeValue in interface AttributeTransformer
      record - - The metadata being used to build the object.
      object - - The current object that the attribute is being built for.
      session - - the current session
      - The attribute value to be built into the object containing this mapping.
    • buildFieldValue

      public Object buildFieldValue(Object instance, String fieldName, Session session)
      Specified by:
      buildFieldValue in interface CoreFieldTransformer<Session>
      Specified by:
      buildFieldValue in interface FieldTransformer
      instance - - an instance of the domain class which contains the attribute
      fieldName - - the name of the field being transformed. Used if the user wants to use this transformer for multiple fields.
      session - - the current session
      - The value to be written for the field associated with this transformer