001: /*
002: * BEGIN_HEADER - DO NOT EDIT
003: *
004: * The contents of this file are subject to the terms
005: * of the Common Development and Distribution License
006: * (the "License"). You may not use this file except
007: * in compliance with the License.
008: *
009: * You can obtain a copy of the license at
010: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
011: * See the License for the specific language governing
012: * permissions and limitations under the License.
013: *
014: * When distributing Covered Code, include this CDDL
015: * HEADER in each file and include the License file at
016: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
017: * If applicable add the following below this CDDL HEADER,
018: * with the fields enclosed by brackets "[]" replaced with
019: * your own identifying information: Portions Copyright
020: * [year] [name of copyright owner]
021: */
022:
023: /*
024: * @(#)AppVariable.java
025: * Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved.
026: *
027: * END_HEADER - DO NOT EDIT
028: */
029: package com.sun.jbi.ui.ant;
030:
031: import java.lang.Comparable;
032:
033: public class AppVariable implements Comparable {
034: /**
035: * Holds value of property name.
036: */
037: private String mName;
038: private String mType;
039: private String mValue;
040:
041: /**
042: * default public constructor
043: */
044: public AppVariable() {
045: mName = "";
046: mType = "";
047: mValue = "";
048: }
049:
050: /**
051: * public constructor
052: */
053: public AppVariable(String theName, String theType, String theValue) {
054: mName = theName;
055: mType = theType;
056: mValue = theValue;
057: }
058:
059: /**
060: * Getter for property name.
061: * @return Value of property name.
062: */
063: public String getName() {
064: return mName;
065: }
066:
067: /**
068: * Setter for property name.
069: * @param key New value of property name.
070: */
071: public void setName(String name) {
072: mName = name;
073: }
074:
075: /**
076: * Getter for property type.
077: * @return Value of property type.
078: */
079: public String getType() {
080: return mType;
081: }
082:
083: /**
084: * Setter for property type.
085: * @param type New value of property type.
086: */
087: public void setType(String type) {
088: mType = type;
089: }
090:
091: /**
092: * Getter for property value.
093: * @return Value of property value.
094: */
095: public String getValue() {
096: return mValue;
097: }
098:
099: /**
100: * Setter for property value.
101: * @param value New value of property value.
102: */
103: public void setValue(String value) {
104: mValue = value;
105: }
106:
107: public int compareTo(Object T) throws ClassCastException {
108: return ("" + mName).compareTo(((AppVariable) T).getName());
109: }
110: }
|