From: cvs@openprivacy.orgCVS update: talon/src/java/talon/util
Date: Wednesday February 7, 19101 @ 1:59
Author: burton
CVSWEB Options: -------------------
Main CVSWeb: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi
View this module: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/talon/src/java/talon/util
-----------------------------------
Update of /usr/local/cvs/public/talon/src/java/talon/util
In directory giga:/tmp/cvs-serv11350/src/java/talon/util
Modified Files:
BasePropertyManager.java
Log Message:
...
*****************************************************************
File: talon/src/java/talon/util/BasePropertyManager.java
CVSWEB Options: -------------------
CVSWeb: Annotate this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/talon/src/java/talon/util/BasePropertyManager.java?annotate=1.4
CVSWeb: View this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/talon/src/java/talon/util/BasePropertyManager.java?rev=1.4&content-type=text/x-cvsweb-markup
CVSWeb: Diff to previous version: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/talon/src/java/talon/util/BasePropertyManager.java.diff?r1=1.4&r2=1.3
-----------------------------------
Index: talon/src/java/talon/util/BasePropertyManager.java
diff -u talon/src/java/talon/util/BasePropertyManager.java:1.3 talon/src/java/talon/util/BasePropertyManager.java:1.4
--- talon/src/java/talon/util/BasePropertyManager.java:1.3 Wed Feb 7 00:17:15 2001
+++ talon/src/java/talon/util/BasePropertyManager.java Wed Feb 7 01:59:34 2001
@@ -20,17 +20,16 @@
* Base class for handling properties.
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: BasePropertyManager.java,v 1.3 2001/02/07 08:17:15 burton Exp $
+ * @version $Id: BasePropertyManager.java,v 1.4 2001/02/07 09:59:34 burton Exp $
*/
public abstract class BasePropertyManager extends BaseComponent implements Component, PropertyManager {
private Properties props = new Properties();
-
/**
* @see PropertyManager
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: BasePropertyManager.java,v 1.3 2001/02/07 08:17:15 burton Exp $
+ * @version $Id: BasePropertyManager.java,v 1.4 2001/02/07 09:59:34 burton Exp $
*/
public String getProperty( String name ) {
return this.props.getProperty( name );
@@ -39,7 +38,7 @@
/**
* @see PropertyManager
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: BasePropertyManager.java,v 1.3 2001/02/07 08:17:15 burton Exp $
+ * @version $Id: BasePropertyManager.java,v 1.4 2001/02/07 09:59:34 burton Exp $
*/
public String getProperty( String name, String _default ) {
@@ -55,7 +54,7 @@
/**
* @see PropertyManager
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: BasePropertyManager.java,v 1.3 2001/02/07 08:17:15 burton Exp $
+ * @version $Id: BasePropertyManager.java,v 1.4 2001/02/07 09:59:34 burton Exp $
*/
public boolean getBoolean( String name ) {
String value = getProperty( name );
@@ -72,7 +71,7 @@
/**
* @see PropertyManager
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: BasePropertyManager.java,v 1.3 2001/02/07 08:17:15 burton Exp $
+ * @version $Id: BasePropertyManager.java,v 1.4 2001/02/07 09:59:34 burton Exp $
*/
public Vector getVector( String name ) {
@@ -100,13 +99,12 @@
/**
* @see PropertyManager
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: BasePropertyManager.java,v 1.3 2001/02/07 08:17:15 burton Exp $
+ * @version $Id: BasePropertyManager.java,v 1.4 2001/02/07 09:59:34 burton Exp $
*/
public Hashtable getGroup( String key ) {
Enumeration keys = getKeys();
Hashtable result = new Hashtable();
-
while ( keys.hasMoreElements() ) {
@@ -126,13 +124,19 @@
}
- return result;
+ //if no values were found... return null
+ if ( result.size() == 0 ) {
+ return null;
+ } else {
+ return result;
+ }
+
}
/**
* @see PropertyManager
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: BasePropertyManager.java,v 1.3 2001/02/07 08:17:15 burton Exp $
+ * @version $Id: BasePropertyManager.java,v 1.4 2001/02/07 09:59:34 burton Exp $
*/
public PropertyManager setProperty( String name, String value ) {
this.props.put( name, value );
@@ -142,7 +146,7 @@
/**
* @see PropertyManager
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: BasePropertyManager.java,v 1.3 2001/02/07 08:17:15 burton Exp $
+ * @version $Id: BasePropertyManager.java,v 1.4 2001/02/07 09:59:34 burton Exp $
*/
public PropertyManager setBoolean( String name, boolean value ) {
@@ -157,7 +161,7 @@
/**
* @see PropertyManager
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: BasePropertyManager.java,v 1.3 2001/02/07 08:17:15 burton Exp $
+ * @version $Id: BasePropertyManager.java,v 1.4 2001/02/07 09:59:34 burton Exp $
*/
public Enumeration getKeys() {
return this.props.keys();
@@ -167,12 +171,10 @@
*
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: BasePropertyManager.java,v 1.3 2001/02/07 08:17:15 burton Exp $
+ * @version $Id: BasePropertyManager.java,v 1.4 2001/02/07 09:59:34 burton Exp $
*/
public void setProperties( Properties props ) {
-
this.props = props;
-
}
}
This archive was generated by hypermail 2b30 : Wed Feb 07 2001 - 02:00:05 PST