TransducedAccessor that prints to String.
The print method that works for String determines the dispatching
of the writeText(XMLSerializer, Object, String) and
writeLeafElement(XMLSerializer, Name, Object, String) methods,
so those are implemented here.
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public abstract String | print(T o)
Implements abstract org. Prints the responsible field of the given bean to the writer. |
| public void | writeLeafElement(XMLSerializer w, Name tagName, T o, String fieldName)
Implements abstract org. Convenience method to write the value as a text inside an element without any attributes. |
| public void | writeText(XMLSerializer w, T o, String fieldName)
Implements abstract org. Invokes one of the |
| DefaultTransducedAccessor | back to summary |
|---|---|
| protected DefaultTransducedAccessor() Default constructor. | |
| back to summary | |
|---|---|
| public abstract String print(T o) throws AccessorException, SAXException Implements abstract org. Doc from org. Prints the responsible field of the given bean to the writer.
Use
| |
| writeLeafElement | back to summary |
|---|---|
| public void writeLeafElement(XMLSerializer w, Name tagName, T o, String fieldName) throws SAXException, AccessorException, IOException, XMLStreamException Implements abstract org. Doc from org. Convenience method to write the value as a text inside an element without any attributes. Can be overridden for improved performance. The callee assumes that there's an associated value in the field. No @xsi:type handling is expected.
| |
| writeText | back to summary |
|---|---|
| public void writeText(XMLSerializer w, T o, String fieldName) throws AccessorException, SAXException, IOException, XMLStreamException Implements abstract org. Doc from org. Invokes one of the
| |