com.sun.xml.bind.v2.runtime
Class BridgeAdapter<OnWire,InMemory>

java.lang.Object
  extended by com.sun.xml.bind.api.Bridge<InMemory>
      extended by com.sun.xml.bind.v2.runtime.BridgeAdapter<OnWire,InMemory>

final class BridgeAdapter<OnWire,InMemory>
extends Bridge<InMemory>

Bridge decorator for XmlAdapter.


Constructor Summary
BridgeAdapter(Bridge<OnWire> core, java.lang.Class<? extends javax.xml.bind.annotation.adapters.XmlAdapter<OnWire,InMemory>> adapter)
           
 
Method Summary
 TypeReference getTypeReference()
          Gets the TypeReference from which this bridge was created.
 void marshal(BridgeContext context, InMemory inMemory, org.w3c.dom.Node output)
           
 void marshal(BridgeContext context, InMemory inMemory, java.io.OutputStream output, javax.xml.namespace.NamespaceContext nsc)
          Marshals the specified type object with the implicit element name associated with this instance of Bridge.
 void marshal(BridgeContext context, InMemory inMemory, javax.xml.stream.XMLStreamWriter output)
           
 InMemory unmarshal(BridgeContext context, java.io.InputStream in)
          Unmarshals the specified type object.
 InMemory unmarshal(BridgeContext context, javax.xml.transform.Source in)
          Unmarshals the specified type object.
 InMemory 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

BridgeAdapter

public BridgeAdapter(Bridge<OnWire> core,
                     java.lang.Class<? extends javax.xml.bind.annotation.adapters.XmlAdapter<OnWire,InMemory>> adapter)
Method Detail

marshal

public void marshal(BridgeContext context,
                    InMemory inMemory,
                    javax.xml.stream.XMLStreamWriter output)
             throws javax.xml.bind.JAXBException
Specified by:
marshal in class Bridge<InMemory>
Throws:
javax.xml.bind.JAXBException - if there was an error while marshalling.

marshal

public void marshal(BridgeContext context,
                    InMemory inMemory,
                    java.io.OutputStream output,
                    javax.xml.namespace.NamespaceContext nsc)
             throws javax.xml.bind.JAXBException
Description copied from class: Bridge
Marshals the specified type object with the implicit element name associated with this instance of Bridge.

Specified by:
marshal in class Bridge<InMemory>
nsc - 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.
Throws:
javax.xml.bind.JAXBException - if there was an error while marshalling.

marshal

public void marshal(BridgeContext context,
                    InMemory inMemory,
                    org.w3c.dom.Node output)
             throws javax.xml.bind.JAXBException
Specified by:
marshal in class Bridge<InMemory>
Throws:
javax.xml.bind.JAXBException

unmarshal

public InMemory unmarshal(BridgeContext context,
                          javax.xml.stream.XMLStreamReader in)
                   throws javax.xml.bind.JAXBException
Description copied from class: Bridge
Unmarshals the specified type object.

Specified by:
unmarshal in class Bridge<InMemory>
in - the parser must be pointing at a start tag that encloses the XML type that this Bridge is instanciated for.
Returns:
never null.
Throws:
javax.xml.bind.JAXBException - if there was an error while unmarshalling.

unmarshal

public InMemory unmarshal(BridgeContext context,
                          javax.xml.transform.Source in)
                   throws javax.xml.bind.JAXBException
Description copied from class: Bridge
Unmarshals the specified type object.

Specified by:
unmarshal in class Bridge<InMemory>
in - the parser must be pointing at a start tag that encloses the XML type that this Bridge is instanciated for.
Returns:
never null.
Throws:
javax.xml.bind.JAXBException - if there was an error while unmarshalling.

unmarshal

public InMemory unmarshal(BridgeContext context,
                          java.io.InputStream in)
                   throws javax.xml.bind.JAXBException
Description copied from class: Bridge
Unmarshals the specified type object.

Specified by:
unmarshal in class Bridge<InMemory>
in - the parser must be pointing at a start tag that encloses the XML type that this Bridge is instanciated for.
Returns:
never null.
Throws:
javax.xml.bind.JAXBException - if there was an error while unmarshalling.

getTypeReference

public TypeReference getTypeReference()
Description copied from class: Bridge
Gets the TypeReference from which this bridge was created.

Specified by:
getTypeReference in class Bridge<InMemory>