|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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.
| Method Summary | |
|---|---|
BindingContext |
context()
Gets the BindingContext to which this object belongs. |
TypeInfo |
getTypeInfo()
Gets the TypeInfo from which this bridge was created. |
void |
marshal(T object,
org.xml.sax.ContentHandler contentHandler,
javax.xml.bind.attachment.AttachmentMarshaller am)
|
void |
marshal(T object,
org.w3c.dom.Node output)
|
void |
marshal(T object,
java.io.OutputStream output,
javax.xml.namespace.NamespaceContext nsContext,
javax.xml.bind.attachment.AttachmentMarshaller am)
|
void |
marshal(T object,
javax.xml.transform.Result result)
|
void |
marshal(T object,
javax.xml.stream.XMLStreamWriter output,
javax.xml.bind.attachment.AttachmentMarshaller am)
|
boolean |
supportOutputStream()
This can be used to determine whether XMLStreamWriter or OutputStream is prefered by the implementation. |
T |
unmarshal(java.io.InputStream in)
Unmarshals the specified type object. |
T |
unmarshal(org.w3c.dom.Node n,
javax.xml.bind.attachment.AttachmentUnmarshaller au)
|
T |
unmarshal(javax.xml.transform.Source in,
javax.xml.bind.attachment.AttachmentUnmarshaller au)
|
T |
unmarshal(javax.xml.stream.XMLStreamReader in,
javax.xml.bind.attachment.AttachmentUnmarshaller au)
|
| Method Detail |
|---|
@NotNull BindingContext context()
BindingContext to which this object belongs.
void marshal(T object,
javax.xml.stream.XMLStreamWriter output,
javax.xml.bind.attachment.AttachmentMarshaller am)
throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException - if there was an error while marshalling.
void marshal(T object,
java.io.OutputStream output,
javax.xml.namespace.NamespaceContext nsContext,
javax.xml.bind.attachment.AttachmentMarshaller am)
throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
void marshal(T object,
org.w3c.dom.Node output)
throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
void marshal(T object,
org.xml.sax.ContentHandler contentHandler,
javax.xml.bind.attachment.AttachmentMarshaller am)
throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
void marshal(T object,
javax.xml.transform.Result result)
throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
@NotNull
T unmarshal(@NotNull
javax.xml.stream.XMLStreamReader in,
@Nullable
javax.xml.bind.attachment.AttachmentUnmarshaller au)
throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
@NotNull
T unmarshal(@NotNull
javax.xml.transform.Source in,
@Nullable
javax.xml.bind.attachment.AttachmentUnmarshaller au)
throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
@NotNull
T unmarshal(@NotNull
java.io.InputStream in)
throws javax.xml.bind.JAXBException
in - the parser must be pointing at a start tag
that encloses the XML type that this XMLBridge is
instanciated for.
javax.xml.bind.JAXBException - if there was an error while unmarshalling.
@NotNull
T unmarshal(@NotNull
org.w3c.dom.Node n,
@Nullable
javax.xml.bind.attachment.AttachmentUnmarshaller au)
throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBExceptionTypeInfo getTypeInfo()
TypeInfo from which this bridge was created.
boolean supportOutputStream()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||