Package oracle.bpel.services.common.util
Class JaxbUtil
java.lang.Object
oracle.bpel.services.common.util.JaxbUtil
- Since:
- release specific (what release of product did this appear in)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Objectclone(Serializable value) Clone a (serializable JAXB) object.static MapgetNamespaceDeclaration(oracle.xml.jaxb.JaxbNode node) Get the namespaces defined at a particular JAXB nodestatic StringgetValidationEventMessage(javax.xml.bind.ValidationEvent e) Get the string message for a ValidationEventstatic voidsetNamespaceDeclaration(oracle.xml.jaxb.JaxbNode node, String prefix, String uri) Set namespace declaration in this JaxbNodestatic voidsetNamespaceDeclaration(oracle.xml.jaxb.JaxbNode node, Map namespaceMap) Set namespace declaration in this JaxbNodestatic ObjectunmarshallJAXBFromElem(Element elem, String jaxbContextPath) Deprecated.Use context-path specific AbstractJaxbUtil implementation insteadstatic ObjectunmarshallJAXBFromElem(Element elem, String tagName, String jaxbContextPath) Deprecated.Use context-path specific AbstractJaxbUtil implementation insteadstatic ObjectunmarshallJAXBFromElem(Element elem, String tagName, String namespace, String jaxbContextPath) Deprecated.Use context-path specific AbstractJaxbUtil implementation instead
-
Field Details
-
XML_V2_NS
- See Also:
-
-
Constructor Details
-
JaxbUtil
public JaxbUtil()
-
-
Method Details
-
getNamespaceDeclaration
public static Map getNamespaceDeclaration(oracle.xml.jaxb.JaxbNode node) throws javax.xml.bind.JAXBException Get the namespaces defined at a particular JAXB node- Parameters:
node- aJaxbNodenode- Returns:
- a
Mapcontaining the namespaces declared - Throws:
javax.xml.bind.JAXBException- if an error occurs
-
setNamespaceDeclaration
public static void setNamespaceDeclaration(oracle.xml.jaxb.JaxbNode node, String prefix, String uri) throws javax.xml.bind.JAXBException Set namespace declaration in this JaxbNode- Parameters:
node- aJaxbNodenodeprefix- The namespace prefixuri- The namespace URI- Throws:
javax.xml.bind.JAXBException- if an error occurs
-
setNamespaceDeclaration
public static void setNamespaceDeclaration(oracle.xml.jaxb.JaxbNode node, Map namespaceMap) throws javax.xml.bind.JAXBException Set namespace declaration in this JaxbNode- Parameters:
node- aJaxbNodenodenamespaceMap- 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
Get the string message for a ValidationEvent- Parameters:
e- A ValidationEvent value- Returns:
- String The string message for a ValidationEvent
-
unmarshallJAXBFromElem
public static Object unmarshallJAXBFromElem(Element elem, String jaxbContextPath) throws javax.xml.bind.JAXBException Deprecated.Use context-path specific AbstractJaxbUtil implementation insteadCreates a JAXB representation of the org.w3c.dom.Element.- Parameters:
elem- org.w3c.dom.Element containining an Element to unmarshalljaxbContextPath- path to Package containing appropriate JAXB classes that represent the Element- Throws:
Exceptionjavax.xml.bind.JAXBException
-
unmarshallJAXBFromElem
public static Object unmarshallJAXBFromElem(Element elem, String tagName, String jaxbContextPath) throws javax.xml.bind.JAXBException Deprecated.Use context-path specific AbstractJaxbUtil implementation insteadCreates 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 unmarshalltagName- String identifying ElementjaxbContextPath- 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:
Exceptionjavax.xml.bind.JAXBException
-
unmarshallJAXBFromElem
public static Object unmarshallJAXBFromElem(Element elem, String tagName, String namespace, String jaxbContextPath) throws javax.xml.bind.JAXBException Deprecated.Use context-path specific AbstractJaxbUtil implementation insteadCreates 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 unmarshalltagName- String identifying Elementnamespace- String namespace of Element (ifnull, lookup will be by tagName onlyjaxbContextPath- 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:
Exceptionjavax.xml.bind.JAXBException
-
clone
Clone a (serializable JAXB) object.- Parameters:
value- A serializable (JAXB) object- Returns:
- A clone (deep-copy) of the object
- Throws:
Exception- In the case of a serialization/deserialization error
-