| Modifier and Type | Field and Description |
|---|---|
| protected Collator | _collator
Deprecated
This field continues to exist for binary compatibility.
New code should not refer to it.
A reference to the first Collator
|
| protected Collator[] | |
| private DOM | |
| private int | |
| protected Locale | _locale
Deprecated
This field continues to exist for binary compatibility.
New code should not refer to it.
A locale field that might be set by an instance of a subclass.
|
| private int | |
| private int | |
| protected SortSettings | |
| private Object[] | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| private static final Collator | DEFAULT_COLLATOR
Deprecated
This field continues to exist for binary compatibility.
New code should not refer to it.
A reference to a collator.
|
| Access | Constructor and Description |
|---|---|
| public | NodeSortRecord(int node)
This constructor is run by a call to ClassLoader in the makeNodeSortRecord method in the NodeSortRecordFactory class. |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final int | |
| public int | |
| public abstract String | extractValueFromDOM(DOM dom, int current, int level, AbstractTranslet translet, int last)
Extract the sort value for a level of this key. |
| public Collator[] | |
| public final int | |
| public final void | initialize(int node, int last, DOM dom, SortSettings settings)
This method allows the caller to set the values that could not be passed to the default constructor. |
| private final Double | |
| private final Comparable | stringValue(int level)
Get the string or numeric value of a specific level key for this sort element. |
| _collator | back to summary |
|---|---|
| protected Collator _collator
Deprecated This field continues to exist for binary compatibility. New code should not refer to it. A reference to the first Collator | |
| _collators | back to summary |
|---|---|
| protected Collator[] _collators | |
| _dom | back to summary |
|---|---|
| private DOM _dom | |
| _last | back to summary |
|---|---|
| private int _last | |
| _locale | back to summary |
|---|---|
| protected Locale _locale
Deprecated This field continues to exist for binary compatibility. New code should not refer to it. A locale field that might be set by an instance of a subclass. | |
| _node | back to summary |
|---|---|
| private int _node | |
| _scanned | back to summary |
|---|---|
| private int _scanned | |
| _settings | back to summary |
|---|---|
| protected SortSettings _settings | |
| _values | back to summary |
|---|---|
| private Object[] _values | |
| COMPARE_ASCENDING | back to summary |
|---|---|
| public static final int COMPARE_ASCENDING | |
| COMPARE_DESCENDING | back to summary |
|---|---|
| public static final int COMPARE_DESCENDING | |
| COMPARE_NUMERIC | back to summary |
|---|---|
| public static final int COMPARE_NUMERIC | |
| COMPARE_STRING | back to summary |
|---|---|
| public static final int COMPARE_STRING | |
| DEFAULT_COLLATOR | back to summary |
|---|---|
| private static final Collator DEFAULT_COLLATOR
Deprecated This field continues to exist for binary compatibility. New code should not refer to it. A reference to a collator. May be updated by subclass if the stylesheet specifies a different language (will be updated iff _locale is updated). | |
| NodeSortRecord | back to summary |
|---|---|
| public NodeSortRecord(int node) This constructor is run by a call to ClassLoader in the makeNodeSortRecord method in the NodeSortRecordFactory class. Since we cannot pass any parameters to the constructor in that case we just set the default values here and wait for new values through initialize(). | |
| NodeSortRecord | back to summary |
|---|---|
| public NodeSortRecord() | |
| compareDocOrder | back to summary |
|---|---|
| public final int compareDocOrder(NodeSortRecord other) | |
| compareTo | back to summary |
|---|---|
| public int compareTo(NodeSortRecord other) Compare this sort element to another. The first level is checked first, and we proceed to the next level only if the first level keys are identical (and so the key values may not even be extracted from the DOM) !!!!MUST OPTIMISE - THIS IS REALLY, REALLY SLOW!!!!
| |
| extractValueFromDOM | back to summary |
|---|---|
| public abstract String extractValueFromDOM(DOM dom, int current, int level, AbstractTranslet translet, int last) Extract the sort value for a level of this key. | |
| getCollator | back to summary |
|---|---|
| public Collator[] getCollator() Returns the array of Collators used for text comparisons in this object. May be overridden by inheriting classes | |
| getNode | back to summary |
|---|---|
| public final int getNode() Returns the node for this sort object | |
| initialize | back to summary |
|---|---|
| public final void initialize(int node, int last, DOM dom, SortSettings settings) throws TransletException This method allows the caller to set the values that could not be passed to the default constructor. | |
| numericValue | back to summary |
|---|---|
| private final Double numericValue(int level) | |
| stringValue | back to summary |
|---|---|
| private final Comparable 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.
| |