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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
END_STRING
public static final String END_STRING
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