Class NodePropertyComparator
java.lang.Object
com.webmethods.caf.faces.data.object.DefaultComparator
com.webmethods.caf.jcr.faces.data.NodePropertyComparator
- All Implemented Interfaces:
Comparator<Object>
Node property comparator used to sort the list of nodes
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
The row variable nameprotected ISortInfo
Reference to the sort infoFields inherited from class com.webmethods.caf.faces.data.object.DefaultComparator
m_ascending, m_collator
-
Constructor Summary
Constructors -
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
-
Field Details
-
m_sortInfo
Reference to the sort info -
m_rowVariable
The row variable name
-
-
Constructor Details
-
NodePropertyComparator
Constructor- Parameters:
sort
- the sort inforowVar
- the row variable name
-
-
Method Details
-
compare
Compares the two objects- Specified by:
compare
in interfaceComparator<Object>
- Overrides:
compare
in classDefaultComparator
-
compare
public int compare(javax.jcr.Node o1, javax.jcr.Node o2) Compares the two nodes
-