public abstract class NegatableCriterion extends Criterion
Criterion
instances that can be negated.Criterion.Operator
Modifier and Type | Field and Description |
---|---|
static char |
NEGATION
The sign used to indicate negation of a criterion.
|
Modifier | Constructor and Description |
---|---|
protected |
NegatableCriterion(String attribute,
boolean negation)
Instantiates a new
NegatableCriterion on the specified attribute. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isNegate()
Tells whether this is a negated criterion.
|
protected boolean |
isValidAttributeName(String str)
Tells whether the given attribute name is valid.
|
NegatableCriterion |
setNegate(boolean negateParam)
Sets whether this criterion is a negation.
|
getAttributeName, toLocation, toLocation, toString
public static final char NEGATION
protected NegatableCriterion(String attribute, boolean negation)
NegatableCriterion
on the specified attribute.attribute
- The non-ML name of the attribute on which this criterion
operates.negation
- If true
this criterion will be configured to be a
negation.protected boolean isValidAttributeName(String str)
str
- A potential attribute name.true
if str is permissible as an attribute
name; false
otherwise.public boolean isNegate()
true
if this criterion is a negation; false
otherwise.public NegatableCriterion setNegate(boolean negateParam)
negateParam
- If true
this criterion will be configured to be a
negation.NegatableCriterion
instance; useful for chained
manipulations.Copyright © 2021 RWS Group for and on behalf of its affiliates and subsidiaries. All rights reserved.