ReconfiguredProp.java

00001 /*
00002  * JOnAS: Java(TM) Open Application Server
00003  * Copyright (C) 1999 Bull S.A.
00004  * Contact: jonas-team@objectweb.org
00005  * 
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Lesser General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2.1 of the License, or any later version.
00010  * 
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Lesser General Public License for more details.
00015  * 
00016  * You should have received a copy of the GNU Lesser General Public
00017  * License along with this library; if not, write to the Free Software
00018  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
00019  * USA
00020  *
00021  * Initial developer(s): Adriana Danes
00022  * Contributor(s):
00023  *
00024  * --------------------------------------------------------------------------
00025  * $Id: ReconfiguredProp.java,v 1.3 2003/05/16 08:58:15 benoitf Exp $
00026  * --------------------------------------------------------------------------
00027  */
00028 package org.objectweb.jonas.management;
00029 
00030 import java.util.Properties;
00031 
00035 public class ReconfiguredProp implements Reconfigured {
00036     String propName;
00037     String propValue;
00038     Properties props;
00039 
00045     boolean replace;
00049     boolean add; 
00050         
00051     public ReconfiguredProp(String propName, String propValue, boolean replace) {
00052         this.propName = propName;
00053         this.propValue = propValue;
00054         this.replace = replace;
00055     }
00056 
00057     public ReconfiguredProp(String propName, String propValue) {
00058         this(propName, propValue, true);
00059     }
00060 
00061     public String getPropName() {
00062         return propName;
00063     }
00064 
00065     public String getPropValue() {
00066         return propValue;
00067     }
00068 
00069     public void setProps(Properties props) {
00070         this.props = props;
00071     }
00072 
00073     public Properties getProps() {
00074         return props;
00075     }
00076 
00077     public boolean replaceProp() {
00078         return replace;
00079     }
00080 
00081     public void setAdd(boolean add) {
00082         this.add = add;
00083     }
00084 
00085     public boolean addProp() {
00086         return add;
00087     }
00088 }

Generated on Tue Feb 15 15:05:18 2005 for JOnAS by  doxygen 1.3.9.1