public class JaxbUtil
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
XML_V2_NS |
| Constructor and Description |
|---|
JaxbUtil() |
| Modifier and Type | Method and Description |
|---|---|
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
|
public static final java.lang.String XML_V2_NS
public static java.util.Map getNamespaceDeclaration(oracle.xml.jaxb.JaxbNode node)
throws javax.xml.bind.JAXBException
node - a JaxbNode nodeMap containing the namespaces declaredjavax.xml.bind.JAXBException - if an error occurs
public static void setNamespaceDeclaration(oracle.xml.jaxb.JaxbNode node,
java.lang.String prefix,
java.lang.String uri)
throws javax.xml.bind.JAXBException
node - a JaxbNode nodeprefix - The namespace prefixuri - The namespace URIjavax.xml.bind.JAXBException - if an error occurs
public static void setNamespaceDeclaration(oracle.xml.jaxb.JaxbNode node,
java.util.Map namespaceMap)
throws javax.xml.bind.JAXBException
node - a JaxbNode nodenamespaceMap - Map containing namespace declaration. The key should be just the prefix and the value should be the namespace URIjavax.xml.bind.JAXBException - if an error occurspublic static java.lang.String getValidationEventMessage(javax.xml.bind.ValidationEvent e)
e - A ValidationEvent value
public static java.lang.Object unmarshallJAXBFromElem(org.w3c.dom.Element elem,
java.lang.String jaxbContextPath)
throws javax.xml.bind.JAXBException
elem - org.w3c.dom.Element containining an Element to unmarshalljaxbContextPath - path to Package containing appropriate JAXB classes that represent the Elementjava.lang.Exceptionjavax.xml.bind.JAXBException
public static java.lang.Object unmarshallJAXBFromElem(org.w3c.dom.Element elem,
java.lang.String tagName,
java.lang.String jaxbContextPath)
throws javax.xml.bind.JAXBException
elem - org.w3c.dom.Element containining an Element to unmarshalltagName - String identifying ElementjaxbContextPath - path to Package containing appropriate JAXB classes that represent the Elementjava.lang.Exceptionjavax.xml.bind.JAXBException
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
elem - org.w3c.dom.Element containining an Element to unmarshalltagName - String identifying Elementnamespace - String namespace of Element (if null, lookup will be by tagName onlyjaxbContextPath - path to Package containing appropriate JAXB classes that represent the Elementjava.lang.Exceptionjavax.xml.bind.JAXBException
public static java.lang.Object clone(java.io.Serializable value)
throws java.lang.Exception
value - A serializable (JAXB) objectjava.lang.Exception - In the case of a serialization/deserialization error