|
Cisco Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Dictionary<K,V>
java.util.Hashtable<java.lang.Object,java.lang.Object>
java.util.Properties
com.pcube.apps.engage.policy.StructuredProperties
public class StructuredProperties
allows structured access to data in java.util.Properties. see main test method for usage example.
note: order is not maintained (todo: move to SortedMap and allow sorting).
note: "defaults" behavior is not maintained in sub-maps.
| Nested Class Summary | |
|---|---|
static class |
StructuredProperties.PrefixPropertyFilter
implementation of PropertyFilter, which accepts properties with keys that start with the specified prefix, followed by a period. |
static interface |
StructuredProperties.PropertyFilter
implementations can be used with filteredKeySet to get a subset of the keys according to some filter. |
| Constructor Summary | |
|---|---|
StructuredProperties()
|
|
| Method Summary | |
|---|---|
java.util.Set |
filteredKeySet(StructuredProperties.PropertyFilter propertyFilter)
gets a subset of keySet according to specified filter. |
static void |
main(java.lang.String[] args)
test method |
java.util.Set |
prefixKeySet(java.lang.String prefix)
gets a subset of keySet, with keys that start with the specified prefix, followed by a period. |
StructuredProperties |
prefixSubMap(java.lang.String prefix)
a subset of this StructuredProperties, of properties whose key starts with the specified prefix, followed by a period. |
java.util.Set |
truncatedPrefixKeySet(java.lang.String prefix)
same as prefixKeySet, but the filter prefix is truncated from the result keys. |
java.util.Set |
uniqueKeyPrefixSet()
a set of prefixes of keys in this StructuredProperties. |
| Methods inherited from class java.util.Properties |
|---|
getProperty, getProperty, list, list, load, loadFromXML, propertyNames, save, setProperty, store, storeToXML, storeToXML |
| Methods inherited from class java.util.Hashtable |
|---|
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, remove, size, toString, values |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StructuredProperties()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
throws java.io.IOException
args -
java.io.IOExceptionpublic java.util.Set filteredKeySet(StructuredProperties.PropertyFilter propertyFilter)
propertyFilter -
public java.util.Set prefixKeySet(java.lang.String prefix)
prefix -
public StructuredProperties prefixSubMap(java.lang.String prefix)
prefix -
public java.util.Set truncatedPrefixKeySet(java.lang.String prefix)
prefix -
public java.util.Set uniqueKeyPrefixSet()
|
Cisco Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||