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

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

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

Bridge decorator for XmlAdapter.


Field Summary
 
Fields inherited from class com.sun.xml.bind.api.Bridge
context
 
Constructor Summary
BridgeAdapter(InternalBridge<OnWire> core, Class<? extends XmlAdapter<OnWire,InMemory>> adapter)
           
 
Method Summary
 TypeReference getTypeReference()
          Gets the TypeReference from which this bridge was created.
(package private)  void marshal(InMemory o, XMLSerializer out)
          Called from CompositeStructureBeanInfo to marshal this bridge as a sub-tree.
 void marshal(Marshaller context, InMemory inMemory, ContentHandler contentHandler)
           
 void marshal(Marshaller m, InMemory inMemory, Node output)
           
 void marshal(Marshaller m, InMemory inMemory, OutputStream output, NamespaceContext nsc)
           
 void marshal(Marshaller context, InMemory inMemory, Result result)
           
 void marshal(Marshaller m, InMemory inMemory, javax.xml.stream.XMLStreamWriter output)
           
 InMemory unmarshal(Unmarshaller u, InputStream in)
           
 InMemory unmarshal(Unmarshaller u, Node n)
           
 InMemory unmarshal(Unmarshaller u, Source in)
           
 InMemory unmarshal(Unmarshaller u, javax.xml.stream.XMLStreamReader in)
           
 
Methods inherited from class com.sun.xml.bind.v2.runtime.InternalBridge
getContext
 
Methods inherited from class com.sun.xml.bind.api.Bridge
marshal, marshal, marshal, marshal, marshal, marshal, marshal, marshal, marshal, marshal, marshal, marshal, marshal, unmarshal, unmarshal, unmarshal, unmarshal, unmarshal, unmarshal, unmarshal, unmarshal, unmarshal, unmarshal, unmarshal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BridgeAdapter

public BridgeAdapter(InternalBridge<OnWire> core,
                     Class<? extends XmlAdapter<OnWire,InMemory>> adapter)
Method Detail

marshal

public void marshal(Marshaller m,
                    InMemory inMemory,
                    javax.xml.stream.XMLStreamWriter output)
             throws JAXBException
Specified by:
marshal in class Bridge<InMemory>
Throws:
JAXBException

marshal

public void marshal(Marshaller m,
                    InMemory inMemory,
                    OutputStream output,
                    NamespaceContext nsc)
             throws JAXBException
Specified by:
marshal in class Bridge<InMemory>
Throws:
JAXBException

marshal

public void marshal(Marshaller m,
                    InMemory inMemory,
                    Node output)
             throws JAXBException
Specified by:
marshal in class Bridge<InMemory>
Throws:
JAXBException

marshal

public void marshal(Marshaller context,
                    InMemory inMemory,
                    ContentHandler contentHandler)
             throws JAXBException
Specified by:
marshal in class Bridge<InMemory>
Throws:
JAXBException

marshal

public void marshal(Marshaller context,
                    InMemory inMemory,
                    Result result)
             throws JAXBException
Specified by:
marshal in class Bridge<InMemory>
Throws:
JAXBException

unmarshal

@NotNull
public InMemory unmarshal(Unmarshaller u,
                                  javax.xml.stream.XMLStreamReader in)
                   throws JAXBException
Specified by:
unmarshal in class Bridge<InMemory>
Throws:
JAXBException

unmarshal

@NotNull
public InMemory unmarshal(Unmarshaller u,
                                  Source in)
                   throws JAXBException
Specified by:
unmarshal in class Bridge<InMemory>
Throws:
JAXBException

unmarshal

@NotNull
public InMemory unmarshal(Unmarshaller u,
                                  InputStream in)
                   throws JAXBException
Specified by:
unmarshal in class Bridge<InMemory>
Throws:
JAXBException

unmarshal

@NotNull
public InMemory unmarshal(Unmarshaller u,
                                  Node n)
                   throws JAXBException
Specified by:
unmarshal in class Bridge<InMemory>
Throws:
JAXBException

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>

marshal

void marshal(InMemory o,
             XMLSerializer out)
       throws IOException,
              SAXException,
              javax.xml.stream.XMLStreamException
Description copied from class: InternalBridge
Called from CompositeStructureBeanInfo to marshal this bridge as a sub-tree.

Specified by:
marshal in class InternalBridge<InMemory>
Throws:
IOException
SAXException
javax.xml.stream.XMLStreamException