From: cvs@openprivacy.orgCVS update: talon/src/java/talon/interfaces
Date: Wednesday February 7, 19101 @ 0:17
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/interfaces
-----------------------------------
Update of /usr/local/cvs/public/talon/src/java/talon/interfaces
In directory giga:/tmp/cvs-serv11129/src/java/talon/interfaces
Modified Files:
PropertyManager.java
Log Message:
needed to have smarter property management so that we can serve default components
*****************************************************************
File: talon/src/java/talon/interfaces/PropertyManager.java
CVSWEB Options: -------------------
CVSWeb: Annotate this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/talon/src/java/talon/interfaces/PropertyManager.java?annotate=1.4
CVSWeb: View this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/talon/src/java/talon/interfaces/PropertyManager.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/interfaces/PropertyManager.java.diff?r1=1.4&r2=1.3
-----------------------------------
Index: talon/src/java/talon/interfaces/PropertyManager.java
diff -u talon/src/java/talon/interfaces/PropertyManager.java:1.3 talon/src/java/talon/interfaces/PropertyManager.java:1.4
--- talon/src/java/talon/interfaces/PropertyManager.java:1.3 Thu Jan 25 11:05:18 2001
+++ talon/src/java/talon/interfaces/PropertyManager.java Wed Feb 7 00:17:14 2001
@@ -16,7 +16,7 @@
* Class similar to java.lang.Properties
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: PropertyManager.java,v 1.3 2001/01/25 19:05:18 burton Exp $
+ * @version $Id: PropertyManager.java,v 1.4 2001/02/07 08:17:14 burton Exp $
*/
public interface PropertyManager {
@@ -24,7 +24,7 @@
* Get a given property from parsed props.
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: PropertyManager.java,v 1.3 2001/01/25 19:05:18 burton Exp $
+ * @version $Id: PropertyManager.java,v 1.4 2001/02/07 08:17:14 burton Exp $
*/
public String getProperty( String name );
@@ -32,7 +32,7 @@
* Get a given property from parsed props. Return default if it is not defined.
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: PropertyManager.java,v 1.3 2001/01/25 19:05:18 burton Exp $
+ * @version $Id: PropertyManager.java,v 1.4 2001/02/07 08:17:14 burton Exp $
*/
public String getProperty( String name, String value );
@@ -40,7 +40,7 @@
* Get a property but assume it is a boolean
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: PropertyManager.java,v 1.3 2001/01/25 19:05:18 burton Exp $
+ * @version $Id: PropertyManager.java,v 1.4 2001/02/07 08:17:14 burton Exp $
*/
public boolean getBoolean( String name );
@@ -51,19 +51,35 @@
* example.0=foo
* example.1=bar
*
- * This would return an array which contained "foo" and "bar" if you
+ * This would return a Vector which contained "foo" and "bar" if you
* requested a name of "example".
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: PropertyManager.java,v 1.3 2001/01/25 19:05:18 burton Exp $
+ * @version $Id: PropertyManager.java,v 1.4 2001/02/07 08:17:14 burton Exp $
*/
public Vector getVector( String name );
+
+ /**
+ * Similar to getVector but returns every property with the given key.
+ *
+ * example.0.foo_name=foo_value
+ * example.0.bar_name=bar_value
+ *
+ * This would return a Hashtable which contained "foo_name" and "bar_var" if you
+ * requested a name of "example.0". Note that the key is removed so that
+ * this Hashtable can be passed in a logical manner.
+ *
+ * @see getVector#
+ * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
+ * @version $Id: PropertyManager.java,v 1.4 2001/02/07 08:17:14 burton Exp $
+ */
+ public Hashtable getGroup( String key );
/**
* Set a property
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: PropertyManager.java,v 1.3 2001/01/25 19:05:18 burton Exp $
+ * @version $Id: PropertyManager.java,v 1.4 2001/02/07 08:17:14 burton Exp $
*/
public PropertyManager setProperty( String name, String value );
@@ -71,7 +87,7 @@
* Set a boolean property
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: PropertyManager.java,v 1.3 2001/01/25 19:05:18 burton Exp $
+ * @version $Id: PropertyManager.java,v 1.4 2001/02/07 08:17:14 burton Exp $
*/
public PropertyManager setBoolean( String namme, boolean value );
@@ -79,7 +95,7 @@
* Get all known keys for registered properties.
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: PropertyManager.java,v 1.3 2001/01/25 19:05:18 burton Exp $
+ * @version $Id: PropertyManager.java,v 1.4 2001/02/07 08:17:14 burton Exp $
*/
public Enumeration getKeys();
This archive was generated by hypermail 2b30 : Wed Feb 07 2001 - 00:18:16 PST