Skip navigation links

Oracle Fusion Middleware
Java API Reference for Oracle BPM Suite
11g Release 1 (11.1.1.6.3)
E25378-06


oracle.bpel.services.common.util
Class JaxbUtil

java.lang.Object
  extended by oracle.bpel.services.common.util.JaxbUtil


public class JaxbUtil
extends java.lang.Object
Since:
release specific (what release of product did this appear in)

Field Summary
static java.lang.String XML_V2_NS
           

 

Constructor Summary
JaxbUtil()
           

 

Method Summary
static java.lang.Object clone(java.io.Serializable value)
          Clone a (serializable JAXB) object.
static java.util.Map getNamespaceDeclaration(oracle.xml.jaxb.JaxbNode node)
          Get the namespaces defined at a particular JAXB node
static java.lang.String getValidationEventMessage(javax.xml.bind.ValidationEvent e)
          Get the string message for a ValidationEvent
static void setNamespaceDeclaration(oracle.xml.jaxb.JaxbNode node, java.util.Map namespaceMap)
          Set namespace declaration in this JaxbNode
static void setNamespaceDeclaration(oracle.xml.jaxb.JaxbNode node, java.lang.String prefix, java.lang.String uri)
          Set namespace declaration in this JaxbNode
static java.lang.Object unmarshallJAXBFromElem(org.w3c.dom.Element elem, java.lang.String jaxbContextPath)
          Deprecated. Use context-path specific AbstractJaxbUtil implementation instead
static java.lang.Object unmarshallJAXBFromElem(org.w3c.dom.Element elem, java.lang.String tagName, java.lang.String jaxbContextPath)
          Deprecated. Use context-path specific AbstractJaxbUtil implementation instead
static java.lang.Object unmarshallJAXBFromElem(org.w3c.dom.Element elem, java.lang.String tagName, java.lang.String namespace, java.lang.String jaxbContextPath)
          Deprecated. Use context-path specific AbstractJaxbUtil implementation instead

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

XML_V2_NS

public static final java.lang.String XML_V2_NS
See Also:
Constant Field Values

Constructor Detail

JaxbUtil

public JaxbUtil()

Method Detail

getNamespaceDeclaration

public static java.util.Map getNamespaceDeclaration(oracle.xml.jaxb.JaxbNode node)
                                             throws javax.xml.bind.JAXBException
Get the namespaces defined at a particular JAXB node
Parameters:
node - a JaxbNode node
Returns:
a Map containing the namespaces declared
Throws:
javax.xml.bind.JAXBException - if an error occurs

setNamespaceDeclaration

public static void setNamespaceDeclaration(oracle.xml.jaxb.JaxbNode node,
                                           java.lang.String prefix,
                                           java.lang.String uri)
                                    throws javax.xml.bind.JAXBException
Set namespace declaration in this JaxbNode
Parameters:
node - a JaxbNode node
prefix - The namespace prefix
uri - The namespace URI
Throws:
javax.xml.bind.JAXBException - if an error occurs

setNamespaceDeclaration

public static void setNamespaceDeclaration(oracle.xml.jaxb.JaxbNode node,
                                           java.util.Map namespaceMap)
                                    throws javax.xml.bind.JAXBException
Set namespace declaration in this JaxbNode
Parameters:
node - a JaxbNode node
namespaceMap - Map containing namespace declaration. The key should be just the prefix and the value should be the namespace URI
Throws:
javax.xml.bind.JAXBException - if an error occurs

getValidationEventMessage

public static java.lang.String getValidationEventMessage(javax.xml.bind.ValidationEvent e)
Get the string message for a ValidationEvent
Parameters:
e - A ValidationEvent value
Returns:
String The string message for a ValidationEvent

unmarshallJAXBFromElem

public static java.lang.Object unmarshallJAXBFromElem(org.w3c.dom.Element elem,
                                                      java.lang.String jaxbContextPath)
                                               throws javax.xml.bind.JAXBException
Deprecated. Use context-path specific AbstractJaxbUtil implementation instead
Creates a JAXB representation of the org.w3c.dom.Element.
Parameters:
elem - org.w3c.dom.Element containining an Element to unmarshall
jaxbContextPath - path to Package containing appropriate JAXB classes that represent the Element
Throws:
java.lang.Exception
javax.xml.bind.JAXBException

unmarshallJAXBFromElem

public static java.lang.Object unmarshallJAXBFromElem(org.w3c.dom.Element elem,
                                                      java.lang.String tagName,
                                                      java.lang.String jaxbContextPath)
                                               throws javax.xml.bind.JAXBException
Deprecated. Use context-path specific AbstractJaxbUtil implementation instead
Creates a JAXB representation of the org.w3c.dom.Element identified by tagName and element, located within the Element passed.
Parameters:
elem - org.w3c.dom.Element containining an Element to unmarshall
tagName - String identifying Element
jaxbContextPath - path to Package containing appropriate JAXB classes that represent the Element
Returns:
Object JAXB representation of object. Null if Element contains zero or many Elements matching tagName
Throws:
java.lang.Exception
javax.xml.bind.JAXBException

unmarshallJAXBFromElem

public static java.lang.Object unmarshallJAXBFromElem(org.w3c.dom.Element elem,
                                                      java.lang.String tagName,
                                                      java.lang.String namespace,
                                                      java.lang.String jaxbContextPath)
                                               throws javax.xml.bind.JAXBException
Deprecated. Use context-path specific AbstractJaxbUtil implementation instead
Creates a JAXB representation of the org.w3c.dom.Element identified by tagName and element, located within the Element passed.
Parameters:
elem - org.w3c.dom.Element containining an Element to unmarshall
tagName - String identifying Element
namespace - String namespace of Element (if null, lookup will be by tagName only
jaxbContextPath - path to Package containing appropriate JAXB classes that represent the Element
Returns:
Object JAXB representation of object. Null if Element contains zero or many Elements matching tagName and namespace
Throws:
java.lang.Exception
javax.xml.bind.JAXBException

clone

public static java.lang.Object clone(java.io.Serializable value)
                              throws java.lang.Exception
Clone a (serializable JAXB) object.
Parameters:
value - A serializable (JAXB) object
Returns:
A clone (deep-copy) of the object
Throws:
java.lang.Exception - In the case of a serialization/deserialization error

Skip navigation links

Oracle Fusion Middleware
Java API Reference for Oracle BPM Suite
11g Release 1 (11.1.1.6.3)
E25378-06


Copyright © 2009, 2011, Oracle and/or its affiliates. All rights reserved.