public static final class OrderQueryNode.OrderSpec
extends java.lang.Object
Constructor and Description |
---|
OrderSpec(Name property,
boolean ascending)
Deprecated.
use
OrderSpec#OrderSpec(Path, boolean) instead. |
OrderSpec(Path property,
boolean ascending)
Creates a new
OrderSpec for property . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Returns
true if this order spec is equal
to obj |
java.lang.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(java.lang.String name)
Set a new value for a function
|
void |
setPath(Path path)
Set a new value for the path
|
public 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 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(java.lang.String name)
name
- a function namepublic java.lang.String getFunction()
public boolean equals(java.lang.Object obj)
true
if this
order spec is equal
to obj
equals
in class java.lang.Object
obj
- the reference object with which to compare.true
if this
order spec is equal
to obj
; false
otherwise.Copyright © 2010 - 2020 Adobe. All Rights Reserved