com.mmm.cms.homehealth.proto.logic
Class FieldCondition

java.lang.Object
  extended by com.mmm.cms.homehealth.proto.logic.FieldCondition

public class FieldCondition
extends java.lang.Object


Field Summary
protected  FieldEquationTypeID conditionTypeID
           
protected  java.lang.String[] conditionValues
           
protected  java.lang.String fieldName
           
 
Constructor Summary
FieldCondition()
           
FieldCondition(java.lang.String fieldName, FieldEquationTypeID conditionTypeID, java.lang.String[] conditionValues)
           
 
Method Summary
 boolean equalsAnyValues(java.lang.String value)
          The supplied value must match all the values of this condition to be true
 FieldEquationTypeID getConditionTypeID()
          Get the value of conditionTypeID
 java.lang.String[] getConditionValues()
          Get the value of conditionValues
 java.lang.String getConditionValues(int index)
          Get the value of conditionValues at specified index
 java.lang.String getFieldName()
          Get the value of fieldName
 boolean greaterThanOrEqual(java.lang.String value)
           
 boolean greaterThanValues(java.lang.String value)
           
 boolean isConditionAccepted(HomeHealthRecordIF record)
           
 boolean lessThanOrEqual(java.lang.String value)
           
 boolean lessThanValues(java.lang.String value)
           
 boolean notEqualsAnyValues(java.lang.String value)
           
 void setConditionTypeID(FieldEquationTypeID conditionTypeID)
          Set the value of conditionTypeID
 void setConditionValues(int index, java.lang.String newConditionValues)
          Set the value of conditionValues at specified index.
 void setConditionValues(java.lang.String[] conditionValues)
          Set the value of conditionValues
 void setFieldName(java.lang.String fieldName)
          Set the value of fieldName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fieldName

protected java.lang.String fieldName

conditionTypeID

protected FieldEquationTypeID conditionTypeID

conditionValues

protected java.lang.String[] conditionValues
Constructor Detail

FieldCondition

public FieldCondition()

FieldCondition

public FieldCondition(java.lang.String fieldName,
                      FieldEquationTypeID conditionTypeID,
                      java.lang.String[] conditionValues)
Method Detail

getConditionValues

public java.lang.String[] getConditionValues()
Get the value of conditionValues

Returns:
the value of conditionValues

setConditionValues

public void setConditionValues(java.lang.String[] conditionValues)
Set the value of conditionValues

Parameters:
conditionValues - new value of conditionValues

getConditionValues

public java.lang.String getConditionValues(int index)
Get the value of conditionValues at specified index

Parameters:
index -
Returns:
the value of conditionValues at specified index

setConditionValues

public void setConditionValues(int index,
                               java.lang.String newConditionValues)
Set the value of conditionValues at specified index.

Parameters:
index -
newConditionValues - new value of conditionValues at specified index

getConditionTypeID

public FieldEquationTypeID getConditionTypeID()
Get the value of conditionTypeID

Returns:
the value of conditionTypeID

setConditionTypeID

public void setConditionTypeID(FieldEquationTypeID conditionTypeID)
Set the value of conditionTypeID

Parameters:
conditionTypeID - new value of conditionTypeID

getFieldName

public java.lang.String getFieldName()
Get the value of fieldName

Returns:
the value of fieldName

setFieldName

public void setFieldName(java.lang.String fieldName)
Set the value of fieldName

Parameters:
fieldName - new value of fieldName

isConditionAccepted

public boolean isConditionAccepted(HomeHealthRecordIF record)
                            throws java.lang.Exception
Throws:
java.lang.Exception

equalsAnyValues

public boolean equalsAnyValues(java.lang.String value)
The supplied value must match all the values of this condition to be true

Parameters:
value -
Returns:

notEqualsAnyValues

public boolean notEqualsAnyValues(java.lang.String value)

greaterThanValues

public boolean greaterThanValues(java.lang.String value)

greaterThanOrEqual

public boolean greaterThanOrEqual(java.lang.String value)

lessThanValues

public boolean lessThanValues(java.lang.String value)

lessThanOrEqual

public boolean lessThanOrEqual(java.lang.String value)