com.mmm.cms.homehealth.beans
Class BaseHomeHealthBean

java.lang.Object
  extended by com.mmm.cms.homehealth.beans.BaseHomeHealthBean
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AssessmentReasonBean, BaseHomeHealthDateBean, BowelIncontinenceBean, CurrentAmbulationBean, CurrentBathingBean, CurrentDressingLowerBean, CurrentDressingUpperBean, CurrentInjectableMedsBean, CurrentTransferringBean, DrugRegimenReviewBean, EnteralNutritionBean, EpisodeTimingBean, FrequencyOfPainBean, IntravenousInfusionBean, LesionOpenWoundBean, NonStagingCoveringBean, NonStagingCoveringSocRocBean, NonStagingDeepTissueBean, NonStagingDeepTissueSocRocBean, NonStagingDressingBean, NonStagingDressingSocRocBean, NumberPressureUlcersStage1Bean, NumberPressureUlcersStage2Bean, NumberPressureUlcersStage3Bean, NumberPressureUlcersStage4Bean, NumberStage2AtSocRocBean, NumberStage3AtSocRocBean, NumberStage4AtSocRocBean, NumberStasisUlcersBean, NumberSurgicalWoundsBean, OstomyBean, ParenteralNutritionBean, PressureUlcerBean, PressureUlcerDepthBean, PressureUlcerLengthBean, PressureUlcerWidthBean, StageOfMostProblematicPressUlcerBean, StasisUlcerBean, StatusMostProblematicPressUlcerBean, StatusMostProblematicStasisUlcerBean, StatusMostProblematicSurgicalWoundBean, SurgicalWoundBean, TherapyNeedNABean, TherapyNeedNumberOfVisitsBean, TherapyNoneAboveBean, ToiletingBean, UnhealedStage2PressureUlcerBean, UnobservedPressureUlcerBean, UnobservedStasisUlcerBean, UrinaryIncontinenceBean, UrinaryIncontinenceTimingBean, VisionBean, WhenDyspneicBean, WhenUrinaryIncontinenceOccursBean

public class BaseHomeHealthBean
extends java.lang.Object
implements java.io.Serializable

This is the base bean for providing valid values for text fields

See Also:
Serialized Form

Field Summary
protected  java.lang.String[] valueLabels
           
 
Constructor Summary
BaseHomeHealthBean()
           
BaseHomeHealthBean(java.lang.String title, java.lang.String[] values)
           
 
Method Summary
 java.lang.String getTitle()
           
 java.lang.String[] getValidValues()
           
 java.lang.String getValidValues(int index)
           
 java.lang.String[] getValueLabels()
          Get the value of valueLabels
 java.lang.String getValueLabels(int index)
          Get the value of valueLabels at specified index
 boolean isValidValue(java.lang.String actualValue)
          Utility method to check the actualValue against the validValues.
 void setTitle(java.lang.String title)
           
 void setValidValues(int index, java.lang.String line)
           
 void setValidValues(java.lang.String[] lines)
           
 void setValueLabels(int index, java.lang.String newValueLabels)
          Set the value of valueLabels at specified index.
 void setValueLabels(java.lang.String[] valueLabels)
          Set the value of valueLabels
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

valueLabels

protected java.lang.String[] valueLabels
Constructor Detail

BaseHomeHealthBean

public BaseHomeHealthBean()

BaseHomeHealthBean

public BaseHomeHealthBean(java.lang.String title,
                          java.lang.String[] values)
Method Detail

getTitle

public java.lang.String getTitle()

setTitle

public void setTitle(java.lang.String title)

getValidValues

public java.lang.String[] getValidValues()

getValidValues

public java.lang.String getValidValues(int index)

setValidValues

public void setValidValues(java.lang.String[] lines)

setValidValues

public void setValidValues(int index,
                           java.lang.String line)

isValidValue

public boolean isValidValue(java.lang.String actualValue)
Utility method to check the actualValue against the validValues.

Parameters:
actualValue - can be null
validValues - can not be null or length = 0
Returns:
true if the actualValue is contained within the valueValues

getValueLabels

public java.lang.String[] getValueLabels()
Get the value of valueLabels

Returns:
the value of valueLabels

setValueLabels

public void setValueLabels(java.lang.String[] valueLabels)
Set the value of valueLabels

Parameters:
valueLabels - new value of valueLabels

getValueLabels

public java.lang.String getValueLabels(int index)
Get the value of valueLabels at specified index

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

setValueLabels

public void setValueLabels(int index,
                           java.lang.String newValueLabels)
Set the value of valueLabels at specified index.

Parameters:
index -
newValueLabels - new value of valueLabels at specified index