public final class Equals extends SimpleQueryExpression
Equals class represents a dynamic query expression that checks
for equality between a profile attribute and a specified value.| Constructor and Description |
|---|
Equals(String attrName,
Object attrValue)
Create an
Equals query expression. |
Equals(String attrName,
String attrValue,
QueryCollator collator)
Create an
Equals query expression. |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getRelation()
Get the symbol or other name for this expression relation to be used in the
toString output. |
getAttributeName, getAttributeValue, getCollator, toStringtoStringpublic Equals(String attrName, Object attrValue) throws NullPointerException
Equals query expression. A profile will match the
expression criteria if the value of the attrName attribute
is equal to attrValue, as determined by Object.equals(Object).attrName - the name of the profile attribute to compare.attrValue - the value of the attribute to compare with.NullPointerException - if either argument is null.public Equals(String attrName, String attrValue, QueryCollator collator) throws NullPointerException
Equals query expression. A profile will match the
expression criteria if the value of the attrName attribute
is equal to attrValue, as determined by Collator.equals(String, String),
where the collator is obtained from the specified QueryCollator.attrName - the name of the profile attribute to compare.attrValue - the value of the attribute to compare with.collator - the collator to use for the comparison. May be null.NullPointerException - if either attrName or
attrValue is null.protected String getRelation()
SimpleQueryExpressiontoString output.getRelation in class SimpleQueryExpression