com.sun.xml.bind.v2.runtime
Class BridgeImpl<T>

java.lang.Object
  extended by com.sun.xml.bind.api.Bridge<T>
      extended by com.sun.xml.bind.v2.runtime.InternalBridge<T>
          extended by com.sun.xml.bind.v2.runtime.BridgeImpl<T>

final class BridgeImpl<T>
extends InternalBridge<T>

Bridge implementaiton.


Field Summary
 
Fields inherited from class com.sun.xml.bind.api.Bridge
context
 
Constructor Summary
BridgeImpl(JAXBContextImpl context, Name tagName, JaxBeanInfo<T> bi, TypeReference typeRef)
           
 
Method Summary
 TypeReference getTypeReference()
          Gets the TypeReference from which this bridge was created.
 void marshal(Marshaller _m, T t, ContentHandler contentHandler)
           
 void marshal(Marshaller _m, T t, Node output)
           
 void marshal(Marshaller _m, T t, OutputStream output, NamespaceContext nsContext)
           
 void marshal(Marshaller _m, T t, Result result)
           
 void marshal(Marshaller _m, T t, javax.xml.stream.XMLStreamWriter output)
           
 void marshal(T value, XMLSerializer out)
          Called from CompositeStructureBeanInfo to marshal this bridge as a sub-tree.
 T unmarshal(Unmarshaller _u, InputStream in)
           
 T unmarshal(Unmarshaller _u, Node n)
           
 T unmarshal(Unmarshaller _u, Source in)
           
 T 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

BridgeImpl

public BridgeImpl(JAXBContextImpl context,
                  Name tagName,
                  JaxBeanInfo<T> bi,
                  TypeReference typeRef)
Method Detail

marshal

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

marshal

public void marshal(Marshaller _m,
                    T t,
                    OutputStream output,
                    NamespaceContext nsContext)
             throws JAXBException
Specified by:
marshal in class Bridge<T>
Throws:
JAXBException

marshal

public void marshal(Marshaller _m,
                    T t,
                    Node output)
             throws JAXBException
Specified by:
marshal in class Bridge<T>
Throws:
JAXBException

marshal

public void marshal(Marshaller _m,
                    T t,
                    ContentHandler contentHandler)
             throws JAXBException
Specified by:
marshal in class Bridge<T>
Throws:
JAXBException

marshal

public void marshal(Marshaller _m,
                    T t,
                    Result result)
             throws JAXBException
Specified by:
marshal in class Bridge<T>
Throws:
JAXBException

unmarshal

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

unmarshal

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

unmarshal

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

unmarshal

@NotNull
public T unmarshal(Unmarshaller _u,
                           Node n)
            throws JAXBException
Specified by:
unmarshal in class Bridge<T>
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<T>

marshal

public void marshal(T value,
                    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<T>
Throws:
IOException
SAXException
javax.xml.stream.XMLStreamException