| java.lang.Object com.sun.xml.bind.api.Bridge
Bridge | abstract public class Bridge (Code) | | Mini-marshaller/unmarshaller that is specialized for a particular
element name and a type.
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 author: Kohsuke Kawaguchi |
Method Summary | |
public JAXBRIContext | getContext() Gets the
JAXBRIContext to which this object belongs. | abstract public TypeReference | getTypeReference() Gets the
TypeReference from which this bridge was created. | final public void | marshal(T object, XMLStreamWriter output) | final public void | marshal(T object, XMLStreamWriter output, AttachmentMarshaller am) | final public void | marshal(BridgeContext context, T object, XMLStreamWriter output) | abstract public void | marshal(Marshaller m, T object, XMLStreamWriter output) | public void | marshal(T object, OutputStream output, NamespaceContext nsContext) Marshals the specified type object with the implicit element name
associated with this instance of
Bridge .
Parameters: nsContext - if this marshalling is done to marshal a subelement, this NamespaceContextrepresents in-scope namespace bindings available for that element. | public void | marshal(T object, OutputStream output, NamespaceContext nsContext, AttachmentMarshaller am) | final public void | marshal(BridgeContext context, T object, OutputStream output, NamespaceContext nsContext) | abstract public void | marshal(Marshaller m, T object, OutputStream output, NamespaceContext nsContext) | final public void | marshal(T object, Node output) | final public void | marshal(BridgeContext context, T object, Node output) | abstract public void | marshal(Marshaller m, T object, Node output) | final public void | marshal(T object, ContentHandler contentHandler) | final public void | marshal(T object, ContentHandler contentHandler, AttachmentMarshaller am) | final public void | marshal(BridgeContext context, T object, ContentHandler contentHandler) | abstract public void | marshal(Marshaller m, T object, ContentHandler contentHandler) | final public void | marshal(T object, Result result) | final public void | marshal(BridgeContext context, T object, Result result) | abstract public void | marshal(Marshaller m, T object, Result result) | final public T | unmarshal(XMLStreamReader in) Unmarshals the specified type object. | final public T | unmarshal(XMLStreamReader in, AttachmentUnmarshaller au) | final public T | unmarshal(BridgeContext context, XMLStreamReader in) | abstract public T | unmarshal(Unmarshaller u, XMLStreamReader in) | final public T | unmarshal(Source in) Unmarshals the specified type object. | final public T | unmarshal(Source in, AttachmentUnmarshaller au) | final public T | unmarshal(BridgeContext context, Source in) | abstract public T | unmarshal(Unmarshaller u, Source in) | final public T | unmarshal(InputStream in) Unmarshals the specified type object. | final public T | unmarshal(BridgeContext context, InputStream in) | abstract public T | unmarshal(Unmarshaller u, InputStream in) | final public T | unmarshal(Node n) Unmarshals the specified type object. | final public T | unmarshal(Node n, AttachmentUnmarshaller au) | final public T | unmarshal(BridgeContext context, Node n) | abstract public T | unmarshal(Unmarshaller context, Node n) |
marshal | public void marshal(T object, OutputStream output, NamespaceContext nsContext) throws JAXBException(Code) | | Marshals the specified type object with the implicit element name
associated with this instance of
Bridge .
Parameters: nsContext - if this marshalling is done to marshal a subelement, this NamespaceContextrepresents 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 |
unmarshal | final public T unmarshal(XMLStreamReader in) throws JAXBException(Code) | | Unmarshals the specified type object.
Parameters: in - the parser must be pointing at a start tagthat encloses the XML type that this Bridge isinstanciated for.never null. throws: JAXBException - if there was an error while unmarshalling. since: 2.0 EA1 |
unmarshal | final public T unmarshal(Source in) throws JAXBException(Code) | | Unmarshals the specified type object.
Parameters: in - the parser must be pointing at a start tagthat encloses the XML type that this Bridge isinstanciated for.never null. throws: JAXBException - if there was an error while unmarshalling. since: 2.0 EA1 |
unmarshal | final public T unmarshal(InputStream in) throws JAXBException(Code) | | Unmarshals the specified type object.
Parameters: in - the parser must be pointing at a start tagthat encloses the XML type that this Bridge isinstanciated for.never null. throws: JAXBException - if there was an error while unmarshalling. since: 2.0 EA1 |
unmarshal | final public T unmarshal(Node n) throws JAXBException(Code) | | Unmarshals the specified type object.
Parameters: n - Node to be unmarshalled.never null. throws: JAXBException - if there was an error while unmarshalling. since: 2.0 FCS |
|
|