|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.xml.bind.api.Bridge<T>
public abstract class Bridge<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.
Field Summary | |
---|---|
protected JAXBContextImpl |
context
|
Constructor Summary | |
---|---|
protected |
Bridge(JAXBContextImpl context)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final JAXBContextImpl context
Constructor Detail |
---|
protected Bridge(JAXBContextImpl context)
Method Detail |
---|
@NotNull public JAXBRIContext getContext()
JAXBRIContext
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 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
Bridge
.
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 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 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 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 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 Bridge
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 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 Bridge
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 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 Bridge
is
instanciated for.
JAXBException
- if there was an error while unmarshalling.@NotNull public final T unmarshal(@NotNull 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 BridgeContext context, @NotNull Node n) throws JAXBException
JAXBException
@NotNull public abstract T unmarshal(@NotNull Unmarshaller context, @NotNull Node n) throws JAXBException
JAXBException
public abstract TypeReference getTypeReference()
TypeReference
from which this bridge was created.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |