public class SortKeyDefinition extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected String |
baseURI |
protected Expression |
caseOrder |
protected Comparator |
collation |
protected Expression |
collationName |
protected Expression |
dataTypeExpression |
protected boolean |
emptyLeast |
protected Expression |
language |
protected Expression |
order |
protected Container |
parentExpression |
protected Expression |
sortKey |
Constructor and Description |
---|
SortKeyDefinition() |
Modifier and Type | Method and Description |
---|---|
String |
getBaseURI() |
Expression |
getCaseOrder() |
Comparator |
getCollation() |
Expression |
getCollationName() |
Expression |
getDataTypeExpression() |
boolean |
getEmptyLeast() |
Expression |
getLanguage() |
Expression |
getOrder() |
Container |
getParentExpression() |
Expression |
getSortKey()
Get the expression used as the sort key
|
FixedSortKeyDefinition |
reduce(XPathContext context)
Evaluate any aspects of the sort definition that were specified as AVTs, for example
ascending/descending, language, case-order, data-type.
|
void |
setBaseURI(String baseURI) |
void |
setCaseOrder(Expression exp)
Set the case order.
|
void |
setCollation(Comparator collation) |
void |
setCollationName(Expression collationName)
Set the collation.
|
void |
setDataTypeExpression(Expression exp)
Set the data type.
|
void |
setEmptyLeast(boolean emptyLeast)
Set whether empty sequence comes before other values or after them
|
void |
setLanguage(Expression exp)
Set the language.
|
void |
setOrder(Expression exp)
Set the order.
|
void |
setParentExpression(Container container) |
void |
setSortKey(Expression exp)
Set the expression used as the sort key
|
SortKeyDefinition |
simplify(StaticContext env,
Executable exec) |
protected Expression sortKey
protected Expression order
protected Expression dataTypeExpression
protected Expression caseOrder
protected Expression language
protected Expression collationName
protected Comparator collation
protected String baseURI
protected boolean emptyLeast
protected Container parentExpression
public void setParentExpression(Container container)
public Container getParentExpression()
public void setSortKey(Expression exp)
public Expression getSortKey()
public void setOrder(Expression exp)
public Expression getOrder()
public void setDataTypeExpression(Expression exp)
public Expression getDataTypeExpression()
public void setCaseOrder(Expression exp)
public Expression getCaseOrder()
public void setLanguage(Expression exp)
public Expression getLanguage()
public void setCollationName(Expression collationName)
public Expression getCollationName()
public void setCollation(Comparator collation)
public Comparator getCollation()
public void setBaseURI(String baseURI)
public String getBaseURI()
public void setEmptyLeast(boolean emptyLeast)
emptyLeast
- true if () is considered lower than any other valuepublic boolean getEmptyLeast()
public SortKeyDefinition simplify(StaticContext env, Executable exec) throws XPathException
XPathException
public FixedSortKeyDefinition reduce(XPathContext context) throws XPathException
XPathException