|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.ws.soap.axiom.support.AxiomUtils
public abstract class AxiomUtils
Collection of generic utility methods to work with Axiom. Includes conversion from OMNamespace
s to
QName
s.
OMNamespace
,
QName
Constructor Summary | |
---|---|
AxiomUtils()
|
Method Summary | |
---|---|
static void |
removeContents(OMContainer container)
Removes the contents (i.e. children) of the container. |
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 OMNamespace |
toNamespace(QName qName,
OMElement resolveElement)
Converts a javax.xml.namespace.QName to a org.apache.axiom.om.OMNamespace . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AxiomUtils()
Method Detail |
---|
public static OMNamespace toNamespace(QName qName, OMElement resolveElement) throws 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 Q
OMException
- if conversion is unsuccessful
IllegalArgumentException
- if qName
is not fully qualifiedpublic static String toLanguage(Locale locale)
xml:lang
string, as used in Axiom Faults.
locale
- the locale
public static Locale toLocale(String language)
xml:lang
string, as used in Axiom Faults.
language
- the language string
public static void removeContents(OMContainer container)
|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |