|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.edustructures.sifworks.Condition
public class Condition
A query condition.
| Constructor Summary | |
|---|---|
Condition(ElementDef field,
ComparisonOperators ops,
java.lang.String value)
Constructs a query condition |
|
Condition(java.lang.String xPath,
ComparisonOperators ops,
java.lang.String value)
Constructs a query condition using an xpath query string |
|
| Method Summary | |
|---|---|
ElementDef |
getField()
Gets the metadata for the field to evaluate. |
ComparisonOperators |
getOperator()
Gets the comparision operator |
java.lang.String |
getValue()
Gets the comparison value. |
java.lang.String |
getXPath()
Gets the XPath representation of the Query condition. |
java.lang.String |
getXPath(Query q,
SIFVersion version)
Gets the XPath representation of this query for the specific version of SIF |
static ComparisonOperators |
parseComparisionOperators(java.lang.String op)
Parses a comparison operator represented as a string |
static GroupOperators |
parseGroupOperator(java.lang.String op)
Parses a grouping operator represented as a string |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Condition(ElementDef field,
ComparisonOperators ops,
java.lang.String value)
field - A static constant defined by the ADK to identify the field
(i.e. element or attribute) to evaluate.ops - The comparison operator from the ComparisonOperators enumvalue - The value to evaluate
public Condition(java.lang.String xPath,
ComparisonOperators ops,
java.lang.String value)
xPath - The path to the field. e.g. "Name/FirstName"ops - The comparison operator from the ComparisonOperators enumvalue - The value to evaluate| Method Detail |
|---|
public ComparisonOperators getOperator()
EQ, LT,
GT, and NOTpublic ElementDef getField()
null if the Query condition represents a
deeply nested XPath.getXPath()public java.lang.String getXPath()
"Name/LastName" or "SIF_ExtendedElements/SIF_ExtendedElement[@Name='eyecolor']"
public java.lang.String getXPath(Query q,
SIFVersion version)
q - The Query that this condition is associated withversion - The version of SIF to use when rendering element names in the path
public java.lang.String getValue()
public static GroupOperators parseGroupOperator(java.lang.String op)
throws ADKUnknownOperatorException
op - An operator value such as "And", "Or", "None"
ADKUnknownOperatorException - if the operator is not equal to "And", "Or", or "None"
public static ComparisonOperators parseComparisionOperators(java.lang.String op)
throws ADKUnknownOperatorException
op - An operator value such as "EQ", "NEQ", "LT", "GT", "GE", "LE"
ADKUnknownOperatorException - If the comparision operator cannot be parsed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||