|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.icl.saxon.sort.SortKeyDefinition
A SortKeyDefinition defines one component of a sort key.
Note that most attributes defining the sort key can be attribute value templates,
and can therefore vary from one invocation to another. We hold them as expressions,
but optimise for the case where the attributes are all fixed strings: in this case
we can use the same Comparer object each time.
Constructor Summary | |
SortKeyDefinition()
|
Method Summary | |
void |
bindComparer()
If possible, use the same comparer every time |
Expression |
getCaseOrder()
|
Comparer |
getComparer(Context context)
Get a Comparer which can be used to compare two values according to this sort key. |
Expression |
getDataType()
|
Expression |
getLanguage()
|
Expression |
getOrder()
|
Expression |
getSortKey()
|
void |
setCaseOrder(Expression exp)
Set the case order. |
void |
setDataType(Expression exp)
Set the data type. |
void |
setLanguage(Expression exp)
Set the language. |
void |
setOrder(Expression exp)
Set the order. |
void |
setSortKey(Expression exp)
Set the expression used as the sort key |
void |
setStaticContext(StaticContext sc)
Set the static context. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SortKeyDefinition()
Method Detail |
public void setSortKey(Expression exp)
public void setOrder(Expression exp)
public void setDataType(Expression exp)
public void setCaseOrder(Expression exp)
public void setLanguage(Expression exp)
public void setStaticContext(StaticContext sc)
public Expression getSortKey()
public Expression getOrder()
public Expression getDataType()
public Expression getCaseOrder()
public Expression getLanguage()
public void bindComparer() throws XPathException
public Comparer getComparer(Context context) throws XPathException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |