| java.util.Properties com.completex.objective.util.PropertyMap
PropertyMap | public class PropertyMap extends Properties (Code) | | author: Gennady Krizhevsky |
Method Summary | |
public static PropertyMap | createAndLoad(String envPath) | public static PropertyMap | createAndLoadSdl(String envPath) | public Object | get(String key, boolean required) | public Object | get(String key, Object defaultValue) | public Object | get(String key, Object defaultValue, boolean required) | public boolean | getBoolean(String key) | public boolean | getBoolean(String key, boolean required) | public boolean | getBoolean(String key, Boolean defaultValue, boolean required) | public Boolean | getBooleanObj(String key) | public Boolean | getBooleanObj(String key, boolean required) | public Boolean | getBooleanObj(String key, Boolean defaultValue, boolean required) | public int | getInt(String key) | public int | getInt(String key, boolean required) | public int | getInt(String key, int defaultValue) | public Integer | getIntObj(String key) | public Integer | getIntObj(String key, boolean required) | public Integer | getIntObj(String key, Integer defaultValue) | public List | getList(String key) | public List | getList(String key, boolean required) | public long | getLong(String key) | public long | getLong(String key, boolean required) | public long | getLong(String key, int defaultValue) | public Long | getLongObj(String key) | public Long | getLongObj(String key, boolean required) | public Long | getLongObj(String key, Long defaultValue) | public Map | getMap(String key) | public Map | getMap(String key, boolean required) | public String | getProperty(String key, String defaultValue, boolean required) | public String | getProperty(String key, boolean required) | public PropertyMap | getPropertyMap(String key) | public PropertyMap | getPropertyMap(String key, boolean required) | public StringBuffer | getPropertyStringBuffer(String key) | public StringBuffer | getPropertyStringBuffer(String key, boolean required) | public String | getPropertyTrimmed(String key) | public String | getPropertyTrimmed(String key, String defaultValue, boolean required) | public String | getPropertyTrimmed(String key, boolean required) | public synchronized void | loadSdl(String configPath) | public synchronized void | loadSdl(Reader reader) | public static void | main(String[] args) | public synchronized void | putAll(Map t) | public static Map | resolveParameters(Map map, Properties env) Resolves template token values (${token}) to a proper ones in accord with env Properties
passed. | public static PropertyMap | toPropertyMap(Map map) | public static PropertyMap | toPropertyMap(Map map, boolean required) |
PropertyMap | public PropertyMap()(Code) | | |
PropertyMap | public PropertyMap(Map prop)(Code) | | Constructs a new PropertyMap with the same mappings as the given Properties
Parameters: prop - the properties whose mappings are to be placed in this property map throws: NullPointerException - if the specified prop Properties is null |
getBoolean | public boolean getBoolean(String key, boolean required)(Code) | | |
getLong | public long getLong(String key, boolean required)(Code) | | |
getLong | public long getLong(String key, int defaultValue)(Code) | | |
putAll | public synchronized void putAll(Map t)(Code) | | |
resolveParameters | public static Map resolveParameters(Map map, Properties env)(Code) | | Resolves template token values (${token}) to a proper ones in accord with env Properties
passed.
Parameters: map - initial map possibly containing template token values Parameters: env - Value resolution object Map with resolved values (the same instance as a parameter one) |
|
|