Property | Type | Description | |
---|---|---|---|
basePath | String | ||
file | String | ||
fileSeparator | String | ||
include | String | ||
isInitialized | bool | ||
keysAsListed |
Method | Description | |
---|---|---|
AddProperty ( String key, Object token ) : void |
Add a property to the configuration. If it already exists then the value stated here will be added to the configuration entry. For example, if * resource.loader = file * is already present in the configuration and you * addProperty("resource.loader", "classpath") * Then you will end up with a Vector like the following: * ["file", "classpath"] *
|
|
ClearProperty ( String key ) : void |
Clear a property in the configuration. *
|
|
Combine ( |
Combines an existing Hashtable with this Hashtable. * Warning: It will overwrite previous entries without warning. *
|
|
ConvertProperties ( |
Convert a standard properties class into a configuration class.
|
|
ExtendedProperties ( ) : System |
Creates an empty extended properties object.
|
|
ExtendedProperties ( String file ) : System |
Creates and loads the extended properties from the specified file.
|
|
ExtendedProperties ( String file, String defaultFile ) : System |
Creates and loads the extended properties from the specified file.
|
|
GetBoolean ( String key, System.Boolean defaultValue ) : System.Boolean |
Get a boolean associated with the given configuration key. *
|
|
GetBoolean ( String key ) : bool |
Get a boolean associated with the given configuration key. *
|
|
GetByte ( String key, Byte defaultValue ) : Byte |
Get a byte associated with the given configuration key. *
|
|
GetByte ( String key ) : sbyte |
Get a byte associated with the given configuration key. *
|
|
GetByte ( String key, sbyte defaultValue ) : sbyte |
Get a byte associated with the given configuration key. *
|
|
GetDouble ( String key ) : Double |
Get a double associated with the given configuration key. *
|
|
GetDouble ( String key, Double defaultValue ) : Double |
Get a double associated with the given configuration key. *
|
|
GetFloat ( String key, System.Single defaultValue ) : System.Single |
Get a float associated with the given configuration key. *
|
|
GetFloat ( String key ) : float |
Get a float associated with the given configuration key. *
|
|
GetInt ( String name ) : |
The purpose of this method is to get the configuration resource with the given name as an integer. *
|
|
GetInt ( String name, int def ) : |
The purpose of this method is to get the configuration resource with the given name as an integer, or a default value. *
|
|
GetInteger ( String key ) : |
Get a int associated with the given configuration key. *
|
|
GetInteger ( String key, |
Get a int associated with the given configuration key. *
|
|
GetKeys ( String prefix ) : IEnumerable |
Get the list of the keys contained in the configuration repository. * Get the list of the keys contained in the configuration repository that match the specified prefix. *
|
|
GetLong ( String key ) : System.Int64 |
Get a long associated with the given configuration key. *
|
|
GetLong ( String key, System.Int64 defaultValue ) : System.Int64 |
Get a long associated with the given configuration key. *
|
|
GetProperties ( String key ) : |
Get a list of properties associated with the given configuration key. *
|
|
GetProperties ( String key, |
Get a list of properties associated with the given configuration key. *
|
|
GetProperty ( String key ) : Object |
Gets a property from the configuration. *
|
|
GetString ( String key ) : String |
Get a string associated with the given configuration key. *
|
|
GetString ( String key, String defaultValue ) : String |
Get a string associated with the given configuration key. *
|
|
GetStringArray ( String key ) : String[] |
Get an array of strings associated with the given configuration key. *
|
|
GetStringList ( String key ) : List |
Gets the string list.
|
|
GetVector ( String key ) : |
Get a Vector of strings associated with the given configuration key. *
|
|
GetVector ( String key, |
Get a Vector of strings associated with the given configuration key. *
|
|
IsInitialized ( ) : bool |
Private initializer method that sets up the generic resources. Indicate to client code whether property resources have been initialized or not.
|
|
Load ( Stream input ) : void | ||
Load ( Stream input, String encoding ) : void |
Load the properties from the given input stream and using the specified encoding.
|
|
Save ( |
Save the properties to the given outputStream.
|
|
SetProperty ( String key, Object value ) : void |
Set a property, this will replace any previously set values. Set values is implicitly a call to clearProperty(key), addProperty(key,value).
|
|
Subset ( String prefix ) : |
Create an ExtendedProperties object that is a subset of this one. Take into account duplicate keys by using the setProperty() in ExtendedProperties. *
|
|
TestBoolean ( String value ) : String |
Test whether the string represent by value maps to a boolean value or not. We will allow
|
|
ToString ( ) : String |
Display the configuration for debugging purposes.
|
Method | Description | |
---|---|---|
AddPropertyDirect ( String key, Object obj ) : void |
Adds a key/value pair to the map. This routine does no magic morphing. It ensures the keyList is maintained *
|
|
AddStringProperty ( String key, String token ) : void |
Sets a string property w/o checking for commas - used internally when a property has been broken up into strings that could contain escaped commas to prevent the inadvertent vectorization. Thanks to Leon Messerschmidt for this one.
|
|
ValueToString ( Object value ) : String | ||
WriteKeyOutput ( |
public AddProperty ( String key, Object token ) : void | ||
key | String | |
token | Object | |
return | void |
public ClearProperty ( String key ) : void | ||
key | String | key to remove along with corresponding value. /// /// |
return | void |
public Combine ( |
||
c | ExtendedProperties /// /// | |
return | void |
public static ConvertProperties ( |
||
p | properties object to convert into a ExtendedProperties object. | |
return |
public ExtendedProperties ( String file ) : System | ||
file | String | A String. |
return | System |
public ExtendedProperties ( String file, String defaultFile ) : System | ||
file | String | A String. |
defaultFile | String | File to load defaults from. |
return | System |
public GetBoolean ( String key, System.Boolean defaultValue ) : System.Boolean | ||
key | String | The configuration key. /// |
defaultValue | System.Boolean | The default value. /// |
return | System.Boolean |
public GetBoolean ( String key ) : bool | ||
key | String | The configuration key. /// |
return | bool |
public GetByte ( String key, Byte defaultValue ) : Byte | ||
key | String | The configuration key. /// |
defaultValue | Byte | The default value. /// |
return | Byte |
public GetByte ( String key ) : sbyte | ||
key | String | The configuration key. /// |
return | sbyte |
public GetByte ( String key, sbyte defaultValue ) : sbyte | ||
key | String | The configuration key. /// |
defaultValue | sbyte | The default value. /// |
return | sbyte |
public GetDouble ( String key ) : Double | ||
key | String | The configuration key. /// |
return | Double |
public GetDouble ( String key, Double defaultValue ) : Double | ||
key | String | The configuration key. /// |
defaultValue | Double | The default value. /// |
return | Double |
public GetFloat ( String key, System.Single defaultValue ) : System.Single | ||
key | String | The configuration key. /// |
defaultValue | System.Single | The default value. /// |
return | System.Single |
public GetFloat ( String key ) : float | ||
key | String | The configuration key. /// |
return | float |
public GetInt ( String name ) : |
||
name | String | The resource name. /// |
return |
public GetInt ( String name, int def ) : |
||
name | String | The resource name /// |
def | int | The default value of the resource. /// |
return |
public GetInteger ( String key ) : |
||
key | String | The configuration key. /// |
return |
public GetInteger ( String key, |
||
key | String | The configuration key. /// |
defaultValue | The default value. /// | |
return |
public GetKeys ( String prefix ) : IEnumerable | ||
prefix | String | The prefix to test against. /// |
return | IEnumerable |
public GetLong ( String key ) : System.Int64 | ||
key | String | The configuration key. /// |
return | System.Int64 |
public GetLong ( String key, System.Int64 defaultValue ) : System.Int64 | ||
key | String | The configuration key. /// |
defaultValue | System.Int64 | The default value. /// |
return | System.Int64 |
public GetProperties ( String key ) : |
||
key | String | The configuration key. /// |
return |
public GetProperties ( String key, |
||
key | String | The configuration key. /// |
defaultProps | Default property values. /// | |
return |
public GetProperty ( String key ) : Object | ||
key | String | property to retrieve /// |
return | Object |
public GetString ( String key ) : String | ||
key | String | The configuration key. /// |
return | String |
public GetString ( String key, String defaultValue ) : String | ||
key | String | The configuration key. /// |
defaultValue | String | The default value. /// |
return | String |
public GetStringArray ( String key ) : String[] | ||
key | String | The configuration key. /// |
return | String[] |
public GetStringList ( String key ) : List |
||
key | String | The key. |
return | List |
public GetVector ( String key ) : |
||
key | String | The configuration key. /// |
return |
public GetVector ( String key, |
||
key | String | The configuration key. /// |
defaultValue | The default value. /// | |
return |
public Load ( Stream input, String encoding ) : void | ||
input | Stream | An InputStream. /// |
encoding | String | An encoding. /// |
return | void |
public Save ( |
||
output | An OutputStream. /// | |
Header | String | A String. /// |
return | void |
public SetProperty ( String key, Object value ) : void | ||
key | String | |
value | Object | |
return | void |
public Subset ( String prefix ) : |
||
prefix | String | prefix /// /// |
return |
public TestBoolean ( String value ) : String | ||
value | String | The value to test for boolean state. /// |
return | String |