Transducer<V>
public class InlineBinaryTransducer<V> extends FilterTransducer<V>
core
Constructor | Description |
---|---|
InlineBinaryTransducer(Transducer<V> core) |
Modifier and Type | Method | Description |
---|---|---|
java.lang.CharSequence |
print(V o) |
Converts the given value to its lexical representation.
|
void |
writeLeafElement(XMLSerializer w,
Name tagName,
V o,
java.lang.String fieldName) |
Sends the result of the
Transducer.print(Object) operation
to one of the XMLSerializer.leafElement(Name, String, String) method. |
void |
writeText(XMLSerializer w,
V o,
java.lang.String fieldName) |
Sends the result of the
Transducer.print(Object) operation
to one of the XMLSerializer.text(String, String) method,
but with the best representation of the value, not necessarily String. |
declareNamespace, getTypeName, parse, useNamespace
public InlineBinaryTransducer(Transducer<V> core)
@NotNull public java.lang.CharSequence print(@NotNull V o) throws AccessorException
Transducer
print
in interface Transducer<V>
print
in class FilterTransducer<V>
o
- never be null.AccessorException
public void writeText(XMLSerializer w, V o, java.lang.String fieldName) throws java.io.IOException, org.xml.sax.SAXException, javax.xml.stream.XMLStreamException, AccessorException
Transducer
Transducer.print(Object)
operation
to one of the XMLSerializer.text(String, String)
method,
but with the best representation of the value, not necessarily String.writeText
in interface Transducer<V>
writeText
in class FilterTransducer<V>
java.io.IOException
org.xml.sax.SAXException
javax.xml.stream.XMLStreamException
AccessorException
public void writeLeafElement(XMLSerializer w, Name tagName, V o, java.lang.String fieldName) throws java.io.IOException, org.xml.sax.SAXException, javax.xml.stream.XMLStreamException, AccessorException
Transducer
Transducer.print(Object)
operation
to one of the XMLSerializer.leafElement(Name, String, String)
method.
but with the best representation of the value, not necessarily String.writeLeafElement
in interface Transducer<V>
writeLeafElement
in class FilterTransducer<V>
java.io.IOException
org.xml.sax.SAXException
javax.xml.stream.XMLStreamException
AccessorException
Copyright © 2018 Oracle Corporation. All rights reserved.