|
Oracle® WebCenter Content Site Studio for External Applications Java API Reference 11g Release 1 (11.1.1) E17273-03 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.stellent.wcm.common.xml.JAXBSerializer<T>
public abstract class JAXBSerializer<T>
Base class for marshalling/unmarshalling data using the JAXB framework. It is meant to follow a similiar paradigm to the oracle.stellent.wcm.common.xml.AbstractXmlSerializer class.
| Constructor Summary | |
|---|---|
JAXBSerializer() |
|
| Method Summary | |
|---|---|
protected abstract javax.xml.bind.JAXBElement |
coerceFromType(T object)Coerce the input type into a type that can be marshalled. |
protected abstract T |
coerceToType(javax.xml.bind.JAXBElement unmarshalledObject)Coerce the unmarshalled object into the type to return |
protected abstract javax.xml.bind.JAXBContext |
createJAXBContext()Create the JAXBContext object. |
protected javax.xml.bind.Marshaller |
createMarshaller()Create the marshaller from the current jaxb context |
protected javax.xml.bind.Unmarshaller |
createUnmarshaller()Create the unmarshaller from the current context |
javax.xml.bind.JAXBContext |
getContext()The current context; if not set, a call is made to createJAXBContext(). |
protected java.lang.String |
getLocalSchemaLocation() |
javax.xml.validation.Schema |
getSchema() |
protected java.lang.String |
getSchemaLocation() |
T |
readObject(java.io.InputStream inputStream)Deserialize the object from the given XML InputStream |
T |
readObject(java.io.Reader reader)Deserialize the object from the given XML InputStream |
void |
writeObject(T object, java.io.OutputStream outputStream)Serializes the object to the given OutputStream in XML format. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JAXBSerializer()
| Method Detail |
|---|
public javax.xml.bind.JAXBContext getContext()
throws javax.xml.bind.JAXBException
createJAXBContext().javax.xml.bind.JAXBException
public javax.xml.validation.Schema getSchema()
throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void writeObject(T object,
java.io.OutputStream outputStream)
throws javax.xml.bind.JAXBException
object - the object to serializeoutputStream - the outputstream to write the XMLjavax.xml.bind.JAXBException - if an serialization error occurs
public T readObject(java.io.InputStream inputStream)
throws javax.xml.bind.JAXBException
inputStream - the inputstream of XML contentjavax.xml.bind.JAXBException - if an serialization error occurs
public T readObject(java.io.Reader reader)
throws javax.xml.bind.JAXBException
reader - the Reader of XML contentjavax.xml.bind.JAXBException - if an serialization error occurs
protected abstract javax.xml.bind.JAXBContext createJAXBContext()
throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
protected javax.xml.bind.Unmarshaller createUnmarshaller()
throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
protected javax.xml.bind.Marshaller createMarshaller()
throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBExceptionprotected java.lang.String getLocalSchemaLocation()
protected abstract T coerceToType(javax.xml.bind.JAXBElement unmarshalledObject)
unmarshalledObject - the unmarshalled jaxb objectprotected abstract javax.xml.bind.JAXBElement coerceFromType(T object)
object - the input objectprotected java.lang.String getSchemaLocation()
|
Oracle® WebCenter Content Site Studio for External Applications Java API Reference 11g Release 1 (11.1.1) E17273-03 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||