Java Code Examples for com.sun.org.apache.xml.internal.utils.StringComparable#getComparator()

The following examples show how to use com.sun.org.apache.xml.internal.utils.StringComparable#getComparator() . These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
/**
   * Get the string or numeric value of a specific level key for this sort
   * element. The value is extracted from the DOM if it is not already in
   * our sort key vector.
   */
  private final Comparable stringValue(int level) {
      // Get value from our array if possible
      if (_scanned <= level) {
          AbstractTranslet translet = _settings.getTranslet();
          Locale[] locales = _settings.getLocales();
          String[] caseOrder = _settings.getCaseOrders();

          // Get value from DOM if accessed for the first time
          final String str = extractValueFromDOM(_dom, _node, level,
                                                 translet, _last);
          final Comparable key =
              StringComparable.getComparator(str, locales[level],
                                             _collators[level],
                                             caseOrder[level]);
          _values[_scanned++] = key;
          return(key);
      }
      return((Comparable)_values[level]);
}
 
Example 2
/**
   * Get the string or numeric value of a specific level key for this sort
   * element. The value is extracted from the DOM if it is not already in
   * our sort key vector.
   */
  private final Comparable stringValue(int level) {
      // Get value from our array if possible
      if (_scanned <= level) {
          AbstractTranslet translet = _settings.getTranslet();
          Locale[] locales = _settings.getLocales();
          String[] caseOrder = _settings.getCaseOrders();

          // Get value from DOM if accessed for the first time
          final String str = extractValueFromDOM(_dom, _node, level,
                                                 translet, _last);
          final Comparable key =
              StringComparable.getComparator(str, locales[level],
                                             _collators[level],
                                             caseOrder[level]);
          _values[_scanned++] = key;
          return(key);
      }
      return((Comparable)_values[level]);
}
 
Example 3
/**
   * Get the string or numeric value of a specific level key for this sort
   * element. The value is extracted from the DOM if it is not already in
   * our sort key vector.
   */
  private final Comparable stringValue(int level) {
      // Get value from our array if possible
      if (_scanned <= level) {
          AbstractTranslet translet = _settings.getTranslet();
          Locale[] locales = _settings.getLocales();
          String[] caseOrder = _settings.getCaseOrders();

          // Get value from DOM if accessed for the first time
          final String str = extractValueFromDOM(_dom, _node, level,
                                                 translet, _last);
          final Comparable key =
              StringComparable.getComparator(str, locales[level],
                                             _collators[level],
                                             caseOrder[level]);
          _values[_scanned++] = key;
          return(key);
      }
      return((Comparable)_values[level]);
}
 
Example 4
Source Project: JDKSourceCode1.8   File: NodeSortRecord.java    License: MIT License 6 votes vote down vote up
/**
   * Get the string or numeric value of a specific level key for this sort
   * element. The value is extracted from the DOM if it is not already in
   * our sort key vector.
   */
  private final Comparable stringValue(int level) {
      // Get value from our array if possible
      if (_scanned <= level) {
          AbstractTranslet translet = _settings.getTranslet();
          Locale[] locales = _settings.getLocales();
          String[] caseOrder = _settings.getCaseOrders();

          // Get value from DOM if accessed for the first time
          final String str = extractValueFromDOM(_dom, _node, level,
                                                 translet, _last);
          final Comparable key =
              StringComparable.getComparator(str, locales[level],
                                             _collators[level],
                                             caseOrder[level]);
          _values[_scanned++] = key;
          return(key);
      }
      return((Comparable)_values[level]);
}
 
Example 5
/**
   * Get the string or numeric value of a specific level key for this sort
   * element. The value is extracted from the DOM if it is not already in
   * our sort key vector.
   */
  private final Comparable stringValue(int level) {
      // Get value from our array if possible
      if (_scanned <= level) {
          AbstractTranslet translet = _settings.getTranslet();
          Locale[] locales = _settings.getLocales();
          String[] caseOrder = _settings.getCaseOrders();

          // Get value from DOM if accessed for the first time
          final String str = extractValueFromDOM(_dom, _node, level,
                                                 translet, _last);
          final Comparable key =
              StringComparable.getComparator(str, locales[level],
                                             _collators[level],
                                             caseOrder[level]);
          _values[_scanned++] = key;
          return(key);
      }
      return((Comparable)_values[level]);
}
 
Example 6
/**
   * Get the string or numeric value of a specific level key for this sort
   * element. The value is extracted from the DOM if it is not already in
   * our sort key vector.
   */
  private final Comparable stringValue(int level) {
      // Get value from our array if possible
      if (_scanned <= level) {
          AbstractTranslet translet = _settings.getTranslet();
          Locale[] locales = _settings.getLocales();
          String[] caseOrder = _settings.getCaseOrders();

          // Get value from DOM if accessed for the first time
          final String str = extractValueFromDOM(_dom, _node, level,
                                                 translet, _last);
          final Comparable key =
              StringComparable.getComparator(str, locales[level],
                                             _collators[level],
                                             caseOrder[level]);
          _values[_scanned++] = key;
          return(key);
      }
      return((Comparable)_values[level]);
}
 
Example 7
Source Project: Bytecoder   File: NodeSortRecord.java    License: Apache License 2.0 6 votes vote down vote up
/**
   * Get the string or numeric value of a specific level key for this sort
   * element. The value is extracted from the DOM if it is not already in
   * our sort key vector.
   */
  @SuppressWarnings({"rawtypes", "unchecked"})
  private final Comparable stringValue(int level) {
      // Get value from our array if possible
      if (_scanned <= level) {
          AbstractTranslet translet = _settings.getTranslet();
          Locale[] locales = _settings.getLocales();
          String[] caseOrder = _settings.getCaseOrders();

          // Get value from DOM if accessed for the first time
          final String str = extractValueFromDOM(_dom, _node, level,
                                                 translet, _last);
          final Comparable key = StringComparable.getComparator(
                  str, locales[level], _collators[level], caseOrder[level]);
          _values[_scanned++] = key;
          return(key);
      }
      return((Comparable)_values[level]);
}
 
Example 8
/**
   * Get the string or numeric value of a specific level key for this sort
   * element. The value is extracted from the DOM if it is not already in
   * our sort key vector.
   */
  private final Comparable stringValue(int level) {
      // Get value from our array if possible
      if (_scanned <= level) {
          AbstractTranslet translet = _settings.getTranslet();
          Locale[] locales = _settings.getLocales();
          String[] caseOrder = _settings.getCaseOrders();

          // Get value from DOM if accessed for the first time
          final String str = extractValueFromDOM(_dom, _node, level,
                                                 translet, _last);
          final Comparable key =
              StringComparable.getComparator(str, locales[level],
                                             _collators[level],
                                             caseOrder[level]);
          _values[_scanned++] = key;
          return(key);
      }
      return((Comparable)_values[level]);
}
 
Example 9
/**
   * Get the string or numeric value of a specific level key for this sort
   * element. The value is extracted from the DOM if it is not already in
   * our sort key vector.
   */
  private final Comparable stringValue(int level) {
      // Get value from our array if possible
      if (_scanned <= level) {
          AbstractTranslet translet = _settings.getTranslet();
          Locale[] locales = _settings.getLocales();
          String[] caseOrder = _settings.getCaseOrders();

          // Get value from DOM if accessed for the first time
          final String str = extractValueFromDOM(_dom, _node, level,
                                                 translet, _last);
          final Comparable key =
              StringComparable.getComparator(str, locales[level],
                                             _collators[level],
                                             caseOrder[level]);
          _values[_scanned++] = key;
          return(key);
      }
      return((Comparable)_values[level]);
}
 
Example 10
/**
   * Get the string or numeric value of a specific level key for this sort
   * element. The value is extracted from the DOM if it is not already in
   * our sort key vector.
   */
  private final Comparable stringValue(int level) {
      // Get value from our array if possible
      if (_scanned <= level) {
          AbstractTranslet translet = _settings.getTranslet();
          Locale[] locales = _settings.getLocales();
          String[] caseOrder = _settings.getCaseOrders();

          // Get value from DOM if accessed for the first time
          final String str = extractValueFromDOM(_dom, _node, level,
                                                 translet, _last);
          final Comparable key =
              StringComparable.getComparator(str, locales[level],
                                             _collators[level],
                                             caseOrder[level]);
          _values[_scanned++] = key;
          return(key);
      }
      return((Comparable)_values[level]);
}
 
Example 11
/**
   * Get the string or numeric value of a specific level key for this sort
   * element. The value is extracted from the DOM if it is not already in
   * our sort key vector.
   */
  private final Comparable stringValue(int level) {
      // Get value from our array if possible
      if (_scanned <= level) {
          AbstractTranslet translet = _settings.getTranslet();
          Locale[] locales = _settings.getLocales();
          String[] caseOrder = _settings.getCaseOrders();

          // Get value from DOM if accessed for the first time
          final String str = extractValueFromDOM(_dom, _node, level,
                                                 translet, _last);
          final Comparable key =
              StringComparable.getComparator(str, locales[level],
                                             _collators[level],
                                             caseOrder[level]);
          _values[_scanned++] = key;
          return(key);
      }
      return((Comparable)_values[level]);
}