|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.airavata.common.utils.XMLUtil
public class XMLUtil
| Field Summary | |
|---|---|
static org.xmlpull.infoset.XmlInfosetBuilder |
BUILDER
The XML builder for XPP5 |
static org.xmlpull.v1.builder.XmlInfosetBuilder |
BUILDER3
The XML builder for XPP3. |
| Constructor Summary | |
|---|---|
XMLUtil()
|
|
| Method Summary | |
|---|---|
static org.xmlpull.infoset.XmlNamespace |
declareNamespace(String prefixCandidate,
String uri,
boolean alwaysUseSuffix,
org.xmlpull.infoset.XmlElement element)
|
static org.xmlpull.infoset.XmlNamespace |
declareNamespaceIfNecessary(String prefixCandidate,
String uri,
boolean alwaysUseSuffix,
org.xmlpull.infoset.XmlElement element)
|
static org.xmlpull.infoset.XmlElement |
deepClone(org.xmlpull.infoset.XmlElement element)
|
static String |
getLocalPartOfQName(String qname)
Returns the local part of a specified QName. |
static String |
getPrefixOfQName(String qname)
Returns the prefix of a specified QName. |
static boolean |
isEqual(org.xmlpull.infoset.XmlElement elem1,
org.xmlpull.infoset.XmlElement elem2)
|
static boolean |
isXML(String string)
|
static org.xmlpull.infoset.XmlElement |
loadXML(File file)
|
static void |
removeElements(org.xmlpull.infoset.XmlElement xml,
String name)
|
static Document |
retrievalXMLDocForParse(String url)
|
static Document |
retrievalXMLDocFromUrl(String url)
|
static void |
saveXML(org.xmlpull.infoset.XmlElement element,
File file)
Saves a specified XmlElement to a specified file. |
static void |
saveXML(org.xmlpull.v1.builder.XmlElement element,
File file)
Saves a specified XmlElement to a specified file. |
static org.xmlpull.infoset.XmlElement |
stringToXmlElement(String string)
Parses a specified string and returns the XmlElement (XPP5). |
static org.xmlpull.v1.builder.XmlElement |
stringToXmlElement3(String string)
Parses a specified string and returns the XmlElement (XPP3). |
static void |
validate(org.apache.xmlbeans.XmlObject xmlObject)
Validates a specified XmlObject along with logging errors if any. |
static xsul5.wsdl.WsdlDefinitions |
wsdlDefinitions3ToWsdlDefintions5(xsul.wsdl.WsdlDefinitions definitions3)
Deprecated. |
static xsul.wsdl.WsdlDefinitions |
wsdlDefinitions5ToWsdlDefintions3(xsul5.wsdl.WsdlDefinitions definitions5)
Deprecated. |
static org.xmlpull.infoset.XmlElement |
xmlElement3ToXmlElement5(org.xmlpull.v1.builder.XmlElement element)
Converts a specified XmlElement (XPP3) to the XmlElement (XPP5). |
static org.xmlpull.v1.builder.XmlElement |
xmlElement5ToXmlElement3(org.xmlpull.infoset.XmlElement element)
Converts a specified XmlElement (XPP5) to the XmlElement (XPP3). |
static String |
xmlElementToString(org.xmlpull.v1.builder.XmlElement element)
Returns the XML string of a specified XmlElement. |
static String |
xmlElementToString(org.xmlpull.infoset.XmlElement element)
Returns the XML string as a specified XmlElement (XPP5). |
static Element |
xppElementToDomElement(org.xmlpull.infoset.XmlElement xppElement,
Document document)
Converts a specified XPP5 XML element to a DOM element under a specified document. |
static Element |
xppElementToDomElement(org.xmlpull.v1.builder.XmlElement xppElement,
Document document)
Converts a specified XPP3 XML element to a DOM element under a specified document. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final org.xmlpull.infoset.XmlInfosetBuilder BUILDER
public static final org.xmlpull.v1.builder.XmlInfosetBuilder BUILDER3
| Constructor Detail |
|---|
public XMLUtil()
| Method Detail |
|---|
public static org.xmlpull.v1.builder.XmlElement stringToXmlElement3(String string)
string -
public static org.xmlpull.infoset.XmlElement stringToXmlElement(String string)
string -
public static org.xmlpull.infoset.XmlElement xmlElement3ToXmlElement5(org.xmlpull.v1.builder.XmlElement element)
element -
public static org.xmlpull.v1.builder.XmlElement xmlElement5ToXmlElement3(org.xmlpull.infoset.XmlElement element)
element -
public static String xmlElementToString(org.xmlpull.v1.builder.XmlElement element)
element - The specified XmlElement
public static String xmlElementToString(org.xmlpull.infoset.XmlElement element)
element - The specified XmlElement
public static Element xppElementToDomElement(org.xmlpull.infoset.XmlElement xppElement,
Document document)
xppElement - document -
@Deprecated public static xsul5.wsdl.WsdlDefinitions wsdlDefinitions3ToWsdlDefintions5(xsul.wsdl.WsdlDefinitions definitions3)
definitions3 -
@Deprecated public static xsul.wsdl.WsdlDefinitions wsdlDefinitions5ToWsdlDefintions3(xsul5.wsdl.WsdlDefinitions definitions5)
definitions5 -
public static Element xppElementToDomElement(org.xmlpull.v1.builder.XmlElement xppElement,
Document document)
xppElement - document -
public static org.xmlpull.infoset.XmlElement deepClone(org.xmlpull.infoset.XmlElement element)
throws UtilsException
element -
UtilsException
public static void saveXML(org.xmlpull.infoset.XmlElement element,
File file)
throws IOException
element - file -
IOException
public static void saveXML(org.xmlpull.v1.builder.XmlElement element,
File file)
throws IOException
element - file -
IOException
public static org.xmlpull.infoset.XmlElement loadXML(File file)
throws IOException
file -
IOExceptionpublic static boolean isXML(String string)
string -
public static void validate(org.apache.xmlbeans.XmlObject xmlObject)
throws UtilsException
xmlObject -
UtilsExceptionpublic static String getLocalPartOfQName(String qname)
qname - the specified QName in string, e.g. ns:value
public static String getPrefixOfQName(String qname)
qname - the specified QName in string, e.g. ns:value
public static org.xmlpull.infoset.XmlNamespace declareNamespaceIfNecessary(String prefixCandidate,
String uri,
boolean alwaysUseSuffix,
org.xmlpull.infoset.XmlElement element)
prefixCandidate - uri - alwaysUseSuffix - element -
public static org.xmlpull.infoset.XmlNamespace declareNamespace(String prefixCandidate,
String uri,
boolean alwaysUseSuffix,
org.xmlpull.infoset.XmlElement element)
prefixCandidate - uri - alwaysUseSuffix - element -
public static void removeElements(org.xmlpull.infoset.XmlElement xml,
String name)
xml - name - public static Document retrievalXMLDocFromUrl(String url)
url -
public static Document retrievalXMLDocForParse(String url)
url -
public static boolean isEqual(org.xmlpull.infoset.XmlElement elem1,
org.xmlpull.infoset.XmlElement elem2)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||