public final class Props extends Object implements Iterable<Props.Prop>
This is larger in scope than the standard Properties
, as it will also handle tracking the origin of each property, if it was overridden,
and also allowing for ${property}
expansion.
Modifier and Type | Class and Description |
---|---|
static class |
Props.Prop |
Modifier and Type | Field and Description |
---|---|
static String |
ORIGIN_SYSPROP |
Constructor and Description |
---|
Props() |
Modifier and Type | Method and Description |
---|---|
String |
cleanReference(String property) |
boolean |
containsKey(String key) |
String |
expand(String str) |
String |
expand(String str,
Stack<String> seenStack) |
Props.Prop |
getProp(String key) |
String |
getString(String key) |
String |
getString(String key,
String defVal) |
Iterator<Props.Prop> |
iterator() |
void |
setProperty(Props.Prop prop) |
void |
setProperty(String key,
String value,
String origin) |
int |
size() |
void |
store(OutputStream stream,
String comments) |
public static final String ORIGIN_SYSPROP
public boolean containsKey(String key)
public Props.Prop getProp(String key)
public Iterator<Props.Prop> iterator()
iterator
in interface Iterable<Props.Prop>
public void setProperty(Props.Prop prop)
public int size()
public void store(OutputStream stream, String comments) throws IOException
IOException
Copyright © 1995-2014 Mort Bay Consulting. All Rights Reserved.