org.eclipse.persistence.oxm.annotations.XmlReadTransformer , org.eclipse.persistence.oxm.annotations.XmlTransformation , org.eclipse.persistence.oxm.annotations.XmlWriteTransformers
| Modifier and Type | Method and Description |
|---|---|
| public String | method()
The mapped class must have a method with this name which returns a value to be written into the XML document. |
| public Class | transformerClass()
User-defined class that must implement the org.eclipse.persistence.mappings.transformers.FieldTransformer interface. |
| public String |
| method | back to summary |
|---|---|
| public String method() The mapped class must have a method with this name which returns a value to be written into the XML document. The method may require an XmlTransient annotation to avoid being mapped as an XmlElement by default. Either transformerClass or method must be specified, but not both. | |
| transformerClass | back to summary |
|---|---|
| public Class User-defined class that must implement the org.eclipse.persistence.mappings.transformers.FieldTransformer interface. The class will be instantiated, its buildFieldValue will be used to create the value to be written into XML document. Either transformerClass or method must be specified, but not both. | |
| xmlPath | back to summary |
|---|---|
| public String xmlPath() Specify here the XPath into which the value should be written. The only case when this could be skipped is if a single WriteTransformer annotates an attribute - the attribute's name will be used as an element name. | |