com.konakart.wsapp
Class ExpressionVariable

java.lang.Object
  extended by com.konakart.wsapp.ExpressionVariable

public class ExpressionVariable
extends java.lang.Object

Describes an expression variable object


Constructor Summary
ExpressionVariable()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpressionVariable

public ExpressionVariable()
Method Detail

getId

public int getId()
Returns:
the id

setId

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

getCustomerTagId

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

Returns:
the customerTagId

setCustomerTagId

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

Parameters:
_customerTagId - the customerTagId to set

getExpressionId

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

Returns:
the expressionId

setExpressionId

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

Parameters:
_expressionId - the expressionId to set

getType

public 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

public 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
  • CustomerTag.AGE_TYPE: The tag value is a date. When creating expressions you can define the value to be greater or less than a length of time (in seconds) rather than comparing it to a specific date.

Parameters:
_type - the type to set

getOperator

public 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

public 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

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

Returns:
the value

setValue

public 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

public 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

public 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

public int getOrder()
The order of this expression variable.

Returns:
the order

setOrder

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

Parameters:
_order - the order to set

getAndOr

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

Returns:
the andOr

setAndOr

public 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

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

Returns:
the groupOrder

setGroupOrder

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

Parameters:
_groupOrder - the groupOrder to set

getGroupAndOr

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

Returns:
the groupAndOr

setGroupAndOr

public 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.