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

public Class SchemaTypeTransducer<V>

extends FilterTransducer<V>
Class Inheritance
Imports
org.glassfish.jaxb.runtime.api.AccessorException, jakarta.xml.bind.annotation.XmlSchemaType, org.xml.sax.SAXException, javax.xml.namespace.QName, javax.xml.stream.XMLStreamException, java.io.IOException

Transducer that signals the runtime that this datatype is marshalled to a different XML Schema type.

This transducer is used to implement the semantics of XmlSchemaType annotation.

Author
Kohsuke Kawaguchi
See Also
XMLSerializer#getSchemaType(), XMLSerializer#setSchemaType(QName)

Field Summary

Modifier and TypeField and Description
private final QName
Inherited from org.glassfish.jaxb.runtime.v2.runtime.FilterTransducer:
core

Constructor Summary

AccessConstructor and Description
public
SchemaTypeTransducer(Transducer<V> core, QName schemaType)

Method Summary

Modifier and TypeMethod and Description
public void
public void
writeText(XMLSerializer w, V o, String fieldName)

Overrides org.glassfish.jaxb.runtime.v2.runtime.FilterTransducer.writeText.

Implements org.glassfish.jaxb.runtime.v2.runtime.Transducer.writeText.

Sends the result of the print(Object) operation to one of the XMLSerializer#text(String, String) method, but with the best representation of the value, not necessarily String.

Inherited from org.glassfish.jaxb.runtime.v2.runtime.FilterTransducer:
declareNamespacegetTypeNameparseuseNamespace

Field Detail

schemaTypeback to summary
private final QName schemaType

Constructor Detail

SchemaTypeTransducerback to summary
public SchemaTypeTransducer(Transducer<V> core, QName schemaType)

Method Detail

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

Overrides org.glassfish.jaxb.runtime.v2.runtime.FilterTransducer.writeLeafElement.

Implements org.glassfish.jaxb.runtime.v2.runtime.Transducer.writeLeafElement.

Doc from org.glassfish.jaxb.runtime.v2.runtime.Transducer.writeLeafElement.

Sends the result of the print(Object) operation to one of the XMLSerializer#leafElement(Name, String, String) method. but with the best representation of the value, not necessarily String.

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

Overrides org.glassfish.jaxb.runtime.v2.runtime.FilterTransducer.writeText.

Implements org.glassfish.jaxb.runtime.v2.runtime.Transducer.writeText.

Doc from org.glassfish.jaxb.runtime.v2.runtime.Transducer.writeText.

Sends the result of the print(Object) operation to one of the XMLSerializer#text(String, String) method, but with the best representation of the value, not necessarily String.

Annotations
@Override