From: cvs@openprivacy.orgCVS update: talon/src/java/talon/util
Date: Sunday March 11, 19101 @ 1:50
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-serv19665/src/java/talon/util
Modified Files:
BasePropertyManager.java
Log Message:
now merging init properties if given handle doesn't have any
*****************************************************************
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.9
CVSWeb: View this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/talon/src/java/talon/util/BasePropertyManager.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/util/BasePropertyManager.java.diff?r1=1.9&r2=1.8
-----------------------------------
Index: talon/src/java/talon/util/BasePropertyManager.java
diff -u talon/src/java/talon/util/BasePropertyManager.java:1.8 talon/src/java/talon/util/BasePropertyManager.java:1.9
--- talon/src/java/talon/util/BasePropertyManager.java:1.8 Sun Mar 11 01:21:43 2001
+++ talon/src/java/talon/util/BasePropertyManager.java Sun Mar 11 01:50:48 2001
@@ -22,7 +22,7 @@
* Base class for handling properties.
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: BasePropertyManager.java,v 1.8 2001/03/11 09:21:43 burton Exp $
+ * @version $Id: BasePropertyManager.java,v 1.9 2001/03/11 09:50:48 burton Exp $
*/
public abstract class BasePropertyManager extends BaseComponent implements Component, PropertyManager {
@@ -31,7 +31,7 @@
/**
* @see PropertyManager
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: BasePropertyManager.java,v 1.8 2001/03/11 09:21:43 burton Exp $
+ * @version $Id: BasePropertyManager.java,v 1.9 2001/03/11 09:50:48 burton Exp $
*/
public Object getProperty( String name ) {
return this.props.get( name );
@@ -40,7 +40,7 @@
/**
* @see PropertyManager
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: BasePropertyManager.java,v 1.8 2001/03/11 09:21:43 burton Exp $
+ * @version $Id: BasePropertyManager.java,v 1.9 2001/03/11 09:50:48 burton Exp $
*/
public Object getProperty( String name, Object _default ) {
@@ -56,7 +56,7 @@
/**
* @see PropertyManager
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: BasePropertyManager.java,v 1.8 2001/03/11 09:21:43 burton Exp $
+ * @version $Id: BasePropertyManager.java,v 1.9 2001/03/11 09:50:48 burton Exp $
*/
public boolean getBoolean( String name ) {
String value = getString( name );
@@ -74,7 +74,7 @@
/**
* @see PropertyManager
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: BasePropertyManager.java,v 1.8 2001/03/11 09:21:43 burton Exp $
+ * @version $Id: BasePropertyManager.java,v 1.9 2001/03/11 09:50:48 burton Exp $
*/
public PropertyManager setBoolean( String name, boolean value ) {
@@ -90,7 +90,7 @@
/**
* @see PropertyManager
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: BasePropertyManager.java,v 1.8 2001/03/11 09:21:43 burton Exp $
+ * @version $Id: BasePropertyManager.java,v 1.9 2001/03/11 09:50:48 burton Exp $
*/
public PropertyManager setString( String name, String value ) {
setProperty( name, value );
@@ -100,7 +100,7 @@
/**
* @see PropertyManager
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: BasePropertyManager.java,v 1.8 2001/03/11 09:21:43 burton Exp $
+ * @version $Id: BasePropertyManager.java,v 1.9 2001/03/11 09:50:48 burton Exp $
*/
public String getString( String name ) {
return (String)getProperty( name );
@@ -110,7 +110,7 @@
/**
* @see PropertyManager
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: BasePropertyManager.java,v 1.8 2001/03/11 09:21:43 burton Exp $
+ * @version $Id: BasePropertyManager.java,v 1.9 2001/03/11 09:50:48 burton Exp $
*/
public String getString( String _name, String _default ) {
@@ -128,7 +128,7 @@
/**
* @see PropertyManager
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: BasePropertyManager.java,v 1.8 2001/03/11 09:21:43 burton Exp $
+ * @version $Id: BasePropertyManager.java,v 1.9 2001/03/11 09:50:48 burton Exp $
*/
public Vector getVector( String name ) {
@@ -155,7 +155,7 @@
/**
* @see PropertyManager
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: BasePropertyManager.java,v 1.8 2001/03/11 09:21:43 burton Exp $
+ * @version $Id: BasePropertyManager.java,v 1.9 2001/03/11 09:50:48 burton Exp $
*/
public PropertyManager getGroup( String key ) {
@@ -196,7 +196,7 @@
/**
* @see PropertyManager
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: BasePropertyManager.java,v 1.8 2001/03/11 09:21:43 burton Exp $
+ * @version $Id: BasePropertyManager.java,v 1.9 2001/03/11 09:50:48 burton Exp $
*/
public PropertyManager setProperty( String name, Object value ) {
@@ -212,7 +212,7 @@
/**
* @see PropertyManager
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: BasePropertyManager.java,v 1.8 2001/03/11 09:21:43 burton Exp $
+ * @version $Id: BasePropertyManager.java,v 1.9 2001/03/11 09:50:48 burton Exp $
*/
public Enumeration getKeys() {
return this.props.keys();
@@ -221,7 +221,7 @@
/**
* @see PropertyManager
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: BasePropertyManager.java,v 1.8 2001/03/11 09:21:43 burton Exp $
+ * @version $Id: BasePropertyManager.java,v 1.9 2001/03/11 09:50:48 burton Exp $
*/
public void setProperties( Properties props ) {
this.props = props;
@@ -230,7 +230,7 @@
/**
* @see PropertyManager
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: BasePropertyManager.java,v 1.8 2001/03/11 09:21:43 burton Exp $
+ * @version $Id: BasePropertyManager.java,v 1.9 2001/03/11 09:50:48 burton Exp $
*/
public void require( String[] requirements ) throws RequiredPropertyException {
@@ -249,7 +249,7 @@
* @see PropertyManager
* @see Hashtable
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: BasePropertyManager.java,v 1.8 2001/03/11 09:21:43 burton Exp $
+ * @version $Id: BasePropertyManager.java,v 1.9 2001/03/11 09:50:48 burton Exp $
*/
public boolean containsKey( String key ) {
return props.containsKey( key );
@@ -259,7 +259,7 @@
* @see PropertyManager
* @see Hashtable
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: BasePropertyManager.java,v 1.8 2001/03/11 09:21:43 burton Exp $
+ * @version $Id: BasePropertyManager.java,v 1.9 2001/03/11 09:50:48 burton Exp $
*/
public boolean contains( Object object ) {
return props.containsKey( object );
@@ -269,7 +269,7 @@
/**
* @see PropertyManager
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: BasePropertyManager.java,v 1.8 2001/03/11 09:21:43 burton Exp $
+ * @version $Id: BasePropertyManager.java,v 1.9 2001/03/11 09:50:48 burton Exp $
*/
public void dump() {
dump( System.out );
@@ -278,7 +278,7 @@
/**
* @see PropertyManager
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: BasePropertyManager.java,v 1.8 2001/03/11 09:21:43 burton Exp $
+ * @version $Id: BasePropertyManager.java,v 1.9 2001/03/11 09:50:48 burton Exp $
*/
public void dump( PrintStream ps) {
@@ -287,7 +287,7 @@
/**
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: BasePropertyManager.java,v 1.8 2001/03/11 09:21:43 burton Exp $
+ * @version $Id: BasePropertyManager.java,v 1.9 2001/03/11 09:50:48 burton Exp $
*/
private String getPrettyPrint() {
@@ -308,6 +308,16 @@
}
return buff.toString();
+ }
+
+
+ /**
+ * @see PropertyManager
+ * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
+ * @version $Id: BasePropertyManager.java,v 1.9 2001/03/11 09:50:48 burton Exp $
+ */
+ public int size() {
+ return this.props.size();
}
}
This archive was generated by hypermail 2b30 : Sun Mar 11 2001 - 01:51:49 PST