001: //=== Copyright (C) 2001-2005 Food and Agriculture Organization of the
002: //=== United Nations (FAO-UN), United Nations World Food Programme (WFP)
003: //=== and United Nations Environment Programme (UNEP)
004: //===
005: //=== This program is free software; you can redistribute it and/or modify
006: //=== it under the terms of the GNU General Public License as published by
007: //=== the Free Software Foundation; either version 2 of the License, or (at
008: //=== your option) any later version.
009: //===
010: //=== This program is distributed in the hope that it will be useful, but
011: //=== WITHOUT ANY WARRANTY; without even the implied warranty of
012: //=== MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
013: //=== General Public License for more details.
014: //===
015: //=== You should have received a copy of the GNU General Public License
016: //=== along with this program; if not, write to the Free Software
017: //=== Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
018: //===
019: //=== Contact: Jeroen Ticheler - FAO - Viale delle Terme di Caracalla 2,
020: //=== Rome - Italy. email: GeoNetwork@fao.org
021: //==============================================================================
022:
023: package org.fao.geonet.kernel;
024:
025: public class KeywordBean {
026: private int id;
027: private String value;
028: private String lang;
029: private String definition;
030: private String code;
031: private String coordEast;
032: private String coordWest;
033: private String coordSouth;
034: private String coordNorth;
035: private String thesaurus;
036: private boolean selected;
037:
038: /**
039: * @param id
040: * @param value
041: * @param definition
042: * @param code
043: * @param coordEast
044: * @param coordWest
045: * @param coordSouth
046: * @param coordNorth
047: * @param thesaurus
048: * @param selected
049: */
050: public KeywordBean(int id, String value, String definition,
051: String code, String coordEast, String coordWest,
052: String coordSouth, String coordNorth, String thesaurus,
053: boolean selected, String lang) {
054: super ();
055: this .id = id;
056: this .value = value;
057: this .lang = lang;
058: this .definition = definition;
059: this .code = code;
060: this .coordEast = coordEast;
061: this .coordWest = coordWest;
062: this .coordSouth = coordSouth;
063: this .coordNorth = coordNorth;
064: this .thesaurus = thesaurus;
065: this .selected = selected;
066: }
067:
068: /**
069: * @param id
070: * @param value
071: * @param definition
072: * @param thesaurus
073: * @param selected
074: */
075: public KeywordBean(int id, String value, String definition,
076: String thesaurus, boolean selected) {
077: super ();
078: this .id = id;
079: this .value = value;
080: this .definition = definition;
081: this .thesaurus = thesaurus;
082: this .selected = selected;
083: }
084:
085: /**
086: * @param value
087: * @param definition
088: * @param thesaurus
089: * @param selected
090: */
091: public KeywordBean(String value, String definition,
092: String thesaurus, boolean selected) {
093: super ();
094: this .value = value;
095: this .definition = definition;
096: this .thesaurus = thesaurus;
097: this .selected = selected;
098: }
099:
100: public String getDefinition() {
101: return definition;
102: }
103:
104: public void setDefinition(String definition) {
105: this .definition = definition;
106: }
107:
108: public String getLang() {
109: return lang;
110: }
111:
112: public void setLang(String lang) {
113: this .lang = lang;
114: }
115:
116: public boolean isSelected() {
117: return selected;
118: }
119:
120: public void setSelected(boolean selected) {
121: this .selected = selected;
122: }
123:
124: public String getThesaurus() {
125: return thesaurus;
126: }
127:
128: public void setThesaurus(String thesaurus) {
129: this .thesaurus = thesaurus;
130: }
131:
132: public String getValue() {
133: return value;
134: }
135:
136: public void setValue(String value) {
137: this .value = value;
138: }
139:
140: public int getId() {
141: return id;
142: }
143:
144: public void setId(int id) {
145: this .id = id;
146: }
147:
148: /*
149: * return the URI of the keyword concept
150: */
151: public String getCode() {
152: return code;
153: }
154:
155: public String getRelativeCode() {
156: String tmpres = code;
157: String res = tmpres.split("#")[1];
158: return res;
159: }
160:
161: public String getNameSpaceCode() {
162: String tmpres = code;
163: String res = tmpres.split("#")[0] + "#";
164: return res;
165: }
166:
167: public void setCode(String code) {
168: this .code = code;
169: }
170:
171: public String getCoordEast() {
172: return coordEast;
173: }
174:
175: public void setCoordEast(String coordEast) {
176: this .coordEast = coordEast;
177: }
178:
179: public String getCoordNorth() {
180: return coordNorth;
181: }
182:
183: public void setCoordNorth(String coordNorth) {
184: this .coordNorth = coordNorth;
185: }
186:
187: public String getCoordWest() {
188: return coordWest;
189: }
190:
191: public void setCoordWest(String coordWest) {
192: this .coordWest = coordWest;
193: }
194:
195: public String getCoordSouth() {
196: return coordSouth;
197: }
198:
199: public void setCoordSouth(String coordSouth) {
200: this.coordSouth = coordSouth;
201: }
202: }
|