|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.bind.v2.runtime.reflect.TransducedAccessor<T>
com.sun.xml.bind.v2.runtime.reflect.DefaultTransducedAccessor<T>
public abstract class DefaultTransducedAccessor<T>
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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor |
|---|
TransducedAccessor.CompositeTransducedAccessorImpl<BeanT,ValueT> |
| Constructor Summary | |
|---|---|
DefaultTransducedAccessor()
|
|
| Method Summary | |
|---|---|
abstract java.lang.String |
print(T o)
Prints the responsible field of the given bean to the writer. |
void |
writeLeafElement(XMLSerializer w,
Name tagName,
T o,
java.lang.String fieldName)
Convenience method to write the value as a text inside an element without any attributes. |
void |
writeText(XMLSerializer w,
T o,
java.lang.String fieldName)
Invokes one of the XMLSerializer.text(String, String) method
with the representation of data bested suited for this transduced accessor. |
| Methods inherited from class com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor |
|---|
declareNamespace, get, hasValue, parse, useNamespace |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultTransducedAccessor()
| Method Detail |
|---|
public abstract java.lang.String print(T o)
throws AccessorException,
org.xml.sax.SAXException
TransducedAccessor
Use XMLSerializer.getInstance() to access to the namespace bindings
print in class TransducedAccessor<T>AccessorException
org.xml.sax.SAXException
public void writeLeafElement(XMLSerializer w,
Name tagName,
T o,
java.lang.String fieldName)
throws org.xml.sax.SAXException,
AccessorException,
java.io.IOException,
javax.xml.stream.XMLStreamException
TransducedAccessorThe callee assumes that there's an associated value in the field. No @xsi:type handling is expected.
writeLeafElement in class TransducedAccessor<T>org.xml.sax.SAXException
AccessorException
java.io.IOException
javax.xml.stream.XMLStreamException
public void writeText(XMLSerializer w,
T o,
java.lang.String fieldName)
throws AccessorException,
org.xml.sax.SAXException,
java.io.IOException,
javax.xml.stream.XMLStreamException
TransducedAccessorXMLSerializer.text(String, String) method
with the representation of data bested suited for this transduced accessor.
writeText in class TransducedAccessor<T>AccessorException
org.xml.sax.SAXException
java.io.IOException
javax.xml.stream.XMLStreamException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||