|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||
@Target(value={METHOD,FIELD})
@Retention(value=RUNTIME)
public @interface XmlWriteTransformerAnnotation for org.eclipse.persistence.mappings.oxm.XMLTransformationMapping. WriteTransformer defines transformation of the attribute value to a single XML value (XPath is specified in the WriteTransformer). A single XmlWriteTransformer may be specified directly on the method or attribute. Multiple XmlWriteTransformers should be wrapped into XmlWriteTransformers annotation. No XmlWriteTransformers specified for read-only mapping. Unless the XMLTransformationMapping is write-only, it should have a ReadTransformer, it defines transformation of XML value(s) into attribute value.
XmlReadTransformer,
XmlTransformation,
XmlWriteTransformers| Required Element Summary | |
|---|---|
java.lang.String |
xmlPath
Specify here the XPath into which the value should be written. |
| Optional Element Summary | |
|---|---|
java.lang.String |
method
The mapped class must have a method with this name which returns a value to be written into the XML document. |
java.lang.Class<? extends FieldTransformer> |
transformerClass
User-defined class that must implement the org.eclipse.persistence.mappings.transformers.FieldTransformer interface. |
| Element Detail |
|---|
public abstract java.lang.String xmlPath
public abstract java.lang.Class<? extends FieldTransformer> transformerClass
public abstract java.lang.String method
|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||