Class KElement.SingleXPathComparator

java.lang.Object
org.cip4.jdflib.core.KElement.SingleXPathComparator
All Implemented Interfaces:
Comparator<KElement>
Direct Known Subclasses:
KElement.MultiAttributeComparator, KElement.SingleAttributeComparator
Enclosing class:
KElement

public static class KElement.SingleXPathComparator extends Object implements Comparator<KElement>
sorts according to the value of one attribute
if the attribute is numeric, compare numerically, else lexical comparison is done
  • Constructor Details

    • SingleXPathComparator

      public SingleXPathComparator(String xPath, boolean pInvert)
      if the attribute is numeric, compare numerically, else lexical comparison is done
      Parameters:
      xPath - the xpath in the context of this element to use for comparing
      pInvert - if true, sort backwards
    • SingleXPathComparator

      public SingleXPathComparator(String xPath, boolean pInvert, boolean checkNumber, boolean caseSensitive)
  • Method Details