com.konakart.appif
Interface ExpressionVariableIf

All Known Implementing Classes:
ExpressionVariable

public interface ExpressionVariableIf

Describes an expression variable object


Method Summary
 int getAndOr()
          Defines whether this variable has to be ANDed or ORed with the one that precedes it.
 int getCustomerTagId()
          Id of the customer tag for this variable
 java.lang.String getCustomerValue()
          The customer value for the tag which is compared to the value attribute when evaluating the expression variable.
 int getExpressionId()
          Id of the expression that this variable belongs to
 int getGroupAndOr()
          Defines whether this group has to be ANDed or ORed with the one that precedes it.
 int getGroupOrder()
          The order of the group that this expression variable belongs to.
 int getId()
           
 int getOperator()
          Valid operators are: ExpressionVariable.EQUAL ExpressionVariable.NOT_EQUAL ExpressionVariable.GREATER_EQUAL ExpressionVariable.GREATER_THAN ExpressionVariable.LESS_EQUAL ExpressionVariable.LESS_THAN ExpressionVariable.MATCH - Used to match regular expression Note that not all operators are valid for all tag types.
 int getOrder()
          The order of this expression variable.
 int getType()
          The type of variable.
 java.lang.String getValue()
          The value of the expression variable.
 void setAndOr(int andOr)
          Defines whether this variable has to be ANDed or ORed with the one that precedes it.
 void setCustomerTagId(int customerTagId)
          Id of the customer tag for this variable
 void setCustomerValue(java.lang.String customerValue)
          The customer value for the tag which is compared to the value attribute when evaluating the expression variable.
 void setExpressionId(int expressionId)
          Id of the expression that this variable belongs to
 void setGroupAndOr(int groupAndOr)
          Defines whether this group has to be ANDed or ORed with the one that precedes it.
 void setGroupOrder(int groupOrder)
          The order of the group that this expression variable belongs to.
 void setId(int id)
           
 void setOperator(int operator)
          Valid operators are: ExpressionVariable.EQUAL ExpressionVariable.NOT_EQUAL ExpressionVariable.GREATER_EQUAL ExpressionVariable.GREATER_THAN ExpressionVariable.LESS_EQUAL ExpressionVariable.LESS_THAN ExpressionVariable.MATCH - Used to match regular expression Note that not all operators are valid for all tag types.
 void setOrder(int order)
          The order of this expression variable.
 void setType(int type)
          The type of variable.
 void setValue(java.lang.String value)
          The value of the expression variable.
 

Method Detail

getId

int getId()
Returns:
the id

setId

void setId(int id)
Parameters:
id - the id to set

getCustomerTagId

int getCustomerTagId()
Id of the customer tag for this variable

Returns:
the customerTagId

setCustomerTagId

void setCustomerTagId(int customerTagId)
Id of the customer tag for this variable

Parameters:
customerTagId - the customerTagId to set

getExpressionId

int getExpressionId()
Id of the expression that this variable belongs to

Returns:
the expressionId

setExpressionId

void setExpressionId(int expressionId)
Id of the expression that this variable belongs to

Parameters:
expressionId - the expressionId to set

getType

int getType()
The type of variable. It must match the type of the customer tag referred to by customerTagId. Valid types are:

Returns:
the type

setType

void setType(int type)
The type of variable. It must match the type of the customer tag referred to by customerTagId. Valid types are:
  • CustomerTag.STRING_TYPE: The value is a String
  • CustomerTag.INT_TYPE: The value is an integer
  • CustomerTag.MULTI_INT_TYPE: The value contains one or more integers separated by a delimiter. The maxInts attributes determines how many integers are allowed.
  • CustomerTag.DECIMAL_TYPE: The value is a decimal.
  • CustomerTag.DATE_TYPE: The value is a date.
  • CustomerTag.BOOLEAN_TYPE: The value is a boolean and so must contain the string true or false

Parameters:
type - the type to set

getOperator

int getOperator()
Valid operators are:
  • ExpressionVariable.EQUAL
  • ExpressionVariable.NOT_EQUAL
  • ExpressionVariable.GREATER_EQUAL
  • ExpressionVariable.GREATER_THAN
  • ExpressionVariable.LESS_EQUAL
  • ExpressionVariable.LESS_THAN
  • ExpressionVariable.MATCH - Used to match regular expression
Note that not all operators are valid for all tag types.

Returns:
the operator

setOperator

void setOperator(int operator)
Valid operators are:
  • ExpressionVariable.EQUAL
  • ExpressionVariable.NOT_EQUAL
  • ExpressionVariable.GREATER_EQUAL
  • ExpressionVariable.GREATER_THAN
  • ExpressionVariable.LESS_EQUAL
  • ExpressionVariable.LESS_THAN
  • ExpressionVariable.MATCH - Used to match regular expression
Note that not all operators are valid for all tag types.

Parameters:
operator - the operator to set

getValue

java.lang.String getValue()
The value of the expression variable. Valid values depend on the tag type.

Returns:
the value

setValue

void setValue(java.lang.String value)
The value of the expression variable. Valid values depend on the tag type.

Parameters:
value - the value to set

getCustomerValue

java.lang.String getCustomerValue()
The customer value for the tag which is compared to the value attribute when evaluating the expression variable.

Returns:
the customerValue

setCustomerValue

void setCustomerValue(java.lang.String customerValue)
The customer value for the tag which is compared to the value attribute when evaluating the expression variable.

Parameters:
customerValue - the customerValue to set

getOrder

int getOrder()
The order of this expression variable.

Returns:
the order

setOrder

void setOrder(int order)
The order of this expression variable.

Parameters:
order - the order to set

getAndOr

int getAndOr()
Defines whether this variable has to be ANDed or ORed with the one that precedes it.

Returns:
the andOr

setAndOr

void setAndOr(int andOr)
Defines whether this variable has to be ANDed or ORed with the one that precedes it.

Parameters:
andOr - the andOr to set

getGroupOrder

int getGroupOrder()
The order of the group that this expression variable belongs to.

Returns:
the groupOrder

setGroupOrder

void setGroupOrder(int groupOrder)
The order of the group that this expression variable belongs to.

Parameters:
groupOrder - the groupOrder to set

getGroupAndOr

int getGroupAndOr()
Defines whether this group has to be ANDed or ORed with the one that precedes it.

Returns:
the groupAndOr

setGroupAndOr

void setGroupAndOr(int groupAndOr)
Defines whether this group has to be ANDed or ORed with the one that precedes it.

Parameters:
groupAndOr - the groupAndOr to set


Copyright © 2011 DS Data Systems UK Ltd.