public class BaseSingleFieldConstraint extends Object implements HasParameterizedOperator, HasExpressionConstraint
Modifier and Type | Field and Description |
---|---|
protected int |
constraintValueType |
protected ExpressionFormLine |
expression |
protected String |
operator |
protected Map<String,String> |
parameters |
static int |
TYPE_ENUM
This is not used yet.
|
static int |
TYPE_EXPR_BUILDER_VALUE
This is for a "expression builder" that calculates a value.
|
static int |
TYPE_LITERAL
This may be string, or number, anything really.
|
static int |
TYPE_PREDICATE
The fieldName and fieldBinding is not used in the case of a predicate.
|
static int |
TYPE_RET_VALUE
This is for a "formula" that calculates a value.
|
static int |
TYPE_TEMPLATE
This is for a field to be a placeholder for a template
|
static int |
TYPE_UNDEFINED
This is used only when constraint is first created.
|
static int |
TYPE_VARIABLE
This is when it is set to a valid previously bound variable.
|
protected String |
value |
Constructor and Description |
---|
BaseSingleFieldConstraint() |
Modifier and Type | Method and Description |
---|---|
void |
clearParameters()
Clear all parameters
|
void |
deleteParameter(String key)
Delete a parameter
|
boolean |
equals(Object o) |
int |
getConstraintValueType() |
ExpressionFormLine |
getExpressionValue() |
String |
getOperator()
Get operator
|
String |
getParameter(String key)
Get a parameter
|
Map<String,String> |
getParameters()
Get all parameters
|
String |
getValue() |
int |
hashCode() |
void |
setConstraintValueType(int constraintValueType) |
void |
setExpressionValue(ExpressionFormLine expression) |
void |
setOperator(String operator)
Set operator
|
void |
setParameter(String key,
String parameter)
Set a parameter
|
void |
setParameters(Map<String,String> parameters)
Set all parameters
|
void |
setValue(String value) |
public static final int TYPE_UNDEFINED
public static final int TYPE_LITERAL
public static final int TYPE_VARIABLE
public static final int TYPE_RET_VALUE
public static final int TYPE_ENUM
public static final int TYPE_PREDICATE
public static final int TYPE_EXPR_BUILDER_VALUE
public static final int TYPE_TEMPLATE
protected String value
protected String operator
protected int constraintValueType
protected ExpressionFormLine expression
public void setValue(String value)
public String getValue()
public void setConstraintValueType(int constraintValueType)
public int getConstraintValueType()
public ExpressionFormLine getExpressionValue()
getExpressionValue
in interface HasExpressionConstraint
public void setExpressionValue(ExpressionFormLine expression)
setExpressionValue
in interface HasExpressionConstraint
public void clearParameters()
HasParameterizedOperator
clearParameters
in interface HasParameterizedOperator
public String getParameter(String key)
HasParameterizedOperator
getParameter
in interface HasParameterizedOperator
public void setParameter(String key, String parameter)
HasParameterizedOperator
setParameter
in interface HasParameterizedOperator
public void deleteParameter(String key)
HasParameterizedOperator
deleteParameter
in interface HasParameterizedOperator
public Map<String,String> getParameters()
HasParameterizedOperator
getParameters
in interface HasParameterizedOperator
public void setParameters(Map<String,String> parameters)
HasParameterizedOperator
setParameters
in interface HasParameterizedOperator
public void setOperator(String operator)
HasOperator
setOperator
in interface HasOperator
public String getOperator()
HasOperator
getOperator
in interface HasOperator
Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.