|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.easywsdl.tooling.java2wsdl.util.XMLSorter
public class XMLSorter
Constructor Summary | |
---|---|
XMLSorter()
|
Method Summary | |
---|---|
static java.lang.String |
getEncoding(org.w3c.dom.Document xmlDocument)
Return the encoding of the document. |
static java.lang.String |
sort(org.w3c.dom.Document xmlDocument)
parse the xml Document and return it with its nodes sorted Use the encoding defined at the parsing or in the document (utf8 is used if no encoding is defined) |
static java.lang.String |
sort(org.w3c.dom.Document xmlDocument,
java.lang.String encoding)
parse the xml String and return it with nodes in the order following the ws i recommendations (types at the beginning) |
static void |
sort(org.w3c.dom.Node node,
java.io.OutputStream out,
java.lang.String encoding)
Sort the node into the output stream. |
static org.w3c.dom.Document |
sortNodes(org.w3c.dom.Document xml)
parse the xml Document and return it with its nodes sorted Use the encoding defined at the parsing or in the document (utf8 is used if no encoding is defined) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLSorter()
Method Detail |
---|
public static java.lang.String sort(org.w3c.dom.Document xmlDocument, java.lang.String encoding)
xmlDocument
- the xml document to sort. Must be non nullencoding
- the encoding to usepublic static java.lang.String sort(org.w3c.dom.Document xmlDocument)
xmlDocument
- the xml document to pretty print. Must be non nullpublic static org.w3c.dom.Document sortNodes(org.w3c.dom.Document xml)
xmlDocument
- the xml document to pretty print. Must be non nullpublic static void sort(org.w3c.dom.Node node, java.io.OutputStream out, java.lang.String encoding) throws java.lang.Exception
node
- out
-
java.lang.Exception
public static java.lang.String getEncoding(org.w3c.dom.Document xmlDocument)
xmlDocument
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |