UC Berkeley Group for User Interface Research
Updated November 17, 2000

edu.berkeley.guir.lib.gesture
Class Properties

java.lang.Object
  |
  +--edu.berkeley.guir.lib.gesture.Properties

public class Properties
extends Object

Provide I/O for properties. At present only correctly reconstructs property values that are Strings.


Field Summary
static String END_STRING
           
 
Method Summary
static Map deepCopy(Map properties)
          Deep copy a property map (persistent properties only)
static PropertyChangeEvent getRootEvent(PropertyChangeEvent e)
           
static boolean hasNonEmptyCollection(GestureObject gestureObj, String propName)
          return true if the object has the property propName, and its value is a non-empty Collection
static boolean isPropertyPersistent(String name)
           
static Map readProperties(TokenReader reader)
           
static void readProperty(Reader r, Map map)
           
static void setPropertyPersistence(String name, boolean persistent)
           
static void writeProperties(Writer writer, Map properties)
           
static void writeProperty(Writer writer, Map.Entry entry)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

END_STRING

public static final String END_STRING
Method Detail

getRootEvent

public static PropertyChangeEvent getRootEvent(PropertyChangeEvent e)

setPropertyPersistence

public static void setPropertyPersistence(String name,
                                          boolean persistent)

isPropertyPersistent

public static boolean isPropertyPersistent(String name)

hasNonEmptyCollection

public static boolean hasNonEmptyCollection(GestureObject gestureObj,
                                            String propName)
return true if the object has the property propName, and its value is a non-empty Collection

deepCopy

public static Map deepCopy(Map properties)
Deep copy a property map (persistent properties only)

writeProperties

public static void writeProperties(Writer writer,
                                   Map properties)
                            throws IOException

writeProperty

public static void writeProperty(Writer writer,
                                 Map.Entry entry)
                          throws IOException

readProperties

public static Map readProperties(TokenReader reader)
                          throws ParseException,
                                 IOException

readProperty

public static void readProperty(Reader r,
                                Map map)
                         throws ParseException,
                                IOException

Copyright Information