Top Description Constructors Methods
org.glassfish.jaxb.runtime.v2.runtime.reflect

public abstract Class DefaultTransducedAccessor<T>

extends TransducedAccessor<T>
Class Inheritance
Known Direct Subclasses
org.glassfish.jaxb.runtime.v2.runtime.reflect.ListTransducedAccessorImpl, org.glassfish.jaxb.runtime.v2.runtime.reflect.TransducedAccessor.IDREFTransducedAccessorImpl, org.glassfish.jaxb.runtime.v2.runtime.reflect.opt.TransducedAccessor_field_Boolean, org.glassfish.jaxb.runtime.v2.runtime.reflect.opt.TransducedAccessor_field_Byte, org.glassfish.jaxb.runtime.v2.runtime.reflect.opt.TransducedAccessor_field_Double, org.glassfish.jaxb.runtime.v2.runtime.reflect.opt.TransducedAccessor_field_Float, org.glassfish.jaxb.runtime.v2.runtime.reflect.opt.TransducedAccessor_field_Integer, org.glassfish.jaxb.runtime.v2.runtime.reflect.opt.TransducedAccessor_field_Long, org.glassfish.jaxb.runtime.v2.runtime.reflect.opt.TransducedAccessor_field_Short, org.glassfish.jaxb.runtime.v2.runtime.reflect.opt.TransducedAccessor_method_Boolean, org.glassfish.jaxb.runtime.v2.runtime.reflect.opt.TransducedAccessor_method_Byte, org.glassfish.jaxb.runtime.v2.runtime.reflect.opt.TransducedAccessor_method_Double, org.glassfish.jaxb.runtime.v2.runtime.reflect.opt.TransducedAccessor_method_Float, org.glassfish.jaxb.runtime.v2.runtime.reflect.opt.TransducedAccessor_method_Integer, org.glassfish.jaxb.runtime.v2.runtime.reflect.opt.TransducedAccessor_method_Long, org.glassfish.jaxb.runtime.v2.runtime.reflect.opt.TransducedAccessor_method_Short
Imports
org.glassfish.jaxb.runtime.api.AccessorException, org.glassfish.jaxb.runtime.v2.runtime.Name, .XMLSerializer, org.xml.sax.SAXException, javax.xml.stream.XMLStreamException, java.io.IOException

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.

Author
Kohsuke Kawaguchi

Constructor Summary

AccessConstructor and Description
protected
DefaultTransducedAccessor()

Default constructor.

Method Summary

Modifier and TypeMethod and Description
public void
writeLeafElement(XMLSerializer w, Name tagName, T o, String fieldName)

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.reflect.TransducedAccessor.writeLeafElement.

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.glassfish.jaxb.runtime.v2.runtime.reflect.TransducedAccessor.writeText.

Invokes one of the XMLSerializer#text(String, String) method with the representation of data bested suited for this transduced accessor.

Inherited from org.glassfish.jaxb.runtime.v2.runtime.reflect.TransducedAccessor:
declareNamespacegethasValueparseuseNamespace

Constructor Detail

DefaultTransducedAccessorback to summary
protected DefaultTransducedAccessor()

Default constructor.

Method Detail

writeLeafElementback to summary
public void writeLeafElement(XMLSerializer w, Name tagName, T o, String fieldName) throws SAXException, AccessorException, IOException, XMLStreamException

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.reflect.TransducedAccessor.writeLeafElement.

Doc from org.glassfish.jaxb.runtime.v2.runtime.reflect.TransducedAccessor.writeLeafElement.

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.

Annotations
@Override
writeTextback to summary
public void writeText(XMLSerializer w, T o, String fieldName) throws AccessorException, SAXException, IOException, XMLStreamException

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.reflect.TransducedAccessor.writeText.

Doc from org.glassfish.jaxb.runtime.v2.runtime.reflect.TransducedAccessor.writeText.

Invokes one of the XMLSerializer#text(String, String) method with the representation of data bested suited for this transduced accessor.

Annotations
@Override