|
||||||||||
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>
com.sun.xml.bind.v2.runtime.BridgeImpl<T>
final class BridgeImpl<T>
Bridge
implementaiton.
Constructor Summary | |
---|---|
BridgeImpl(Name tagName,
JaxBeanInfo<T> bi,
TypeReference typeRef)
|
Method Summary | |
---|---|
TypeReference |
getTypeReference()
Gets the TypeReference from which this bridge was created. |
void |
marshal(BridgeContext context,
T t,
org.w3c.dom.Node output)
|
void |
marshal(BridgeContext context,
T t,
java.io.OutputStream output,
javax.xml.namespace.NamespaceContext nsContext)
Marshals the specified type object with the implicit element name associated with this instance of Bridge . |
void |
marshal(BridgeContext context,
T t,
javax.xml.stream.XMLStreamWriter output)
|
T |
unmarshal(BridgeContext context,
java.io.InputStream in)
Unmarshals the specified type object. |
T |
unmarshal(BridgeContext context,
javax.xml.transform.Source in)
Unmarshals the specified type object. |
T |
unmarshal(BridgeContext context,
javax.xml.stream.XMLStreamReader in)
Unmarshals the specified type object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BridgeImpl(Name tagName, JaxBeanInfo<T> bi, TypeReference typeRef)
Method Detail |
---|
public void marshal(BridgeContext context, T t, javax.xml.stream.XMLStreamWriter output) throws javax.xml.bind.JAXBException
marshal
in class Bridge<T>
javax.xml.bind.JAXBException
- if there was an error while marshalling.public void marshal(BridgeContext context, T t, java.io.OutputStream output, javax.xml.namespace.NamespaceContext nsContext) throws javax.xml.bind.JAXBException
Bridge
Bridge
.
marshal
in class Bridge<T>
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.
javax.xml.bind.JAXBException
- if there was an error while marshalling.public void marshal(BridgeContext context, T t, org.w3c.dom.Node output) throws javax.xml.bind.JAXBException
marshal
in class Bridge<T>
javax.xml.bind.JAXBException
public T unmarshal(BridgeContext context, javax.xml.stream.XMLStreamReader in) throws javax.xml.bind.JAXBException
Bridge
unmarshal
in class Bridge<T>
in
- the parser must be pointing at a start tag
that encloses the XML type that this Bridge
is
instanciated for.
javax.xml.bind.JAXBException
- if there was an error while unmarshalling.public T unmarshal(BridgeContext context, javax.xml.transform.Source in) throws javax.xml.bind.JAXBException
Bridge
unmarshal
in class Bridge<T>
in
- the parser must be pointing at a start tag
that encloses the XML type that this Bridge
is
instanciated for.
javax.xml.bind.JAXBException
- if there was an error while unmarshalling.public T unmarshal(BridgeContext context, java.io.InputStream in) throws javax.xml.bind.JAXBException
Bridge
unmarshal
in class Bridge<T>
in
- the parser must be pointing at a start tag
that encloses the XML type that this Bridge
is
instanciated for.
javax.xml.bind.JAXBException
- if there was an error while unmarshalling.public TypeReference getTypeReference()
Bridge
TypeReference
from which this bridge was created.
getTypeReference
in class Bridge<T>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |