public class EvaluatorBasedRestrictionDescr extends RestrictionDescr
Constructor and Description |
---|
EvaluatorBasedRestrictionDescr()
Creates a new EvaluatorBasedRestriction
|
EvaluatorBasedRestrictionDescr(String evaluator,
boolean isNegated,
List<String> parameters)
Creates a new EvaluatorBasedRestriction
|
EvaluatorBasedRestrictionDescr(String evaluator,
boolean isNegated,
String parameterText)
Creates a new EvaluatorBasedRestriction
|
Modifier and Type | Method and Description |
---|---|
String |
getEvaluator()
Returns the evaluator ID for this restriction
|
List<String> |
getParameters() |
String |
getParameterText()
In case there is any parameter text, this method returns it.
|
boolean |
isNegated()
Returns true if this evaluator is boolean negated.
|
void |
setEvaluator(String evaluator)
Sets the evaluator ID for this restriction
|
void |
setNegated(boolean negated)
Sets if this evaluator is negated.
|
void |
setParameters(List<String> parameters) |
String |
toString() |
copyLocation, getColumn, getEndCharacter, getEndColumn, getEndLine, getLine, getNamespace, getResource, getStartCharacter, getText, positionAsString, readExternal, replaceVariable, setEndCharacter, setEndLocation, setLocation, setNamespace, setResource, setStartCharacter, setText, writeExternal
public EvaluatorBasedRestrictionDescr()
public EvaluatorBasedRestrictionDescr(String evaluator, boolean isNegated, String parameterText)
evaluator
- the evaluator ID to be used in this restrictionisNegated
- true if the evaluator is boolean negatedparameterText
- the parameter text, in case there is any. null otherwise.public EvaluatorBasedRestrictionDescr(String evaluator, boolean isNegated, List<String> parameters)
evaluator
- the evaluator ID to be used in this restrictionisNegated
- true if the evaluator is boolean negatedparameters
- the list of parameters texts, in case there is any. null otherwise.public String getEvaluator()
public boolean isNegated()
public String getParameterText()
public void setEvaluator(String evaluator)
public void setNegated(boolean negated)
negated
- the negatedCopyright © 2001–2018 JBoss by Red Hat. All rights reserved.