|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.stardust.engine.api.query.AbstractSingleOrderCriterion
org.eclipse.stardust.engine.api.query.DataOrder
public final class DataOrder
Criterion for ordering elements resulting from a query according to workflow data, either with ascending or descending values.
OrderCriteria,
Serialized Form| Constructor Summary | |
|---|---|
DataOrder(String dataID)
Initializes the criterion to order according to ascending values of the given workflow data. |
|
DataOrder(String dataID,
boolean ascending)
Initializes the criterion to order according to ascending or descending values of the given workflow data. |
|
DataOrder(String dataID,
String attributeName)
Initializes the criterion to order according to ascending values of the given workflow data. |
|
DataOrder(String dataID,
String attributeName,
boolean ascending)
Initializes the criterion to order according to ascending or descending values of the given workflow data. |
|
| Method Summary | |
|---|---|
Object |
accept(OrderEvaluationVisitor visitor,
Object context)
Visitor dispatch callback used for evaluating order criteria. |
String |
getAttributeName()
Returns the name of the data attribute |
String |
getDataID()
Returns the ID of the workflow data containing the values to be used for ordering. |
String |
getNormalizedAttributeName()
Returns the name of the data attribute or an empty string if the name is null. |
String |
toString()
|
| Methods inherited from class org.eclipse.stardust.engine.api.query.AbstractSingleOrderCriterion |
|---|
isAscending |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DataOrder(String dataID)
dataID - The ID of the workflow data to order according toDataOrder(String, boolean)
public DataOrder(String dataID,
String attributeName)
dataID - The ID of the workflow data to order according toattributeName - The name of the data attribute to search for (XPath, etc.)DataOrder(String, boolean)
public DataOrder(String dataID,
boolean ascending)
dataID - The ID of the workflow data to according to.ascending - Flag indicating if ordering has to be performed along ascending or
descending values.DataOrder(String)
public DataOrder(String dataID,
String attributeName,
boolean ascending)
dataID - The ID of the workflow data to according to.attributeName - The name of the data attribute to search for (XPath, etc.)ascending - Flag indicating if ordering has to be performed along ascending or
descending values.DataOrder(String)| Method Detail |
|---|
public String getDataID()
public String getAttributeName()
null if no name was setpublic String getNormalizedAttributeName()
public Object accept(OrderEvaluationVisitor visitor,
Object context)
OrderCriterionreturn visitor.visit(this, context), thus calling the appropriately
overloaded visitation method.
visitor - The visitor performing the evaluation.context - Information used by the visitor during the visitation process.
public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||