|
Oracle® Fusion Middleware Java API Reference for EclipseLink 11g Release 1 (11.1.1) E26376-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||
@Target(value={METHOD,FIELD})
@Retention(value=RUNTIME)
public @interface XmlWriteTransformer
Annotation 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 |
xmlPathSpecify here the XPath into which the value should be written. |
| Optional Element Summary | |
|---|---|
java.lang.String |
methodThe 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> |
transformerClassUser-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
|
Oracle® Fusion Middleware Java API Reference for EclipseLink 11g Release 1 (11.1.1) E26376-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||