Package com.sun.xml.ws.spi.db
Interface XMLBridge<T>
-
- All Known Implementing Classes:
BridgeWrapper
,MarshallerBridge
,RepeatedElementBridge
,WrapperBridge
,WrapperBridge
public interface XMLBridge<T>
The XMLBridge is a Glassfish JAXWS side of Glassfish JAXB Bridge. 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, [email protected]
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BindingContext
context()
Gets theBindingContext
to which this object belongs.TypeInfo
getTypeInfo()
Gets theTypeInfo
from which this bridge was created.void
marshal(T object, OutputStream output, NamespaceContext nsContext, jakarta.xml.bind.attachment.AttachmentMarshaller am)
void
marshal(T object, XMLStreamWriter output, jakarta.xml.bind.attachment.AttachmentMarshaller am)
void
marshal(T object, Result result)
void
marshal(T object, Node output)
void
marshal(T object, ContentHandler contentHandler, jakarta.xml.bind.attachment.AttachmentMarshaller am)
boolean
supportOutputStream()
This can be used to determine whether XMLStreamWriter or OutputStream is prefered by the implementation.T
unmarshal(InputStream in)
Unmarshals the specified type object.T
unmarshal(XMLStreamReader in, jakarta.xml.bind.attachment.AttachmentUnmarshaller au)
T
unmarshal(Source in, jakarta.xml.bind.attachment.AttachmentUnmarshaller au)
T
unmarshal(Node n, jakarta.xml.bind.attachment.AttachmentUnmarshaller au)
-
-
-
Method Detail
-
context
@NotNull BindingContext context()
Gets theBindingContext
to which this object belongs.- Since:
- 2.1
-
marshal
void marshal(T object, XMLStreamWriter output, jakarta.xml.bind.attachment.AttachmentMarshaller am) throws jakarta.xml.bind.JAXBException
- Throws:
jakarta.xml.bind.JAXBException
- if there was an error while marshalling.- Since:
- 2.0 EA1
-
marshal
void marshal(T object, OutputStream output, NamespaceContext nsContext, jakarta.xml.bind.attachment.AttachmentMarshaller am) throws jakarta.xml.bind.JAXBException
- Throws:
jakarta.xml.bind.JAXBException
- Since:
- 2.0.2
-
marshal
void marshal(T object, Node output) throws jakarta.xml.bind.JAXBException
- Throws:
jakarta.xml.bind.JAXBException
-
marshal
void marshal(T object, ContentHandler contentHandler, jakarta.xml.bind.attachment.AttachmentMarshaller am) throws jakarta.xml.bind.JAXBException
- Throws:
jakarta.xml.bind.JAXBException
- Since:
- 2.0.2
-
marshal
void marshal(T object, Result result) throws jakarta.xml.bind.JAXBException
- Throws:
jakarta.xml.bind.JAXBException
- Since:
- 2.0 EA4
-
unmarshal
@NotNull T unmarshal(@NotNull XMLStreamReader in, @Nullable jakarta.xml.bind.attachment.AttachmentUnmarshaller au) throws jakarta.xml.bind.JAXBException
- Throws:
jakarta.xml.bind.JAXBException
- Since:
- 2.0.3
-
unmarshal
@NotNull T unmarshal(@NotNull Source in, @Nullable jakarta.xml.bind.attachment.AttachmentUnmarshaller au) throws jakarta.xml.bind.JAXBException
- Throws:
jakarta.xml.bind.JAXBException
- Since:
- 2.0.3
-
unmarshal
@NotNull T unmarshal(@NotNull InputStream in) throws jakarta.xml.bind.JAXBException
Unmarshals the specified type object.- Parameters:
in
- the parser must be pointing at a start tag that encloses the XML type that thisXMLBridge
is instanciated for.- Returns:
- never null.
- Throws:
jakarta.xml.bind.JAXBException
- if there was an error while unmarshalling.- Since:
- 2.0 EA1
-
unmarshal
@NotNull T unmarshal(@NotNull Node n, @Nullable jakarta.xml.bind.attachment.AttachmentUnmarshaller au) throws jakarta.xml.bind.JAXBException
- Throws:
jakarta.xml.bind.JAXBException
- Since:
- 2.0.3
-
supportOutputStream
boolean supportOutputStream()
This can be used to determine whether XMLStreamWriter or OutputStream is prefered by the implementation.- Returns:
- true if marshall to OutputStream is supported in the implementation.
-
-