Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

edu.berkeley.guir.quill.gesturelib
Class Properties  view Properties download Properties.java

java.lang.Object
  extended byedu.berkeley.guir.quill.gesturelib.Properties

public class Properties
extends java.lang.Object

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

This software is distributed under the Berkeley Software License.


Field Summary
static java.lang.String END_STRING
           
private static java.util.Set transientProperties
           
 
Constructor Summary
private Properties()
           
 
Method Summary
static java.util.Map deepCopy(java.util.Map properties)
          Deep copy a property map (persistent properties only)
static java.beans.PropertyChangeEvent getRootEvent(java.beans.PropertyChangeEvent e)
           
static boolean hasNonEmptyCollection(GestureObject gestureObj, java.lang.String propName)
          return true if the object has the property propName, and its value is a non-empty Collection
static boolean isPropertyPersistent(java.lang.String name)
           
static java.util.Map readProperties(edu.berkeley.guir.quill.util.TokenReader reader)
           
static void readProperty(java.io.Reader r, java.util.Map map)
           
static void setPropertyPersistence(java.lang.String name, boolean persistent)
           
static void writeProperties(java.io.Writer writer, java.util.Map properties)
           
static void writeProperty(java.io.Writer writer, java.util.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 java.lang.String END_STRING
See Also:
Constant Field Values

transientProperties

private static java.util.Set transientProperties
Constructor Detail

Properties

private Properties()
Method Detail

getRootEvent

public static java.beans.PropertyChangeEvent getRootEvent(java.beans.PropertyChangeEvent e)

setPropertyPersistence

public static void setPropertyPersistence(java.lang.String name,
                                          boolean persistent)

isPropertyPersistent

public static boolean isPropertyPersistent(java.lang.String name)

hasNonEmptyCollection

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


deepCopy

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


writeProperties

public static void writeProperties(java.io.Writer writer,
                                   java.util.Map properties)
                            throws java.io.IOException

writeProperty

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

readProperties

public static java.util.Map readProperties(edu.berkeley.guir.quill.util.TokenReader reader)
                                    throws java.text.ParseException,
                                           java.io.IOException

readProperty

public static void readProperty(java.io.Reader r,
                                java.util.Map map)
                         throws java.text.ParseException,
                                java.io.IOException