public static final class OrderQueryNode.OrderSpec extends Object
Constructor and Description |
---|
OrderQueryNode.OrderSpec(Name property,
boolean ascending)
Deprecated.
use
OrderSpec#OrderSpec(Path, boolean) instead. |
OrderQueryNode.OrderSpec(Path property,
boolean ascending)
Creates a new
OrderSpec for property . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Returns
true if this order spec is equal
to obj |
String |
getFunction() |
Name |
getProperty()
Deprecated.
use
getPropertyPath() instead. |
Path |
getPropertyPath()
Returns the relative path of the property.
|
boolean |
isAscending()
If
true the property is ordered ascending, otherwise
descending. |
void |
setAscending(boolean ascending)
Sets the new value for the ascending property.
|
void |
setFunction(String name)
Set a new value for a function
|
void |
setPath(Path path)
Set a new value for the path
|
public OrderQueryNode.OrderSpec(Name property, boolean ascending)
OrderSpec#OrderSpec(Path, boolean)
instead.OrderSpec
for property
.property
- the name of the property.ascending
- if true
the property is ordered
ascending, otherwise descending.public OrderQueryNode.OrderSpec(Path property, boolean ascending)
OrderSpec
for property
.property
- the relative path of the property.ascending
- if true
the property is ordered
ascending, otherwise descending.public Name getProperty()
getPropertyPath()
instead.public Path getPropertyPath()
public boolean isAscending()
true
the property is ordered ascending, otherwise
descending.true
for ascending; false
for
descending.public void setAscending(boolean ascending)
ascending
- true
for ascending; false
for descending.public void setPath(Path path)
path
- a pathpublic void setFunction(String name)
name
- a function namepublic String getFunction()
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.