com.sun.xml.ws.db.glassfish
Class BridgeWrapper<T>

java.lang.Object
  extended by com.sun.xml.ws.db.glassfish.BridgeWrapper<T>
All Implemented Interfaces:
XMLBridge<T>

public class BridgeWrapper<T>
extends Object
implements XMLBridge<T>


Constructor Summary
BridgeWrapper(JAXBRIContextWrapper p, com.sun.xml.bind.api.Bridge<T> b)
           
 
Method Summary
 BindingContext context()
          Gets the BindingContext to which this object belongs.
 boolean equals(Object obj)
           
(package private)  com.sun.xml.bind.api.Bridge getBridge()
           
 com.sun.xml.bind.api.JAXBRIContext getContext()
           
 TypeInfo getTypeInfo()
          Gets the TypeInfo from which this bridge was created.
 int hashCode()
           
 void marshal(Marshaller m, T object, ContentHandler contentHandler)
           
 void marshal(Marshaller m, T object, Node output)
           
 void marshal(Marshaller m, T object, OutputStream output, NamespaceContext nsContext)
           
 void marshal(Marshaller m, T object, Result result)
           
 void marshal(Marshaller m, T object, javax.xml.stream.XMLStreamWriter output)
           
 void marshal(T object, ContentHandler contentHandler)
           
 void marshal(T object, ContentHandler contentHandler, AttachmentMarshaller am)
           
 void marshal(T object, Node output)
           
 void marshal(T object, OutputStream output, NamespaceContext nsContext)
           
 void marshal(T object, OutputStream output, NamespaceContext nsContext, AttachmentMarshaller am)
           
 void marshal(T object, Result result)
           
 void marshal(T object, javax.xml.stream.XMLStreamWriter output)
           
 void marshal(T object, javax.xml.stream.XMLStreamWriter output, AttachmentMarshaller am)
           
 boolean supportOutputStream()
          This can be used to determine whether XMLStreamWriter or OutputStream is prefered by the implementation.
 String toString()
           
 T unmarshal(InputStream in)
          Unmarshals the specified type object.
 T unmarshal(Node n)
           
 T unmarshal(Node n, AttachmentUnmarshaller au)
           
 T unmarshal(Source in)
           
 T unmarshal(Source in, AttachmentUnmarshaller au)
           
 T unmarshal(Unmarshaller u, InputStream in)
           
 T unmarshal(Unmarshaller context, Node n)
           
 T unmarshal(Unmarshaller u, Source in)
           
 T unmarshal(Unmarshaller u, javax.xml.stream.XMLStreamReader in)
           
 T unmarshal(javax.xml.stream.XMLStreamReader in)
           
 T unmarshal(javax.xml.stream.XMLStreamReader in, AttachmentUnmarshaller au)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BridgeWrapper

public BridgeWrapper(JAXBRIContextWrapper p,
                     com.sun.xml.bind.api.Bridge<T> b)
Method Detail

context

public BindingContext context()
Description copied from interface: XMLBridge
Gets the BindingContext to which this object belongs.

Specified by:
context in interface XMLBridge<T>

getBridge

com.sun.xml.bind.api.Bridge getBridge()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getContext

public com.sun.xml.bind.api.JAXBRIContext getContext()

getTypeInfo

public TypeInfo getTypeInfo()
Description copied from interface: XMLBridge
Gets the TypeInfo from which this bridge was created.

Specified by:
getTypeInfo in interface XMLBridge<T>

hashCode

public int hashCode()
Overrides:
hashCode in class Object

marshal

public void marshal(Marshaller m,
                    T object,
                    ContentHandler contentHandler)
             throws JAXBException
Throws:
JAXBException

marshal

public void marshal(Marshaller m,
                    T object,
                    Node output)
             throws JAXBException
Throws:
JAXBException

marshal

public void marshal(Marshaller m,
                    T object,
                    OutputStream output,
                    NamespaceContext nsContext)
             throws JAXBException
Throws:
JAXBException

marshal

public void marshal(Marshaller m,
                    T object,
                    Result result)
             throws JAXBException
Throws:
JAXBException

marshal

public void marshal(Marshaller m,
                    T object,
                    javax.xml.stream.XMLStreamWriter output)
             throws JAXBException
Throws:
JAXBException

marshal

public final void marshal(T object,
                          ContentHandler contentHandler,
                          AttachmentMarshaller am)
                   throws JAXBException
Specified by:
marshal in interface XMLBridge<T>
Throws:
JAXBException

marshal

public void marshal(T object,
                    ContentHandler contentHandler)
             throws JAXBException
Throws:
JAXBException

marshal

public void marshal(T object,
                    Node output)
             throws JAXBException
Specified by:
marshal in interface XMLBridge<T>
Throws:
JAXBException

marshal

public void marshal(T object,
                    OutputStream output,
                    NamespaceContext nsContext,
                    AttachmentMarshaller am)
             throws JAXBException
Specified by:
marshal in interface XMLBridge<T>
Throws:
JAXBException

marshal

public void marshal(T object,
                    OutputStream output,
                    NamespaceContext nsContext)
             throws JAXBException
Throws:
JAXBException

marshal

public final void marshal(T object,
                          Result result)
                   throws JAXBException
Specified by:
marshal in interface XMLBridge<T>
Throws:
JAXBException

marshal

public final void marshal(T object,
                          javax.xml.stream.XMLStreamWriter output,
                          AttachmentMarshaller am)
                   throws JAXBException
Specified by:
marshal in interface XMLBridge<T>
Throws:
JAXBException - if there was an error while marshalling.

marshal

public final void marshal(T object,
                          javax.xml.stream.XMLStreamWriter output)
                   throws JAXBException
Throws:
JAXBException

toString

public String toString()
Overrides:
toString in class Object

unmarshal

public final T unmarshal(InputStream in)
                  throws JAXBException
Description copied from interface: XMLBridge
Unmarshals the specified type object.

Specified by:
unmarshal in interface XMLBridge<T>
Parameters:
in - the parser must be pointing at a start tag that encloses the XML type that this XMLBridge is instanciated for.
Returns:
never null.
Throws:
JAXBException - if there was an error while unmarshalling.

unmarshal

public final T unmarshal(Node n,
                         AttachmentUnmarshaller au)
                  throws JAXBException
Specified by:
unmarshal in interface XMLBridge<T>
Throws:
JAXBException

unmarshal

public final T unmarshal(Node n)
                  throws JAXBException
Throws:
JAXBException

unmarshal

public final T unmarshal(Source in,
                         AttachmentUnmarshaller au)
                  throws JAXBException
Specified by:
unmarshal in interface XMLBridge<T>
Throws:
JAXBException

unmarshal

public final T unmarshal(Source in)
                  throws DatabindingException
Throws:
DatabindingException

unmarshal

public T unmarshal(Unmarshaller u,
                   InputStream in)
            throws JAXBException
Throws:
JAXBException

unmarshal

public T unmarshal(Unmarshaller context,
                   Node n)
            throws JAXBException
Throws:
JAXBException

unmarshal

public T unmarshal(Unmarshaller u,
                   Source in)
            throws JAXBException
Throws:
JAXBException

unmarshal

public T unmarshal(Unmarshaller u,
                   javax.xml.stream.XMLStreamReader in)
            throws JAXBException
Throws:
JAXBException

unmarshal

public final T unmarshal(javax.xml.stream.XMLStreamReader in,
                         AttachmentUnmarshaller au)
                  throws JAXBException
Specified by:
unmarshal in interface XMLBridge<T>
Throws:
JAXBException

unmarshal

public final T unmarshal(javax.xml.stream.XMLStreamReader in)
                  throws JAXBException
Throws:
JAXBException

supportOutputStream

public boolean supportOutputStream()
Description copied from interface: XMLBridge
This can be used to determine whether XMLStreamWriter or OutputStream is prefered by the implementation.

Specified by:
supportOutputStream in interface XMLBridge<T>
Returns:
true if marshall to OutputStream is supported in the implementation.


Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.