com.sun.xml.ws.spi.db
Class RepeatedElementBridge<T>

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

public class RepeatedElementBridge<T>
extends java.lang.Object
implements XMLBridge<T>

RepeatedElementBridge


Nested Class Summary
static interface RepeatedElementBridge.CollectionHandler
           
 
Constructor Summary
RepeatedElementBridge(TypeInfo typeInfo, XMLBridge xb)
           
 
Method Summary
 RepeatedElementBridge.CollectionHandler collectionHandler()
           
 BindingContext context()
          Gets the BindingContext to which this object belongs.
static RepeatedElementBridge.CollectionHandler create(TypeInfo ti)
           
 TypeInfo getTypeInfo()
          Gets the TypeInfo from which this bridge was created.
 void marshal(T object, org.xml.sax.ContentHandler contentHandler, javax.xml.bind.attachment.AttachmentMarshaller am)
           
 void marshal(T object, org.w3c.dom.Node output)
           
 void marshal(T object, java.io.OutputStream output, javax.xml.namespace.NamespaceContext nsContext, javax.xml.bind.attachment.AttachmentMarshaller am)
           
 void marshal(T object, javax.xml.transform.Result result)
           
 void marshal(T object, javax.xml.stream.XMLStreamWriter output, javax.xml.bind.attachment.AttachmentMarshaller am)
           
 boolean supportOutputStream()
          This can be used to determine whether XMLStreamWriter or OutputStream is prefered by the implementation.
 T unmarshal(java.io.InputStream in)
          Unmarshals the specified type object.
 T unmarshal(org.w3c.dom.Node n, javax.xml.bind.attachment.AttachmentUnmarshaller au)
           
 T unmarshal(javax.xml.transform.Source in, javax.xml.bind.attachment.AttachmentUnmarshaller au)
           
 T unmarshal(javax.xml.stream.XMLStreamReader in, javax.xml.bind.attachment.AttachmentUnmarshaller au)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepeatedElementBridge

public RepeatedElementBridge(TypeInfo typeInfo,
                             XMLBridge xb)
Method Detail

collectionHandler

public RepeatedElementBridge.CollectionHandler collectionHandler()

context

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

Specified by:
context in interface XMLBridge<T>

marshal

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

marshal

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

marshal

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

marshal

public void marshal(T object,
                    org.xml.sax.ContentHandler contentHandler,
                    javax.xml.bind.attachment.AttachmentMarshaller am)
             throws javax.xml.bind.JAXBException
Specified by:
marshal in interface XMLBridge<T>
Throws:
javax.xml.bind.JAXBException

marshal

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

unmarshal

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

unmarshal

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

unmarshal

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

unmarshal

public T unmarshal(org.w3c.dom.Node n,
                   javax.xml.bind.attachment.AttachmentUnmarshaller au)
            throws javax.xml.bind.JAXBException
Specified by:
unmarshal in interface XMLBridge<T>
Throws:
javax.xml.bind.JAXBException

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>

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.

create

public static RepeatedElementBridge.CollectionHandler create(TypeInfo ti)


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