Package org.opencms.xml
Class CmsXmlDisplayOrderPathComparator
java.lang.Object
org.opencms.xml.CmsXmlDisplayOrderPathComparator
- All Implemented Interfaces:
Comparator<String>
Comparator for XPaths of an XML content.
Paths are sorted according to the sequence definitions in the content definition.
That means the sort order corresponds to the order in which the elements
are displayed in the content editor.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a comparator for paths that fit for the provided content definition. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
CmsXmlDisplayOrderPathComparator
Constructs a comparator for paths that fit for the provided content definition.- Parameters:
definition
- the content definition to sort paths for.
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<String>
- See Also:
-