Class WrapperBridge<T>

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

public class WrapperBridge<T> extends Object implements XMLBridge<T>
  • Constructor Details

    • WrapperBridge

      public WrapperBridge(com.sun.xml.ws.db.glassfish.JAXBRIContextWrapper p, org.glassfish.jaxb.runtime.api.Bridge<T> b)
  • Method Details

    • context

      public BindingContext context()
      Description copied from interface: XMLBridge
      Gets the BindingContext to which this object belongs.
      Specified by:
      context in interface XMLBridge<T>
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • 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 final void marshal(T object, ContentHandler contentHandler, jakarta.xml.bind.attachment.AttachmentMarshaller am) throws jakarta.xml.bind.JAXBException
      Specified by:
      marshal in interface XMLBridge<T>
      Throws:
      jakarta.xml.bind.JAXBException
    • marshal

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

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

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

      public final void marshal(T object, XMLStreamWriter output, jakarta.xml.bind.attachment.AttachmentMarshaller am) throws jakarta.xml.bind.JAXBException
      Specified by:
      marshal in interface XMLBridge<T>
      Throws:
      jakarta.xml.bind.JAXBException
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • unmarshal

      public final T unmarshal(InputStream in) throws jakarta.xml.bind.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:
      jakarta.xml.bind.JAXBException - if there was an error while unmarshalling.
    • unmarshal

      public final T unmarshal(Node n, jakarta.xml.bind.attachment.AttachmentUnmarshaller au) throws jakarta.xml.bind.JAXBException
      Specified by:
      unmarshal in interface XMLBridge<T>
      Throws:
      jakarta.xml.bind.JAXBException
    • unmarshal

      public final T unmarshal(Source in, jakarta.xml.bind.attachment.AttachmentUnmarshaller au) throws jakarta.xml.bind.JAXBException
      Specified by:
      unmarshal in interface XMLBridge<T>
      Throws:
      jakarta.xml.bind.JAXBException
    • unmarshal

      public final T unmarshal(XMLStreamReader in, jakarta.xml.bind.attachment.AttachmentUnmarshaller au) throws jakarta.xml.bind.JAXBException
      Specified by:
      unmarshal in interface XMLBridge<T>
      Throws:
      jakarta.xml.bind.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.