public class SortKeyDefinition
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected boolean |
backwardsCompatible |
protected java.lang.String |
baseURI |
protected Expression |
caseOrder |
protected java.util.Comparator |
collation |
protected Expression |
collationName |
protected java.util.Comparator |
comparer |
protected Expression |
dataTypeExpression |
protected boolean |
emptyLeast |
protected Expression |
language |
protected Expression |
order |
protected Container |
parentExpression |
protected Expression |
sortKey |
protected Expression |
stable |
Constructor and Description |
---|
SortKeyDefinition() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBaseURI() |
Expression |
getCaseOrder() |
java.util.Comparator |
getCollation() |
Expression |
getCollationName() |
java.util.Comparator |
getComparer()
Get the comparer which is used to compare two values according to this sort key.
|
Expression |
getDataTypeExpression() |
boolean |
getEmptyLeast() |
Expression |
getLanguage() |
Expression |
getOrder() |
Container |
getParentExpression() |
Expression |
getSortKey()
Get the expression used as the sort key
|
Expression |
getStable() |
boolean |
isBackwardsCompatible() |
boolean |
isFixed()
Determine whether the sort key definition is fixed, that is, whether all the information needed
to create a Comparator is known statically
|
java.util.Comparator |
makeComparator(XPathContext context)
Allocate a Comparator to perform the comparisons described by this sort key component
|
void |
setBackwardsCompatible(boolean compatible) |
void |
setBaseURI(java.lang.String baseURI) |
void |
setCaseOrder(Expression exp)
Set the case order.
|
void |
setCollation(java.util.Comparator collation) |
void |
setCollationName(Expression collationName)
Set the collation.
|
void |
setComparer(java.util.Comparator comp)
Set the comparer which is used to compare two values according to this sort key.
|
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
|
void |
setStable(Expression stable) |
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 Expression stable
protected transient java.util.Comparator collation
protected java.lang.String baseURI
protected boolean emptyLeast
protected boolean backwardsCompatible
protected Container parentExpression
protected transient java.util.Comparator comparer
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(java.util.Comparator collation)
public java.util.Comparator getCollation()
public void setBaseURI(java.lang.String baseURI)
public java.lang.String getBaseURI()
public void setStable(Expression stable)
public Expression getStable()
public void setBackwardsCompatible(boolean compatible)
public boolean isBackwardsCompatible()
public void setEmptyLeast(boolean emptyLeast)
emptyLeast
- true if () is considered lower than any other valuepublic boolean getEmptyLeast()
public boolean isFixed()
public SortKeyDefinition simplify(StaticContext env, Executable exec) throws XPathException
XPathException
public java.util.Comparator makeComparator(XPathContext context) throws XPathException
XPathException
public void setComparer(java.util.Comparator comp)
public java.util.Comparator getComparer()