[507] | 1 | package gov.hhs.fha.nhinc.connectmgr.data;
|
---|
| 2 |
|
---|
| 3 | /**
|
---|
| 4 | * This class is used to contain the basic information about a home community.
|
---|
| 5 | *
|
---|
| 6 | * @author Les Westberg
|
---|
| 7 | */
|
---|
| 8 | public class CMHomeCommunity
|
---|
| 9 | {
|
---|
| 10 | private String homeCommunityId = "";
|
---|
| 11 | private String name = "";
|
---|
| 12 | private String description = "";
|
---|
| 13 |
|
---|
| 14 | /**
|
---|
| 15 | * Default constructor.
|
---|
| 16 | */
|
---|
| 17 | public CMHomeCommunity()
|
---|
| 18 | {
|
---|
| 19 | clear();
|
---|
| 20 | }
|
---|
| 21 |
|
---|
| 22 | /**
|
---|
| 23 | * Set this object to its default state.
|
---|
| 24 | */
|
---|
| 25 | public void clear()
|
---|
| 26 | {
|
---|
| 27 | homeCommunityId = "";
|
---|
| 28 | name = "";
|
---|
| 29 | description = "";
|
---|
| 30 | }
|
---|
| 31 |
|
---|
| 32 | /**
|
---|
| 33 | * Returns true of the contents of the object are the same as the one
|
---|
| 34 | * passed in.
|
---|
| 35 | *
|
---|
| 36 | * @param oCompare The object to compare.
|
---|
| 37 | * @return TRUE if the contents are the same as the one passed in.
|
---|
| 38 | */
|
---|
| 39 | public boolean equals(CMHomeCommunity oCompare)
|
---|
| 40 | {
|
---|
| 41 | if (!this.homeCommunityId.equals(oCompare.homeCommunityId))
|
---|
| 42 | {
|
---|
| 43 | return false;
|
---|
| 44 | }
|
---|
| 45 |
|
---|
| 46 | if (!this.name.equals(oCompare.name))
|
---|
| 47 | {
|
---|
| 48 | return false;
|
---|
| 49 | }
|
---|
| 50 |
|
---|
| 51 | if (!this.description.equals(oCompare.description))
|
---|
| 52 | {
|
---|
| 53 | return false;
|
---|
| 54 | }
|
---|
| 55 |
|
---|
| 56 | return true;
|
---|
| 57 | }
|
---|
| 58 |
|
---|
| 59 | /**
|
---|
| 60 | * Returns the description of the home community.
|
---|
| 61 | *
|
---|
| 62 | * @return The description of the home community.
|
---|
| 63 | */
|
---|
| 64 | public String getDescription()
|
---|
| 65 | {
|
---|
| 66 | return description;
|
---|
| 67 | }
|
---|
| 68 |
|
---|
| 69 | /**
|
---|
| 70 | * Sets the description of the home community.
|
---|
| 71 | *
|
---|
| 72 | * @param description The description of the home community.
|
---|
| 73 | */
|
---|
| 74 | public void setDescription(String description)
|
---|
| 75 | {
|
---|
| 76 | this.description = description;
|
---|
| 77 | }
|
---|
| 78 |
|
---|
| 79 | /**
|
---|
| 80 | * Returns the home community Id for this home community.
|
---|
| 81 | *
|
---|
| 82 | * @return The home community Id for this home community.
|
---|
| 83 | */
|
---|
| 84 | public String getHomeCommunityId()
|
---|
| 85 | {
|
---|
| 86 | return homeCommunityId;
|
---|
| 87 | }
|
---|
| 88 |
|
---|
| 89 | /**
|
---|
| 90 | * Sets the home community Id for this home community.
|
---|
| 91 | *
|
---|
| 92 | * @param homeCommunityId The home community Id for this home community.
|
---|
| 93 | */
|
---|
| 94 | public void setHomeCommunityId(String homeCommunityId)
|
---|
| 95 | {
|
---|
| 96 | this.homeCommunityId = homeCommunityId;
|
---|
| 97 | }
|
---|
| 98 |
|
---|
| 99 | /**
|
---|
| 100 | * Returns the name of this home community.
|
---|
| 101 | *
|
---|
| 102 | * @return The name of this home community.
|
---|
| 103 | */
|
---|
| 104 | public String getName()
|
---|
| 105 | {
|
---|
| 106 | return name;
|
---|
| 107 | }
|
---|
| 108 |
|
---|
| 109 | /**
|
---|
| 110 | * Sets the name of this home community.
|
---|
| 111 | *
|
---|
| 112 | * @param name The name of this home community.
|
---|
| 113 | */
|
---|
| 114 | public void setName(String name)
|
---|
| 115 | {
|
---|
| 116 | this.name = name;
|
---|
| 117 | }
|
---|
| 118 |
|
---|
| 119 | }
|
---|