xml.gui
Class PropertyUtil

java.lang.Object
  extended by xml.gui.PropertyUtil

public class PropertyUtil
extends java.lang.Object

Utility methods for accessing properties. copied from XSLTPlugin: xslt/PropertyUtil.java

Author:
Greg Merrill, Robert McKinnon

Constructor Summary
PropertyUtil()
           
 
Method Summary
static java.util.List<java.lang.String> getEnumeratedProperty(java.lang.String key)
          Returns a List of property values whose keys are identical excepct for a trailing "." and index.
static void setEnumeratedProperty(java.lang.String key, java.util.List<java.lang.String> values)
          Sets a series of property values whose keys are identical excepct for a trailing "." and index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyUtil

public PropertyUtil()
Method Detail

getEnumeratedProperty

public static java.util.List<java.lang.String> getEnumeratedProperty(java.lang.String key)
Returns a List of property values whose keys are identical excepct for a trailing "." and index.

Parameters:
key - key of the enumerated property, excluding the trailing "." and index. I.e., if you have properties "file.0=file0.txt" and "file.1=file1.txt", calling getEnumeratedProperty("file", properties) would return a list containing "file0.txt" and "file1.txt".

setEnumeratedProperty

public static void setEnumeratedProperty(java.lang.String key,
                                         java.util.List<java.lang.String> values)
Sets a series of property values whose keys are identical excepct for a trailing "." and index.

Parameters:
key - key of the enumerated property (see getEnumeratedProperty(java.lang.String))
values - values to be assigned to the enumerated property, in order. All members of this List must be Strings.