com.sun.xml.ws.db.glassfish
Class MarshallerBridge

java.lang.Object
  extended by com.sun.xml.bind.api.Bridge
      extended by com.sun.xml.ws.db.glassfish.MarshallerBridge
All Implemented Interfaces:
XMLBridge

public class MarshallerBridge
extends com.sun.xml.bind.api.Bridge
implements XMLBridge


Field Summary
 
Fields inherited from class com.sun.xml.bind.api.Bridge
context
 
Constructor Summary
protected MarshallerBridge(com.sun.xml.bind.v2.runtime.JAXBContextImpl context)
           
 
Method Summary
 BindingContext context()
          Gets the BindingContext to which this object belongs.
 TypeInfo getTypeInfo()
          Gets the TypeInfo from which this bridge was created.
 com.sun.xml.bind.api.TypeReference getTypeReference()
           
 void marshal(Marshaller m, Object object, ContentHandler contentHandler)
           
 void marshal(Marshaller m, Object object, Node output)
           
 void marshal(Marshaller m, Object object, OutputStream output, NamespaceContext nsContext)
           
 void marshal(Marshaller m, Object object, Result result)
           
 void marshal(Marshaller m, Object object, javax.xml.stream.XMLStreamWriter output)
           
 boolean supportOutputStream()
          This can be used to determine whether XMLStreamWriter or OutputStream is prefered by the implementation.
 Object unmarshal(Unmarshaller u, InputStream in)
           
 Object unmarshal(Unmarshaller u, Node n)
           
 Object unmarshal(Unmarshaller u, Source in)
           
 Object unmarshal(Unmarshaller u, javax.xml.stream.XMLStreamReader in)
           
 
Methods inherited from class com.sun.xml.bind.api.Bridge
getContext, 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
 
Methods inherited from interface com.sun.xml.ws.spi.db.XMLBridge
marshal, marshal, marshal, marshal, marshal, unmarshal, unmarshal, unmarshal, unmarshal
 

Constructor Detail

MarshallerBridge

protected MarshallerBridge(com.sun.xml.bind.v2.runtime.JAXBContextImpl context)
Method Detail

marshal

public void marshal(Marshaller m,
                    Object object,
                    javax.xml.stream.XMLStreamWriter output)
             throws JAXBException
Specified by:
marshal in class com.sun.xml.bind.api.Bridge
Throws:
JAXBException

marshal

public void marshal(Marshaller m,
                    Object object,
                    OutputStream output,
                    NamespaceContext nsContext)
             throws JAXBException
Specified by:
marshal in class com.sun.xml.bind.api.Bridge
Throws:
JAXBException

marshal

public void marshal(Marshaller m,
                    Object object,
                    Node output)
             throws JAXBException
Specified by:
marshal in class com.sun.xml.bind.api.Bridge
Throws:
JAXBException

marshal

public void marshal(Marshaller m,
                    Object object,
                    ContentHandler contentHandler)
             throws JAXBException
Specified by:
marshal in class com.sun.xml.bind.api.Bridge
Throws:
JAXBException

marshal

public void marshal(Marshaller m,
                    Object object,
                    Result result)
             throws JAXBException
Specified by:
marshal in class com.sun.xml.bind.api.Bridge
Throws:
JAXBException

unmarshal

public Object unmarshal(Unmarshaller u,
                        javax.xml.stream.XMLStreamReader in)
Specified by:
unmarshal in class com.sun.xml.bind.api.Bridge

unmarshal

public Object unmarshal(Unmarshaller u,
                        Source in)
Specified by:
unmarshal in class com.sun.xml.bind.api.Bridge

unmarshal

public Object unmarshal(Unmarshaller u,
                        InputStream in)
Specified by:
unmarshal in class com.sun.xml.bind.api.Bridge

unmarshal

public Object unmarshal(Unmarshaller u,
                        Node n)
Specified by:
unmarshal in class com.sun.xml.bind.api.Bridge

getTypeInfo

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

Specified by:
getTypeInfo in interface XMLBridge

getTypeReference

public com.sun.xml.bind.api.TypeReference getTypeReference()
Specified by:
getTypeReference in class com.sun.xml.bind.api.Bridge

context

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

Specified by:
context in interface XMLBridge

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
Returns:
true if marshall to OutputStream is supported in the implementation.


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