An implementation of this interface hides how this conversion happens.
Transducers are immutable.
| Modifier and Type | Method and Description |
|---|---|
| public void | declareNamespace(ValueT
never be null. o, XMLSerializer may be null if w)!{@link #useNamespace()}.Declares the namespace URIs used in the given value to |
| public QName | Returns: return non-null from this method allows transducers to specify the type it wants to marshal to. Most of the time this method returns null, in which case the implicitly associated type will be used.Transducers implicitly work against a single XML type,
but sometimes (most notably |
| public ValueT | |
| public CharSequence | Returns: always non-null valid lexical representation.never be null. o)Converts the given value to its lexical representation. |
| public boolean | useNamespace()
If true, this doesn't declare any namespace,
and therefore |
| public void | writeLeafElement(XMLSerializer w, Name tagName, ValueT o, String fieldName)
Sends the result of the |
| public void | writeText(XMLSerializer w, ValueT o, String fieldName)
Sends the result of the |
| declareNamespace | back to summary |
|---|---|
| public void declareNamespace(ValueT o, XMLSerializer w) throws AccessorException Declares the namespace URIs used in the given value to
| |
| getTypeName | back to summary |
|---|---|
| public QName getTypeName(ValueT instance) Transducers implicitly work against a single XML type,
but sometimes (most notably
| |
| parse | back to summary |
|---|---|
| public ValueT parse(CharSequence lexical) throws AccessorException, SAXException Converts the lexical representation to a value object.
| |
| back to summary | |
|---|---|
| public CharSequence print(ValueT o) throws AccessorException Converts the given value to its lexical representation.
| |
| useNamespace | back to summary |
|---|---|
| public boolean useNamespace() If true, this doesn't declare any namespace,
and therefore | |
| writeLeafElement | back to summary |
|---|---|
| public void writeLeafElement(XMLSerializer w, Name tagName, ValueT o, String fieldName) throws IOException, SAXException, XMLStreamException, AccessorException Sends the result of the | |
| writeText | back to summary |
|---|---|
| public void writeText(XMLSerializer w, ValueT o, String fieldName) throws IOException, SAXException, XMLStreamException, AccessorException Sends the result of the | |