CVS update: talon/src/java/talon/interfaces

From: cvs@openprivacy.org
Date: Sun Feb 11 2001 - 14:02:11 PST

  • Next message: cvs@openprivacy.org: "CVS update: talon/src/java/talon"

    Date: Sunday February 11, 19101 @ 14:02
    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-serv4717/src/java/talon/interfaces

    Modified Files:
            PropertyManager.java
    Log Message:
    ug... added some more features necessary for M1. Stupid bug in java.lang.Properties which took a while to fix.

    *****************************************************************
    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.7

    CVSWeb: View this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/talon/src/java/talon/interfaces/PropertyManager.java?rev=1.7&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.7&r2=1.6

    -----------------------------------

    Index: talon/src/java/talon/interfaces/PropertyManager.java
    diff -u talon/src/java/talon/interfaces/PropertyManager.java:1.6 talon/src/java/talon/interfaces/PropertyManager.java:1.7
    --- talon/src/java/talon/interfaces/PropertyManager.java:1.6 Thu Feb 8 20:18:09 2001
    +++ talon/src/java/talon/interfaces/PropertyManager.java Sun Feb 11 14:02:11 2001
    @@ -9,15 +9,16 @@
     
     package talon.interfaces;
     
    -import talon.Component;
    -
    +import java.io.*;
     import java.util.*;
    +import talon.*;
    +import talon.Component;
     
     /**
      * Class similar to java.lang.Properties
      *
      * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
    - * @version $Id: PropertyManager.java,v 1.6 2001/02/09 04:18:09 burton Exp $
    + * @version $Id: PropertyManager.java,v 1.7 2001/02/11 22:02:11 burton Exp $
      */
     public interface PropertyManager extends Component {
     
    @@ -25,27 +26,68 @@
          * 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.6 2001/02/09 04:18:09 burton Exp $
    + * @version $Id: PropertyManager.java,v 1.7 2001/02/11 22:02:11 burton Exp $
          */
    - public String getProperty( String name );
    + public Object getProperty( String name );
     
         /**
          * 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.6 2001/02/09 04:18:09 burton Exp $
    + * @version $Id: PropertyManager.java,v 1.7 2001/02/11 22:02:11 burton Exp $
          */
    - public String getProperty( String name, String value );
    -
    + public Object getProperty( String name, Object value );
    +
    + /**
    + * Set a property
    + *
    + * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
    + * @version $Id: PropertyManager.java,v 1.7 2001/02/11 22:02:11 burton Exp $
    + */
    + public PropertyManager setProperty( String name, Object value );
    +
         /**
          * 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.6 2001/02/09 04:18:09 burton Exp $
    + * @version $Id: PropertyManager.java,v 1.7 2001/02/11 22:02:11 burton Exp $
          */
         public boolean getBoolean( String name );
     
    +
         /**
    + * Set a boolean property
    + *
    + * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
    + * @version $Id: PropertyManager.java,v 1.7 2001/02/11 22:02:11 burton Exp $
    + */
    + public PropertyManager setBoolean( String namme, boolean value );
    +
    + /**
    + * get a string property
    + *
    + * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
    + * @version $Id: PropertyManager.java,v 1.7 2001/02/11 22:02:11 burton Exp $
    + */
    + public String getString( String _name );
    +
    + /**
    + * 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.7 2001/02/11 22:02:11 burton Exp $
    + */
    + public String getString( String _name, String _default );
    +
    + /**
    + * Set a string property
    + *
    + * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
    + * @version $Id: PropertyManager.java,v 1.7 2001/02/11 22:02:11 burton Exp $
    + */
    + public PropertyManager setString( String _name, String _value );
    +
    + /**
          * <p>
          * Get a property but assume it is multivalued. A good example is a set or
          * properties such as:
    @@ -61,7 +103,7 @@
          * requested a name of "example".
          *
          * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
    - * @version $Id: PropertyManager.java,v 1.6 2001/02/09 04:18:09 burton Exp $
    + * @version $Id: PropertyManager.java,v 1.7 2001/02/11 22:02:11 burton Exp $
          */
         public Vector getVector( String name );
     
    @@ -85,32 +127,50 @@
          *
          * @see getVector#
          * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
    - * @version $Id: PropertyManager.java,v 1.6 2001/02/09 04:18:09 burton Exp $
    + * @version $Id: PropertyManager.java,v 1.7 2001/02/11 22:02:11 burton Exp $
          */
    - public Hashtable getGroup( String key );
    -
    + public PropertyManager getGroup( String key );
    +
         /**
    - * Set a property
    + * 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.6 2001/02/09 04:18:09 burton Exp $
    + * @version $Id: PropertyManager.java,v 1.7 2001/02/11 22:02:11 burton Exp $
          */
    - public PropertyManager setProperty( String name, String value );
    + public Enumeration getKeys();
     
         /**
    - * Set a boolean property
    + * Require that the given properties exist within this PropertyManager. if
    + * 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.6 2001/02/09 04:18:09 burton Exp $
    + * @version $Id: PropertyManager.java,v 1.7 2001/02/11 22:02:11 burton Exp $
          */
    - public PropertyManager setBoolean( String namme, boolean value );
    + public void require( String[] properties ) throws TalonException;
     
         /**
    - * Get all known keys for registered properties.
    + * 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.6 2001/02/09 04:18:09 burton Exp $
    + * @version $Id: PropertyManager.java,v 1.7 2001/02/11 22:02:11 burton Exp $
          */
    - public Enumeration getKeys();
    + public boolean exists( String key );
    +
    + /**
    + * Dump the property manager to an output channel.
    + *
    + * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
    + * @version $Id: PropertyManager.java,v 1.7 2001/02/11 22:02:11 burton Exp $
    + */
    + public void list();
    +
    +
    + /**
    + * Dump the property manager to an output channel.
    + *
    + * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
    + * @version $Id: PropertyManager.java,v 1.7 2001/02/11 22:02:11 burton Exp $
    + */
    + public void list( PrintStream ps);
         
     }



    This archive was generated by hypermail 2b30 : Sun Feb 11 2001 - 14:02:43 PST