org.plasma.common.bind
Class DataBindingSupport
java.lang.Object
org.plasma.common.bind.DataBindingSupport
- Direct Known Subclasses:
- NonValidatingUnmarshaler, ValidatingUnmarshaler
public class DataBindingSupport
- extends java.lang.Object
|
Field Summary |
protected javax.xml.bind.JAXBContext |
context
|
|
Method Summary |
java.lang.String |
marshal(java.lang.Object root)
|
void |
marshal(java.lang.Object root,
java.io.OutputStream stream)
|
void |
marshal(java.lang.Object root,
java.io.OutputStream stream,
boolean formattedOutput)
|
java.lang.Object |
unmarshal(java.io.InputStream stream)
|
java.lang.Object |
unmarshal(java.io.Reader reader)
|
java.lang.Object |
unmarshal(javax.xml.transform.Source source)
|
java.lang.Object |
unmarshal(java.lang.String xml)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
context
protected javax.xml.bind.JAXBContext context
DataBindingSupport
public DataBindingSupport(javax.xml.bind.JAXBContext context)
marshal
public java.lang.String marshal(java.lang.Object root)
throws javax.xml.bind.JAXBException
- Throws:
javax.xml.bind.JAXBException
marshal
public void marshal(java.lang.Object root,
java.io.OutputStream stream)
throws javax.xml.bind.JAXBException
- Throws:
javax.xml.bind.JAXBException
marshal
public void marshal(java.lang.Object root,
java.io.OutputStream stream,
boolean formattedOutput)
throws javax.xml.bind.JAXBException
- Throws:
javax.xml.bind.JAXBException
unmarshal
public java.lang.Object unmarshal(java.lang.String xml)
throws javax.xml.bind.JAXBException
- Throws:
javax.xml.bind.JAXBException
unmarshal
public java.lang.Object unmarshal(java.io.Reader reader)
throws javax.xml.bind.JAXBException
- Throws:
javax.xml.bind.JAXBException
unmarshal
public java.lang.Object unmarshal(javax.xml.transform.Source source)
throws javax.xml.bind.JAXBException
- Throws:
javax.xml.bind.JAXBException
unmarshal
public java.lang.Object unmarshal(java.io.InputStream stream)
throws javax.xml.bind.JAXBException
- Throws:
javax.xml.bind.JAXBException
Copyright © 2013. All Rights Reserved.