com.sun.xml.ws.spi.db
Class RepeatedElementBridge<T>
java.lang.Object
com.sun.xml.ws.spi.db.RepeatedElementBridge<T>
- All Implemented Interfaces:
- XMLBridge<T>
public class RepeatedElementBridge<T>
- extends Object
- implements XMLBridge<T>
RepeatedElementBridge
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,
ContentHandler contentHandler,
AttachmentMarshaller am)
|
void |
marshal(T object,
Node output)
|
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,
AttachmentMarshaller am)
|
boolean |
supportOutputStream()
This can be used to determine whether XMLStreamWriter or OutputStream is
prefered by the implementation. |
T |
unmarshal(InputStream in)
Unmarshals the specified type object. |
T |
unmarshal(Node n,
AttachmentUnmarshaller au)
|
T |
unmarshal(Source in,
AttachmentUnmarshaller au)
|
T |
unmarshal(javax.xml.stream.XMLStreamReader in,
AttachmentUnmarshaller au)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
delegate
XMLBridge<T> delegate
collectionHandler
RepeatedElementBridge.CollectionHandler collectionHandler
ListHandler
static final RepeatedElementBridge.CollectionHandler ListHandler
HashSetHandler
static final RepeatedElementBridge.CollectionHandler HashSetHandler
RepeatedElementBridge
public RepeatedElementBridge(TypeInfo typeInfo,
XMLBridge xb)
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,
AttachmentMarshaller am)
throws JAXBException
- Specified by:
marshal
in interface XMLBridge<T>
- Throws:
JAXBException
- if there was an error while marshalling.
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,
Node output)
throws JAXBException
- Specified by:
marshal
in interface XMLBridge<T>
- Throws:
JAXBException
marshal
public 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,
Result result)
throws JAXBException
- Specified by:
marshal
in interface XMLBridge<T>
- Throws:
JAXBException
unmarshal
public T unmarshal(javax.xml.stream.XMLStreamReader in,
AttachmentUnmarshaller au)
throws JAXBException
- Specified by:
unmarshal
in interface XMLBridge<T>
- Throws:
JAXBException
unmarshal
public T unmarshal(Source in,
AttachmentUnmarshaller au)
throws JAXBException
- Specified by:
unmarshal
in interface XMLBridge<T>
- Throws:
JAXBException
unmarshal
public 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 T unmarshal(Node n,
AttachmentUnmarshaller au)
throws JAXBException
- Specified by:
unmarshal
in interface XMLBridge<T>
- Throws:
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.