|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.poi.util.XmlSort
public final class XmlSort
Constructor Summary | |
---|---|
XmlSort()
|
Method Summary | |
---|---|
static void |
sort(org.apache.xmlbeans.XmlObject element,
java.util.Comparator<org.apache.xmlbeans.XmlCursor> comp)
Sorts the children of element according to the order indicated by the
comparator. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlSort()
Method Detail |
---|
public static void sort(org.apache.xmlbeans.XmlObject element, java.util.Comparator<org.apache.xmlbeans.XmlCursor> comp)
element
according to the order indicated by the
comparator.
element
- the element whose content is to be sorted. Only element children are sorted,
attributes are not touched. When elements are reordered, all the text, comments and PIs
follow the element that they come immediately after.comp
- a comparator that is to be used when comparing the QName
s of two
elements.
java.lang.IllegalArgumentException
- if the input XmlObject
does not represent
an element
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |