public abstract class OldBridge<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.
Modifier and Type | Field and Description |
---|---|
protected com.sun.xml.bind.v2.runtime.JAXBContextImpl |
context |
Modifier | Constructor and Description |
---|---|
protected |
OldBridge(com.sun.xml.bind.v2.runtime.JAXBContextImpl context) |
Modifier and Type | Method and Description |
---|---|
BindingContext |
getContext()
Gets the
BindingContext to which this object belongs. |
abstract TypeInfo |
getTypeReference()
Gets the
TypeInfo from which this bridge was created. |
void |
marshal(com.sun.xml.bind.api.BridgeContext context,
T object,
ContentHandler contentHandler) |
void |
marshal(com.sun.xml.bind.api.BridgeContext context,
T object,
Node output) |
void |
marshal(com.sun.xml.bind.api.BridgeContext context,
T object,
OutputStream output,
NamespaceContext nsContext) |
void |
marshal(com.sun.xml.bind.api.BridgeContext context,
T object,
Result result) |
void |
marshal(com.sun.xml.bind.api.BridgeContext context,
T object,
javax.xml.stream.XMLStreamWriter output) |
abstract void |
marshal(Marshaller m,
T object,
ContentHandler contentHandler) |
abstract void |
marshal(Marshaller m,
T object,
Node output) |
abstract void |
marshal(Marshaller m,
T object,
OutputStream output,
NamespaceContext nsContext) |
abstract void |
marshal(Marshaller m,
T object,
Result result) |
abstract void |
marshal(Marshaller m,
T object,
javax.xml.stream.XMLStreamWriter output) |
void |
marshal(T object,
ContentHandler contentHandler) |
void |
marshal(T object,
ContentHandler contentHandler,
AttachmentMarshaller am) |
void |
marshal(T object,
Node output) |
void |
marshal(T object,
OutputStream output,
NamespaceContext nsContext)
Marshals the specified type object with the implicit element name
associated with this instance of
XMLBridge . |
void |
marshal(T object,
OutputStream output,
NamespaceContext nsContext,
AttachmentMarshaller am) |
void |
marshal(T object,
Result result) |
void |
marshal(T object,
javax.xml.stream.XMLStreamWriter output) |
void |
marshal(T object,
javax.xml.stream.XMLStreamWriter output,
AttachmentMarshaller am) |
T |
unmarshal(com.sun.xml.bind.api.BridgeContext context,
InputStream in) |
T |
unmarshal(com.sun.xml.bind.api.BridgeContext context,
Node n) |
T |
unmarshal(com.sun.xml.bind.api.BridgeContext context,
Source in) |
T |
unmarshal(com.sun.xml.bind.api.BridgeContext context,
javax.xml.stream.XMLStreamReader in) |
T |
unmarshal(InputStream in)
Unmarshals the specified type object.
|
T |
unmarshal(Node n)
Unmarshals the specified type object.
|
T |
unmarshal(Node n,
AttachmentUnmarshaller au) |
T |
unmarshal(Source in)
Unmarshals the specified type object.
|
T |
unmarshal(Source in,
AttachmentUnmarshaller au) |
abstract T |
unmarshal(Unmarshaller u,
InputStream in) |
abstract T |
unmarshal(Unmarshaller context,
Node n) |
abstract T |
unmarshal(Unmarshaller u,
Source in) |
abstract T |
unmarshal(Unmarshaller u,
javax.xml.stream.XMLStreamReader in) |
T |
unmarshal(javax.xml.stream.XMLStreamReader in)
Unmarshals the specified type object.
|
T |
unmarshal(javax.xml.stream.XMLStreamReader in,
AttachmentUnmarshaller au) |
protected OldBridge(com.sun.xml.bind.v2.runtime.JAXBContextImpl context)
@NotNull public BindingContext getContext()
BindingContext
to which this object belongs.public final void marshal(T object, javax.xml.stream.XMLStreamWriter output) throws JAXBException
JAXBException
- if there was an error while marshalling.public final void marshal(T object, javax.xml.stream.XMLStreamWriter output, AttachmentMarshaller am) throws JAXBException
JAXBException
public final void marshal(@NotNull com.sun.xml.bind.api.BridgeContext context, T object, javax.xml.stream.XMLStreamWriter output) throws JAXBException
JAXBException
public abstract void marshal(@NotNull Marshaller m, T object, javax.xml.stream.XMLStreamWriter output) throws JAXBException
JAXBException
public void marshal(T object, OutputStream output, NamespaceContext nsContext) throws JAXBException
XMLBridge
.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.JAXBException
- if there was an error while marshalling.public void marshal(T object, OutputStream output, NamespaceContext nsContext, AttachmentMarshaller am) throws JAXBException
JAXBException
public final void marshal(@NotNull com.sun.xml.bind.api.BridgeContext context, T object, OutputStream output, NamespaceContext nsContext) throws JAXBException
JAXBException
public abstract void marshal(@NotNull Marshaller m, T object, OutputStream output, NamespaceContext nsContext) throws JAXBException
JAXBException
public final void marshal(T object, Node output) throws JAXBException
JAXBException
public final void marshal(@NotNull com.sun.xml.bind.api.BridgeContext context, T object, Node output) throws JAXBException
JAXBException
public abstract void marshal(@NotNull Marshaller m, T object, Node output) throws JAXBException
JAXBException
public final void marshal(T object, ContentHandler contentHandler) throws JAXBException
JAXBException
public final void marshal(T object, ContentHandler contentHandler, AttachmentMarshaller am) throws JAXBException
JAXBException
public final void marshal(@NotNull com.sun.xml.bind.api.BridgeContext context, T object, ContentHandler contentHandler) throws JAXBException
JAXBException
public abstract void marshal(@NotNull Marshaller m, T object, ContentHandler contentHandler) throws JAXBException
JAXBException
public final void marshal(T object, Result result) throws JAXBException
JAXBException
public final void marshal(@NotNull com.sun.xml.bind.api.BridgeContext context, T object, Result result) throws JAXBException
JAXBException
public abstract void marshal(@NotNull Marshaller m, T object, Result result) throws JAXBException
JAXBException
@NotNull public final T unmarshal(@NotNull javax.xml.stream.XMLStreamReader in) throws JAXBException
in
- the parser must be pointing at a start tag
that encloses the XML type that this XMLBridge
is
instanciated for.JAXBException
- if there was an error while unmarshalling.@NotNull public final T unmarshal(@NotNull javax.xml.stream.XMLStreamReader in, @Nullable AttachmentUnmarshaller au) throws JAXBException
JAXBException
@NotNull public final T unmarshal(@NotNull com.sun.xml.bind.api.BridgeContext context, @NotNull javax.xml.stream.XMLStreamReader in) throws JAXBException
JAXBException
@NotNull public abstract T unmarshal(@NotNull Unmarshaller u, @NotNull javax.xml.stream.XMLStreamReader in) throws JAXBException
JAXBException
@NotNull public final T unmarshal(@NotNull Source in) throws JAXBException
in
- the parser must be pointing at a start tag
that encloses the XML type that this XMLBridge
is
instanciated for.JAXBException
- if there was an error while unmarshalling.@NotNull public final T unmarshal(@NotNull Source in, @Nullable AttachmentUnmarshaller au) throws JAXBException
JAXBException
@NotNull public final T unmarshal(@NotNull com.sun.xml.bind.api.BridgeContext context, @NotNull Source in) throws JAXBException
JAXBException
@NotNull public abstract T unmarshal(@NotNull Unmarshaller u, @NotNull Source in) throws JAXBException
JAXBException
@NotNull public final T unmarshal(@NotNull InputStream in) throws JAXBException
in
- the parser must be pointing at a start tag
that encloses the XML type that this XMLBridge
is
instanciated for.JAXBException
- if there was an error while unmarshalling.@NotNull public final T unmarshal(@NotNull com.sun.xml.bind.api.BridgeContext context, @NotNull InputStream in) throws JAXBException
JAXBException
@NotNull public abstract T unmarshal(@NotNull Unmarshaller u, @NotNull InputStream in) throws JAXBException
JAXBException
@NotNull public final T unmarshal(@NotNull Node n) throws JAXBException
n
- Node to be unmarshalled.JAXBException
- if there was an error while unmarshalling.@NotNull public final T unmarshal(@NotNull Node n, @Nullable AttachmentUnmarshaller au) throws JAXBException
JAXBException
@NotNull public final T unmarshal(@NotNull com.sun.xml.bind.api.BridgeContext context, @NotNull Node n) throws JAXBException
JAXBException
@NotNull public abstract T unmarshal(@NotNull Unmarshaller context, @NotNull Node n) throws JAXBException
JAXBException
Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.