|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.novell.xsl.process.SortCriteria
Criteria for sorting source nodes. This corresponds to the collection of
xsl:sort
elements in an xsl:apply-templates
or at
the beginning of an xsl:for-each
.
Constructor Summary | |
SortCriteria(SortKey[] sortKeys,
Node contextNode)
Constructs a new SortCriteria using the specified sort keys. |
Method Summary | |
void |
dump(PrintWriter out,
int indent)
Dumps this object to the specified output stream. |
ContextNodeList |
sort(ProcessingEnv env,
Node currentNode,
ContextNodeList nodeList)
Uses this sort criteria to sort the specified list of source nodes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SortCriteria(SortKey[] sortKeys, Node contextNode)
SortCriteria
using the specified sort keys.
sortKeys
- the sort keys specifying how nodes are to be sorted;
the primary key is first, the secondary key (if any)
is second, etc.Method Detail |
public ContextNodeList sort(ProcessingEnv env, Node currentNode, ContextNodeList nodeList) throws XSLException
env
- the current processing environmentcurrentNode
- the current source nodenodeList
- the list of source nodes to be sorted
XSLException
- if a fatal error occurs during sortingpublic void dump(PrintWriter out, int indent)
out
- the output stream to write toindent
- number of tabs to indent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |