From: cvs@openprivacy.orgCVS update: talon/src/java/talon/interfaces
Date: Sunday March 11, 19101 @ 1:21
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-serv19426/src/java/talon/interfaces
Modified Files:
PropertyManager.java
Log Message:
now we can't have duplicate property names
*****************************************************************
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.9
CVSWeb: View this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/talon/src/java/talon/interfaces/PropertyManager.java?rev=1.9&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.9&r2=1.8
-----------------------------------
Index: talon/src/java/talon/interfaces/PropertyManager.java
diff -u talon/src/java/talon/interfaces/PropertyManager.java:1.8 talon/src/java/talon/interfaces/PropertyManager.java:1.9
--- talon/src/java/talon/interfaces/PropertyManager.java:1.8 Fri Mar 9 16:10:43 2001
+++ talon/src/java/talon/interfaces/PropertyManager.java Sun Mar 11 01:21:42 2001
@@ -13,12 +13,13 @@
import java.util.*;
import talon.*;
import talon.Component;
+import talon.interfaces.exceptions.*;
/**
* Class similar to java.lang.Properties
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: PropertyManager.java,v 1.8 2001/03/10 00:10:43 burton Exp $
+ * @version $Id: PropertyManager.java,v 1.9 2001/03/11 09:21:42 burton Exp $
*/
public interface PropertyManager extends Component, Dumpable {
@@ -26,7 +27,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.8 2001/03/10 00:10:43 burton Exp $
+ * @version $Id: PropertyManager.java,v 1.9 2001/03/11 09:21:42 burton Exp $
*/
public Object getProperty( String name );
@@ -34,7 +35,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.8 2001/03/10 00:10:43 burton Exp $
+ * @version $Id: PropertyManager.java,v 1.9 2001/03/11 09:21:42 burton Exp $
*/
public Object getProperty( String name, Object value );
@@ -42,7 +43,7 @@
* Set a property
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: PropertyManager.java,v 1.8 2001/03/10 00:10:43 burton Exp $
+ * @version $Id: PropertyManager.java,v 1.9 2001/03/11 09:21:42 burton Exp $
*/
public PropertyManager setProperty( String name, Object value );
@@ -50,7 +51,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.8 2001/03/10 00:10:43 burton Exp $
+ * @version $Id: PropertyManager.java,v 1.9 2001/03/11 09:21:42 burton Exp $
*/
public boolean getBoolean( String name );
@@ -59,7 +60,7 @@
* Set a boolean property
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: PropertyManager.java,v 1.8 2001/03/10 00:10:43 burton Exp $
+ * @version $Id: PropertyManager.java,v 1.9 2001/03/11 09:21:42 burton Exp $
*/
public PropertyManager setBoolean( String namme, boolean value );
@@ -67,7 +68,7 @@
* get a string property
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: PropertyManager.java,v 1.8 2001/03/10 00:10:43 burton Exp $
+ * @version $Id: PropertyManager.java,v 1.9 2001/03/11 09:21:42 burton Exp $
*/
public String getString( String _name );
@@ -75,7 +76,7 @@
* get a string property but specify a default.
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: PropertyManager.java,v 1.8 2001/03/10 00:10:43 burton Exp $
+ * @version $Id: PropertyManager.java,v 1.9 2001/03/11 09:21:42 burton Exp $
*/
public String getString( String _name, String _default );
@@ -83,7 +84,7 @@
* Set a string property
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: PropertyManager.java,v 1.8 2001/03/10 00:10:43 burton Exp $
+ * @version $Id: PropertyManager.java,v 1.9 2001/03/11 09:21:42 burton Exp $
*/
public PropertyManager setString( String _name, String _value );
@@ -103,7 +104,7 @@
* requested a name of "example".
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: PropertyManager.java,v 1.8 2001/03/10 00:10:43 burton Exp $
+ * @version $Id: PropertyManager.java,v 1.9 2001/03/11 09:21:42 burton Exp $
*/
public Vector getVector( String name );
@@ -127,7 +128,7 @@
*
* @see getVector#
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: PropertyManager.java,v 1.8 2001/03/10 00:10:43 burton Exp $
+ * @version $Id: PropertyManager.java,v 1.9 2001/03/11 09:21:42 burton Exp $
*/
public PropertyManager getGroup( String key );
@@ -135,7 +136,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.8 2001/03/10 00:10:43 burton Exp $
+ * @version $Id: PropertyManager.java,v 1.9 2001/03/11 09:21:42 burton Exp $
*/
public Enumeration getKeys();
@@ -144,16 +145,25 @@
* They are not found then we should throw and Exception.
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: PropertyManager.java,v 1.8 2001/03/10 00:10:43 burton Exp $
+ * @version $Id: PropertyManager.java,v 1.9 2001/03/11 09:21:42 burton Exp $
*/
- public void require( String[] properties ) throws TalonException;
+ public void require( String[] properties ) throws RequiredPropertyException;
/**
* Return true if the given key exists within this PropertyManager
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: PropertyManager.java,v 1.8 2001/03/10 00:10:43 burton Exp $
+ * @version $Id: PropertyManager.java,v 1.9 2001/03/11 09:21:42 burton Exp $
*/
- public boolean exists( String key );
+ public boolean containsKey( String key );
+
+ /**
+ * Return true if the given object exists within this PropertyManager
+ *
+ * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
+ * @version $Id: PropertyManager.java,v 1.9 2001/03/11 09:21:42 burton Exp $
+ */
+ public boolean contains( Object object );
+
}
This archive was generated by hypermail 2b30 : Sun Mar 11 2001 - 01:22:14 PST