com.sun.xml.bind.api
public abstract class Bridge<T> extends Object
Instances of this class is stateless and multi-thread safe. They are reentrant.
All the marshal operation generates fragments.
Subject to change without notice.
Since: JAXB 2.0 EA1
Field Summary | |
---|---|
protected JAXBContextImpl | context |
Constructor Summary | |
---|---|
protected | Bridge(JAXBContextImpl context) |
Method Summary | |
---|---|
JAXBRIContext | getContext()
Gets the JAXBRIContext to which this object belongs.
|
abstract TypeReference | getTypeReference()
Gets the TypeReference from which this bridge was created. |
void | marshal(T object, XMLStreamWriter output) |
void | marshal(T object, XMLStreamWriter output, AttachmentMarshaller am) |
void | marshal(BridgeContext context, T object, XMLStreamWriter output) |
abstract void | marshal(Marshaller m, T object, XMLStreamWriter output) |
void | marshal(T object, OutputStream output, NamespaceContext nsContext)
Marshals the specified type object with the implicit element name
associated with this instance of Bridge.
|
void | marshal(T object, OutputStream output, NamespaceContext nsContext, AttachmentMarshaller am) |
void | marshal(BridgeContext context, T object, OutputStream output, NamespaceContext nsContext) |
abstract void | marshal(Marshaller m, T object, OutputStream output, NamespaceContext nsContext) |
void | marshal(T object, Node output) |
void | marshal(BridgeContext context, T object, Node output) |
abstract void | marshal(Marshaller m, T object, Node output) |
void | marshal(T object, ContentHandler contentHandler) |
void | marshal(T object, ContentHandler contentHandler, AttachmentMarshaller am) |
void | marshal(BridgeContext context, T object, ContentHandler contentHandler) |
abstract void | marshal(Marshaller m, T object, ContentHandler contentHandler) |
void | marshal(T object, Result result) |
void | marshal(BridgeContext context, T object, Result result) |
abstract void | marshal(Marshaller m, T object, Result result) |
T | unmarshal(XMLStreamReader in)
Unmarshals the specified type object.
|
T | unmarshal(XMLStreamReader in, AttachmentUnmarshaller au) |
T | unmarshal(BridgeContext context, XMLStreamReader in) |
T | unmarshal(Unmarshaller u, XMLStreamReader in) |
T | unmarshal(Source in)
Unmarshals the specified type object.
|
T | unmarshal(Source in, AttachmentUnmarshaller au) |
T | unmarshal(BridgeContext context, Source in) |
T | unmarshal(Unmarshaller u, Source in) |
T | unmarshal(InputStream in)
Unmarshals the specified type object.
|
T | unmarshal(BridgeContext context, InputStream in) |
T | unmarshal(Unmarshaller u, InputStream in) |
T | unmarshal(Node n)
Unmarshals the specified type object.
|
T | unmarshal(Node n, AttachmentUnmarshaller au) |
T | unmarshal(BridgeContext context, Node n) |
T | unmarshal(Unmarshaller context, Node n) |
Since: 2.1
Throws: JAXBException if there was an error while marshalling.
Since: 2.0 EA1
Parameters: nsContext if this marshalling is done to marshal a subelement, this NamespaceContext represents in-scope namespace bindings available for that element. Can be null, in which case JAXB assumes no in-scope namespaces.
Throws: JAXBException if there was an error while marshalling.
Since: 2.0 EA1
Since: 2.0.2
Since: 2.0 EA4
Since: 2.0.2
Since: 2.0 EA4
Parameters: in the parser must be pointing at a start tag that encloses the XML type that this Bridge is instanciated for.
Returns: never null.
Throws: JAXBException if there was an error while unmarshalling.
Since: 2.0 EA1
Since: 2.0.3
Parameters: in the parser must be pointing at a start tag that encloses the XML type that this Bridge is instanciated for.
Returns: never null.
Throws: JAXBException if there was an error while unmarshalling.
Since: 2.0 EA1
Since: 2.0.3
Parameters: in the parser must be pointing at a start tag that encloses the XML type that this Bridge is instanciated for.
Returns: never null.
Throws: JAXBException if there was an error while unmarshalling.
Since: 2.0 EA1
Parameters: n Node to be unmarshalled.
Returns: never null.
Throws: JAXBException if there was an error while unmarshalling.
Since: 2.0 FCS
Since: 2.0.3