001: /*
002: * CoadunationAdmin: The admin frontend for coadunation.
003: * Copyright (C) 2007 - 2008 Rift IT Contracting
004: *
005: * This library is free software; you can redistribute it and/or
006: * modify it under the terms of the GNU Lesser General Public
007: * License as published by the Free Software Foundation; either
008: * version 2.1 of the License, or (at your option) any later version.
009: *
010: * This library is distributed in the hope that it will be useful,
011: * but WITHOUT ANY WARRANTY; without even the implied warranty of
012: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
013: * Lesser General Public License for more details.
014: *
015: * You should have received a copy of the GNU Lesser General Public
016: * License along with this library; if not, write to the Free Software
017: * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
018: *
019: * ParameterDef.java
020: */
021:
022: // package defintion
023: package com.rift.coad.web.admin.client;
024:
025: // imports
026: import com.google.gwt.user.client.rpc.IsSerializable;
027:
028: /**
029: * This object represents a parameter definition.
030: *
031: * @author brett chaldecott
032: */
033: public class VariableDef implements IsSerializable {
034:
035: // private member variables
036: private String name = null;
037: private String type = null;
038: private String description = null;
039: private String value = null;
040:
041: /**
042: * Creates a new instance of ParameterDef
043: */
044: public VariableDef() {
045: }
046:
047: /**
048: * Creates a new instance of ParameterDef
049: *
050: * @param name The name of the parameter.
051: * @param type The type of the parameter.
052: * @param description The description of the parameter.
053: */
054: public VariableDef(String name, String type, String description) {
055: this .name = name;
056: this .type = type;
057: this .description = description;
058: }
059:
060: /**
061: * This method returns the name of the parameter.
062: *
063: * @return The name of this parameter.
064: */
065: public String getName() {
066: return name;
067: }
068:
069: /**
070: * This method returns the name of the parameter.
071: *
072: * @param name The name of this parameter.
073: */
074: public void getName(String name) {
075: this .name = name;
076: }
077:
078: /**
079: * This method returns the type.
080: */
081: public String getType() {
082: return type;
083: }
084:
085: /**
086: * This method returns the type.
087: *
088: * @param type The type of parameter.
089: */
090: public void getType(String type) {
091: this .type = type;
092: }
093:
094: /**
095: * This method returns the description.
096: *
097: * @return The description of this variable.
098: */
099: public String getDescription() {
100: return description;
101: }
102:
103: /**
104: * This method sets the description of the variable.
105: *
106: * @param description The description of the variable.
107: */
108: public void setDescription(String description) {
109: this .description = description;
110: }
111:
112: /**
113: * This method returns the value of the variable.
114: *
115: * @return The value of the variable.
116: */
117: public String getValue() {
118: return value;
119: }
120:
121: /**
122: * This method sets the value of the variable.
123: *
124: *
125: * @param value The new value to set.
126: */
127: public void setValue(String value) {
128: this.value = value;
129: }
130: }
|