Java Code Examples for com.sun.org.apache.xml.internal.utils.StringComparable

The following examples show how to use com.sun.org.apache.xml.internal.utils.StringComparable. 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
Source Project: jdk1.8-source-analysis   Source 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.
   */
  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
Source Project: TencentKona-8   Source File: NodeSortRecord.java    License: GNU General Public License v2.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.
   */
  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
Source Project: jdk8u60   Source File: NodeSortRecord.java    License: GNU General Public License v2.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.
   */
  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   Source 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
Source Project: openjdk-jdk8u   Source File: NodeSortRecord.java    License: GNU General Public License v2.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.
   */
  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   Source 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
Source Project: openjdk-jdk9   Source File: NodeSortRecord.java    License: GNU General Public License v2.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.
   */
  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
Source Project: hottub   Source File: NodeSortRecord.java    License: GNU General Public License v2.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.
   */
  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
Source Project: openjdk-8   Source File: NodeSortRecord.java    License: GNU General Public License v2.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.
   */
  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]);
}