EclipseLink 2.3.2, build 'v20111125-r10461' API Reference

org.eclipse.persistence.oxm.annotations
Annotation Type XmlReadTransformer


@Target(value={METHOD,FIELD})
@Retention(value=RUNTIME)
public @interface XmlReadTransformer


Optional Element Summary
 java.lang.String method
          The mapped class must have a method with this name which returns a value to be assigned to the attribute (not assigns the value to the attribute).
 java.lang.Class<? extends AttributeTransformer> transformerClass
          User-defined class that must implement the org.eclipse.persistence.mappings.transformers.AttributeTransformer interface.
 

transformerClass

public abstract java.lang.Class<? extends AttributeTransformer> transformerClass
User-defined class that must implement the org.eclipse.persistence.mappings.transformers.AttributeTransformer interface. The class will be instantiated, its buildAttributeValue will be used to create the value to be assigned to the attribute. Either transformerClass or method must be specified, but not both.

Default:
org.eclipse.persistence.mappings.transformers.AttributeTransformer.class

method

public abstract java.lang.String method
The mapped class must have a method with this name which returns a value to be assigned to the attribute (not assigns the value to the attribute). Either transformerClass or method must be specified, but not both.

Default:
""

EclipseLink 2.3.2, build 'v20111125-r10461' API Reference