| Constructor and Description |
|---|
AxiomUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
removeContents(org.apache.axiom.om.OMContainer container)
Removes the contents (i.e.
|
static Document |
toDocument(org.apache.axiom.soap.SOAPEnvelope envelope)
Converts a given AXIOM
SOAPEnvelope to a Document. |
static org.apache.axiom.soap.SOAPEnvelope |
toEnvelope(Document document)
Converts a given
Document to an AXIOM SOAPEnvelope. |
static String |
toLanguage(Locale locale)
Converts the given locale to a
xml:lang string, as used in Axiom Faults. |
static Locale |
toLocale(String language)
Converts the given locale to a
xml:lang string, as used in Axiom Faults. |
static org.apache.axiom.om.OMNamespace |
toNamespace(QName qName,
org.apache.axiom.om.OMElement resolveElement)
Converts a
javax.xml.namespace.QName to a org.apache.axiom.om.OMNamespace. |
public static org.apache.axiom.om.OMNamespace toNamespace(QName qName, org.apache.axiom.om.OMElement resolveElement) throws org.apache.axiom.om.OMException
javax.xml.namespace.QName to a org.apache.axiom.om.OMNamespace. A
OMElement is used to resolve the namespace, or to declare a new one.qName - the QName to convertresolveElement - the element used to resolve the Qorg.apache.axiom.om.OMException - if conversion is unsuccessfulIllegalArgumentException - if qName is not fully qualifiedpublic static String toLanguage(Locale locale)
xml:lang string, as used in Axiom Faults.locale - the localepublic static Locale toLocale(String language)
xml:lang string, as used in Axiom Faults.language - the language stringpublic static void removeContents(org.apache.axiom.om.OMContainer container)
public static Document toDocument(org.apache.axiom.soap.SOAPEnvelope envelope)
SOAPEnvelope to a Document.envelope - the SOAP envelope to be convertedIllegalArgumentException - in case of errorspublic static org.apache.axiom.soap.SOAPEnvelope toEnvelope(Document document)
Document to an AXIOM SOAPEnvelope.document - the document to be convertedIllegalArgumentException - in case of errors