001: /**
002: * JOnAS: Java(TM) Open Application Server
003: * Copyright (C) 1999 Bull S.A.
004: * Contact: jonas-team@objectweb.org
005: *
006: * This library is free software; you can redistribute it and/or
007: *
008: * modify it under the terms of the GNU Lesser General Public
009: * License as published by the Free Software Foundation; either
010: * version 2.1 of the License, or 1any later version.
011: *
012: * This library is distributed in the hope that it will be useful,
013: * but WITHOUT ANY WARRANTY; without even the implied warranty of
014: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
015: * Lesser General Public License for more details.
016: *
017: * You should have received a copy of the GNU Lesser General Public
018: * License along with this library; if not, write to the Free Software
019: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
020: * USA
021: *
022: * Initial developer: Eric Hardesty
023: * --------------------------------------------------------------------------
024: * $Id: ConfigPropertyDesc.java 5760 2004-11-17 20:54:07Z ehardesty $
025: * --------------------------------------------------------------------------
026: */package org.objectweb.jonas_rar.deployment.api;
027:
028: import java.io.Serializable;
029: import java.util.List;
030:
031: import org.objectweb.jonas_rar.deployment.xml.ConfigProperty;
032:
033: /**
034: * This class defines the implementation of the element config-property
035: *
036: * @author Eric Hardesty
037: */
038:
039: public class ConfigPropertyDesc implements Serializable {
040:
041: /**
042: * description
043: */
044: private List descriptionList = null;
045:
046: /**
047: * config-property-name
048: */
049: private String configPropertyName = null;
050:
051: /**
052: * config-property-type
053: */
054: private String configPropertyType = null;
055:
056: /**
057: * config-property-value
058: */
059: private String configPropertyValue = null;
060:
061: /**
062: * Constructor
063: */
064: public ConfigPropertyDesc() {
065: }
066:
067: public ConfigPropertyDesc(ConfigProperty cp) {
068: if (cp != null) {
069: descriptionList = cp.getDescriptionList();
070: configPropertyName = cp.getConfigPropertyName();
071: configPropertyType = cp.getConfigPropertyType();
072: configPropertyValue = cp.getConfigPropertyValue();
073: }
074: }
075:
076: public ConfigPropertyDesc(ConfigPropertyDesc cpd) {
077: descriptionList = cpd.getDescriptionList();
078: configPropertyName = cpd.getConfigPropertyName();
079: configPropertyType = cpd.getConfigPropertyType();
080: configPropertyValue = cpd.getConfigPropertyValue();
081: }
082:
083: /**
084: * Gets the description
085: * @return the description
086: */
087: public List getDescriptionList() {
088: return descriptionList;
089: }
090:
091: /**
092: * Gets the config-property-name
093: * @return the config-property-name
094: */
095: public String getConfigPropertyName() {
096: return configPropertyName;
097: }
098:
099: /**
100: * Set the config-property-name
101: * @param configPropertyName configPropertyName
102: */
103: public void setConfigPropertyName(String configPropertyName) {
104: this .configPropertyName = configPropertyName;
105: }
106:
107: /**
108: * Gets the config-property-type
109: * @return the config-property-type
110: */
111: public String getConfigPropertyType() {
112: return configPropertyType;
113: }
114:
115: /**
116: * Set the config-property-type
117: * @param configPropertyType configPropertyType
118: */
119: public void setConfigPropertyType(String configPropertyType) {
120: this .configPropertyType = configPropertyType;
121: }
122:
123: /**
124: * Gets the config-property-value
125: * @return the config-property-value
126: */
127: public String getConfigPropertyValue() {
128: return configPropertyValue;
129: }
130:
131: /**
132: * Set the config-property-value
133: * @param configPropertyValue configPropertyValue
134: */
135: public void setConfigPropertyValue(String configPropertyValue) {
136: this.configPropertyValue = configPropertyValue;
137: }
138: }
|