Package com.sun.xml.ws.spi.db
Class OldBridge<T>
java.lang.Object
com.sun.xml.ws.spi.db.OldBridge<T>
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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.sun.xml.bind.v2.runtime.JAXBContextImpl -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOldBridge(com.sun.xml.bind.v2.runtime.JAXBContextImpl context) -
Method Summary
Modifier and TypeMethodDescriptionGets theBindingContextto which this object belongs.abstract TypeInfoGets theTypeInfofrom which this bridge was created.final voidmarshal(com.sun.xml.bind.api.BridgeContext context, T object, OutputStream output, NamespaceContext nsContext) final voidmarshal(com.sun.xml.bind.api.BridgeContext context, T object, XMLStreamWriter output) final voidfinal voidfinal voidmarshal(com.sun.xml.bind.api.BridgeContext context, T object, ContentHandler contentHandler) abstract voidmarshal(javax.xml.bind.Marshaller m, T object, OutputStream output, NamespaceContext nsContext) abstract voidmarshal(javax.xml.bind.Marshaller m, T object, XMLStreamWriter output) abstract voidabstract voidabstract voidmarshal(javax.xml.bind.Marshaller m, T object, ContentHandler contentHandler) voidmarshal(T object, OutputStream output, NamespaceContext nsContext) Marshals the specified type object with the implicit element name associated with this instance ofXMLBridge.voidmarshal(T object, OutputStream output, NamespaceContext nsContext, javax.xml.bind.attachment.AttachmentMarshaller am) final voidmarshal(T object, XMLStreamWriter output) final voidmarshal(T object, XMLStreamWriter output, javax.xml.bind.attachment.AttachmentMarshaller am) final voidfinal voidfinal voidmarshal(T object, ContentHandler contentHandler) final voidmarshal(T object, ContentHandler contentHandler, javax.xml.bind.attachment.AttachmentMarshaller am) final Tunmarshal(com.sun.xml.bind.api.BridgeContext context, InputStream in) final Tunmarshal(com.sun.xml.bind.api.BridgeContext context, XMLStreamReader in) final Tfinal Tfinal Tunmarshal(InputStream in) Unmarshals the specified type object.abstract Tunmarshal(javax.xml.bind.Unmarshaller u, InputStream in) abstract Tunmarshal(javax.xml.bind.Unmarshaller u, XMLStreamReader in) abstract Tabstract Tfinal TUnmarshals the specified type object.final Tunmarshal(XMLStreamReader in, javax.xml.bind.attachment.AttachmentUnmarshaller au) final TUnmarshals the specified type object.final Tfinal TUnmarshals the specified type object.final T
-
Field Details
-
context
protected final com.sun.xml.bind.v2.runtime.JAXBContextImpl context
-
-
Constructor Details
-
OldBridge
protected OldBridge(com.sun.xml.bind.v2.runtime.JAXBContextImpl context)
-
-
Method Details
-
getContext
Gets theBindingContextto which this object belongs.- Since:
- 2.1
-
marshal
- Throws:
javax.xml.bind.JAXBException- if there was an error while marshalling.- Since:
- 2.0 EA1
-
marshal
public final void marshal(T object, XMLStreamWriter output, javax.xml.bind.attachment.AttachmentMarshaller am) throws javax.xml.bind.JAXBException - Throws:
javax.xml.bind.JAXBException
-
marshal
public final void marshal(@NotNull com.sun.xml.bind.api.BridgeContext context, T object, XMLStreamWriter output) throws javax.xml.bind.JAXBException - Throws:
javax.xml.bind.JAXBException
-
marshal
public abstract void marshal(@NotNull javax.xml.bind.Marshaller m, T object, XMLStreamWriter output) throws javax.xml.bind.JAXBException - Throws:
javax.xml.bind.JAXBException
-
marshal
public void marshal(T object, OutputStream output, NamespaceContext nsContext) throws javax.xml.bind.JAXBException Marshals the specified type object with the implicit element name associated with this instance ofXMLBridge.- Parameters:
nsContext- if this marshalling is done to marshal a subelement, thisNamespaceContextrepresents in-scope namespace bindings available for that element. Can be null, in which case JAXB assumes no in-scope namespaces.- Throws:
javax.xml.bind.JAXBException- if there was an error while marshalling.- Since:
- 2.0 EA1
-
marshal
public void marshal(T object, OutputStream output, NamespaceContext nsContext, javax.xml.bind.attachment.AttachmentMarshaller am) throws javax.xml.bind.JAXBException - Throws:
javax.xml.bind.JAXBException- Since:
- 2.0.2
-
marshal
public final void marshal(@NotNull com.sun.xml.bind.api.BridgeContext context, T object, OutputStream output, NamespaceContext nsContext) throws javax.xml.bind.JAXBException - Throws:
javax.xml.bind.JAXBException
-
marshal
public abstract void marshal(@NotNull javax.xml.bind.Marshaller m, T object, OutputStream output, NamespaceContext nsContext) throws javax.xml.bind.JAXBException - Throws:
javax.xml.bind.JAXBException
-
marshal
- Throws:
javax.xml.bind.JAXBException
-
marshal
public final void marshal(@NotNull com.sun.xml.bind.api.BridgeContext context, T object, Node output) throws javax.xml.bind.JAXBException - Throws:
javax.xml.bind.JAXBException
-
marshal
public abstract void marshal(@NotNull javax.xml.bind.Marshaller m, T object, Node output) throws javax.xml.bind.JAXBException - Throws:
javax.xml.bind.JAXBException
-
marshal
public final void marshal(T object, ContentHandler contentHandler) throws javax.xml.bind.JAXBException - Throws:
javax.xml.bind.JAXBException- Since:
- 2.0 EA4
-
marshal
public final void marshal(T object, ContentHandler contentHandler, javax.xml.bind.attachment.AttachmentMarshaller am) throws javax.xml.bind.JAXBException - Throws:
javax.xml.bind.JAXBException- Since:
- 2.0.2
-
marshal
public final void marshal(@NotNull com.sun.xml.bind.api.BridgeContext context, T object, ContentHandler contentHandler) throws javax.xml.bind.JAXBException - Throws:
javax.xml.bind.JAXBException
-
marshal
public abstract void marshal(@NotNull javax.xml.bind.Marshaller m, T object, ContentHandler contentHandler) throws javax.xml.bind.JAXBException - Throws:
javax.xml.bind.JAXBException
-
marshal
- Throws:
javax.xml.bind.JAXBException- Since:
- 2.0 EA4
-
marshal
public final void marshal(@NotNull com.sun.xml.bind.api.BridgeContext context, T object, Result result) throws javax.xml.bind.JAXBException - Throws:
javax.xml.bind.JAXBException
-
marshal
public abstract void marshal(@NotNull javax.xml.bind.Marshaller m, T object, Result result) throws javax.xml.bind.JAXBException - Throws:
javax.xml.bind.JAXBException
-
unmarshal
Unmarshals the specified type object.- Parameters:
in- the parser must be pointing at a start tag that encloses the XML type that thisXMLBridgeis instanciated for.- Returns:
- never null.
- Throws:
javax.xml.bind.JAXBException- if there was an error while unmarshalling.- Since:
- 2.0 EA1
-
unmarshal
@NotNull public final T unmarshal(@NotNull XMLStreamReader in, @Nullable javax.xml.bind.attachment.AttachmentUnmarshaller au) throws javax.xml.bind.JAXBException - Throws:
javax.xml.bind.JAXBException- Since:
- 2.0.3
-
unmarshal
@NotNull public final T unmarshal(@NotNull com.sun.xml.bind.api.BridgeContext context, @NotNull XMLStreamReader in) throws javax.xml.bind.JAXBException - Throws:
javax.xml.bind.JAXBException
-
unmarshal
@NotNull public abstract T unmarshal(@NotNull javax.xml.bind.Unmarshaller u, @NotNull XMLStreamReader in) throws javax.xml.bind.JAXBException - Throws:
javax.xml.bind.JAXBException
-
unmarshal
Unmarshals the specified type object.- Parameters:
in- the parser must be pointing at a start tag that encloses the XML type that thisXMLBridgeis instanciated for.- Returns:
- never null.
- Throws:
javax.xml.bind.JAXBException- if there was an error while unmarshalling.- Since:
- 2.0 EA1
-
unmarshal
@NotNull public final T unmarshal(@NotNull Source in, @Nullable javax.xml.bind.attachment.AttachmentUnmarshaller au) throws javax.xml.bind.JAXBException - Throws:
javax.xml.bind.JAXBException- Since:
- 2.0.3
-
unmarshal
@NotNull public final T unmarshal(@NotNull com.sun.xml.bind.api.BridgeContext context, @NotNull Source in) throws javax.xml.bind.JAXBException - Throws:
javax.xml.bind.JAXBException
-
unmarshal
@NotNull public abstract T unmarshal(@NotNull javax.xml.bind.Unmarshaller u, @NotNull Source in) throws javax.xml.bind.JAXBException - Throws:
javax.xml.bind.JAXBException
-
unmarshal
Unmarshals the specified type object.- Parameters:
in- the parser must be pointing at a start tag that encloses the XML type that thisXMLBridgeis instanciated for.- Returns:
- never null.
- Throws:
javax.xml.bind.JAXBException- if there was an error while unmarshalling.- Since:
- 2.0 EA1
-
unmarshal
@NotNull public final T unmarshal(@NotNull com.sun.xml.bind.api.BridgeContext context, @NotNull InputStream in) throws javax.xml.bind.JAXBException - Throws:
javax.xml.bind.JAXBException
-
unmarshal
@NotNull public abstract T unmarshal(@NotNull javax.xml.bind.Unmarshaller u, @NotNull InputStream in) throws javax.xml.bind.JAXBException - Throws:
javax.xml.bind.JAXBException
-
unmarshal
Unmarshals the specified type object.- Parameters:
n- Node to be unmarshalled.- Returns:
- never null.
- Throws:
javax.xml.bind.JAXBException- if there was an error while unmarshalling.- Since:
- 2.0 FCS
-
unmarshal
@NotNull public final T unmarshal(@NotNull Node n, @Nullable javax.xml.bind.attachment.AttachmentUnmarshaller au) throws javax.xml.bind.JAXBException - Throws:
javax.xml.bind.JAXBException- Since:
- 2.0.3
-
unmarshal
@NotNull public final T unmarshal(@NotNull com.sun.xml.bind.api.BridgeContext context, @NotNull Node n) throws javax.xml.bind.JAXBException - Throws:
javax.xml.bind.JAXBException
-
unmarshal
@NotNull public abstract T unmarshal(@NotNull javax.xml.bind.Unmarshaller context, @NotNull Node n) throws javax.xml.bind.JAXBException - Throws:
javax.xml.bind.JAXBException
-
getTypeReference
Gets theTypeInfofrom which this bridge was created.
-