|
Oracle Fusion Middleware Java API Reference for Oracle BPM Suite 11g Release 1 (11.1.1.7.0) E25378-07 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.bpel.services.common.util.AbstractJaxbUtil
public abstract class AbstractJaxbUtil
Constructor Summary | |
---|---|
AbstractJaxbUtil()
|
Method Summary | |
---|---|
java.lang.Object |
cloneObject(org.w3c.dom.Element element)
Clone the jaxb object element |
java.lang.Object |
cloneObject(java.lang.Object t)
Clone the jaxb object |
static java.net.URL |
createURL(java.lang.String urlString)
Creates an URL object from the specified urlString |
java.lang.String |
getAbsoluteSchemaLocation()
Returns absolute file path of the schema file |
java.lang.ClassLoader |
getClassLoader()
Gets the current thread context ClassLoader |
abstract java.lang.String |
getJaxbContextString()
Get the Jaxb Context String |
abstract java.lang.String |
getSchemaLocation()
Get the XSD location. |
javax.xml.bind.ValidationEvent[] |
getSchemaValidationErrors(java.lang.Object obj)
Get the obj schema validation errors |
byte[] |
marshal(java.lang.Object obj)
Write an object to a UTF-8 encoded byte array |
void |
marshal(java.lang.Object obj,
java.io.OutputStream os)
Write a object to an output stream |
void |
marshal(java.lang.Object obj,
java.lang.String outputXMLLocation)
Write a object to an XML file |
boolean |
schemaValidate(java.lang.Object obj)
Validate obj against its schema |
org.w3c.dom.Element |
toElement(java.lang.Object t)
Get the element from the JAXB object |
java.lang.String |
toString(java.lang.Object t)
Get a string verion of the obj |
java.lang.Object |
unmarshal(byte[] data)
Unmarshals a JAXB 1.0 object from a byte array. |
java.lang.Object |
unmarshal(java.io.InputStream inputStream)
Unmarshal an input stream to a object |
java.lang.Object |
unmarshal(org.w3c.dom.Node node)
Unmarshal xml node in specified file to a object |
java.lang.Object |
unmarshal(java.lang.String xmlURI)
Unmarshal xml in specified file to a object |
java.lang.Object |
unmarshal(java.net.URL xmlURL)
Unmarshal xml in specified file to a object |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractJaxbUtil()
Method Detail |
---|
public abstract java.lang.String getJaxbContextString()
String
valuepublic abstract java.lang.String getSchemaLocation()
String
valuepublic java.lang.Object unmarshal(java.lang.String xmlURI) throws javax.xml.bind.JAXBException, java.io.IOException
xmlURI
- The URI of XML file
javax.xml.bind.JAXBException
- if an error occurs
java.io.IOException
- if an error occurspublic java.lang.Object unmarshal(java.net.URL xmlURL) throws javax.xml.bind.JAXBException, java.io.IOException
xmlURL
- The URL of XML file
javax.xml.bind.JAXBException
- if an error occurs
java.io.IOException
- if an error occurspublic java.lang.Object unmarshal(java.io.InputStream inputStream) throws javax.xml.bind.JAXBException, java.io.IOException
inputStream
- The input stream
javax.xml.bind.JAXBException
- if an error occurs
java.io.IOException
- if an error occurspublic java.lang.Object unmarshal(byte[] data) throws javax.xml.bind.JAXBException, java.io.IOException
data
- byte[] containing the JAXB 1.0 object
javax.xml.bind.JAXBException
java.io.IOException
public java.lang.Object unmarshal(org.w3c.dom.Node node) throws javax.xml.bind.JAXBException, java.io.IOException
node
- The node
javax.xml.bind.JAXBException
- if an error occurs
java.io.IOException
- if an error occurspublic void marshal(java.lang.Object obj, java.lang.String outputXMLLocation) throws javax.xml.bind.JAXBException, java.io.IOException
obj
- The objectoutputXMLLocation
- The file location to write the XML
javax.xml.bind.JAXBException
- if an error occurs
java.io.IOException
- if an error occurspublic void marshal(java.lang.Object obj, java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
obj
- The objectos
- The output stream
javax.xml.bind.JAXBException
- if an error occurs
java.io.IOException
- if an error occurspublic byte[] marshal(java.lang.Object obj) throws javax.xml.bind.JAXBException, java.io.IOException
obj
- the JAXB 1.0 object to marshall
javax.xml.bind.JAXBException
java.io.IOException
public boolean schemaValidate(java.lang.Object obj) throws javax.xml.bind.JAXBException
obj
- The object
javax.xml.bind.JAXBException
- if an error occurspublic javax.xml.bind.ValidationEvent[] getSchemaValidationErrors(java.lang.Object obj) throws javax.xml.bind.JAXBException
obj
- The JAXB object
javax.xml.bind.JAXBException
- if an error occurspublic java.lang.String toString(java.lang.Object t)
t
- a Object
value of type oracle.xml.jaxb.JaxbNode
String
valuepublic org.w3c.dom.Element toElement(java.lang.Object t)
t
- a Object
value of type oracle.xml.jaxb.JaxbNode
Element
valuepublic java.lang.String getAbsoluteSchemaLocation()
public java.lang.ClassLoader getClassLoader()
ClassLoader
valuepublic static java.net.URL createURL(java.lang.String urlString) throws java.io.IOException
urlString
- a String
value
URL
value
java.io.IOException
- if an error occurspublic java.lang.Object cloneObject(java.lang.Object t) throws java.lang.Exception
t
- an Object
value of type oracle.xml.jaxb.JaxbNode
Object
value
java.lang.Exception
- if an error occurspublic java.lang.Object cloneObject(org.w3c.dom.Element element) throws java.lang.Exception
element
- an Element
value
Object
value
java.lang.Exception
- if an error occurs
|
Oracle Fusion Middleware Java API Reference for Oracle BPM Suite 11g Release 1 (11.1.1.7.0) E25378-07 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |