com.sun.xml.bind.v2.runtime.reflect
Class TransducedAccessor.CompositeContextDependentTransducedAccessorImpl<BeanT,ValueT>
java.lang.Object
com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor<BeanT>
com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor.CompositeTransducedAccessorImpl<BeanT,ValueT>
com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor.CompositeContextDependentTransducedAccessorImpl<BeanT,ValueT>
- Enclosing class:
- TransducedAccessor<BeanT>
static class TransducedAccessor.CompositeContextDependentTransducedAccessorImpl<BeanT,ValueT>
- extends TransducedAccessor.CompositeTransducedAccessorImpl<BeanT,ValueT>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransducedAccessor.CompositeContextDependentTransducedAccessorImpl
public TransducedAccessor.CompositeContextDependentTransducedAccessorImpl(Transducer<ValueT> xducer,
Accessor<BeanT,ValueT> acc)
useNamespace
public boolean useNamespace()
- Overrides:
useNamespace
in class TransducedAccessor<BeanT>
- See Also:
Transducer.useNamespace()
declareNamespace
public void declareNamespace(BeanT bean,
XMLSerializer w)
throws AccessorException
- Description copied from class:
TransducedAccessor
- Obtain the value of the field and declares the namespace URIs used in
the value.
- Overrides:
declareNamespace
in class TransducedAccessor<BeanT>
- Throws:
AccessorException
- See Also:
Transducer.declareNamespace(Object, XMLSerializer)
writeLeafElement
public void writeLeafElement(XMLSerializer w,
Name tagName,
BeanT o,
java.lang.String fieldName)
throws org.xml.sax.SAXException,
AccessorException,
java.io.IOException,
javax.xml.stream.XMLStreamException
- Description copied from class:
TransducedAccessor
- Convenience method to write the value as a text inside an element
without any attributes.
Can be overridden for improved performance.
- Overrides:
writeLeafElement
in class TransducedAccessor.CompositeTransducedAccessorImpl<BeanT,ValueT>
- Throws:
org.xml.sax.SAXException
AccessorException
java.io.IOException
javax.xml.stream.XMLStreamException