sunlabs.brazil.sunlabs
Class MiscTemplate.GlobProperties

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable<Object,Object>
          extended by java.util.Properties
              extended by sunlabs.brazil.sunlabs.MiscTemplate.GlobProperties
All Implemented Interfaces:
Serializable, Cloneable, Map<Object,Object>
Enclosing class:
MiscTemplate

public static class MiscTemplate.GlobProperties
extends Properties

Special version of a properties that uses the sub expresions of the supplied glob pattern and name to define the keys 1-9. The value "0" takes the supplied default.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.Properties
defaults
 
Constructor Summary
MiscTemplate.GlobProperties(Properties props, String pattern, String name, String dflt)
           
 
Method Summary
 String getProperty(String key)
           
 
Methods inherited from class java.util.Properties
getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MiscTemplate.GlobProperties

public MiscTemplate.GlobProperties(Properties props,
                                   String pattern,
                                   String name,
                                   String dflt)
Method Detail

getProperty

public String getProperty(String key)
Overrides:
getProperty in class Properties