public class OMUtils extends Object
Constructor and Description |
---|
OMUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
cleanString(String orig) |
static String |
getAttribute(org.apache.axiom.om.OMElement omElement,
String attrName)
Returns the value of an attribute of an element.
|
static org.apache.axiom.om.OMElement |
getElement(String uri)
todo add validation
|
static InputSource |
getInputSource(org.apache.axiom.om.OMElement element) |
static org.apache.axiom.om.impl.builder.StAXOMBuilder |
getOMBuilder(String strUri) |
static String |
getQualifiedValue(String namespaceURI,
String localPart,
WSDLElement elem) |
static String |
getQualifiedValue(URI namespaceURI,
String localPart,
WSDLElement elem) |
static void |
printAttribute(String name,
String value,
PrintWriter pw) |
static void |
printQualifiedAttribute(String name,
QName value,
WSDLElement elem,
PrintWriter pw) |
public static org.apache.axiom.om.impl.builder.StAXOMBuilder getOMBuilder(String strUri) throws IOException, URISyntaxException, javax.xml.stream.XMLStreamException
strUri
- The URI where the WSDL can be foundIOException
URISyntaxException
javax.xml.stream.XMLStreamException
public static org.apache.axiom.om.OMElement getElement(String uri) throws IOException, URISyntaxException, javax.xml.stream.XMLStreamException
uri
- of the OMDocumentIOException
URISyntaxException
javax.xml.stream.XMLStreamException
public static String getAttribute(org.apache.axiom.om.OMElement omElement, String attrName)
omElement
- Element whose attrib is looked forattrName
- name of attribute to look forpublic static InputSource getInputSource(org.apache.axiom.om.OMElement element)
element
- OMElement which would most probably contain public static String getQualifiedValue(URI namespaceURI, String localPart, WSDLElement elem) throws WSDLException
WSDLException
public static void printAttribute(String name, String value, PrintWriter pw)
public static String getQualifiedValue(String namespaceURI, String localPart, WSDLElement elem) throws WSDLException
WSDLException
public static void printQualifiedAttribute(String name, QName value, WSDLElement elem, PrintWriter pw) throws WSDLException
WSDLException
Copyright © 2005–2013 Apache Software Foundation. All rights reserved.