Modifier and Type | Method and Description |
---|---|
String |
get(String name)
Gets the value of the name property.
|
String |
get(String name,
String defaultValue)
Gets the value of the name property.
|
boolean |
getBoolean(String name,
boolean defaultValue)
Gets the value of the name property as a boolean.
|
Class<?> |
getClass(String name,
Class<?> defaultValue)
Gets the value of the name property as a class.
|
<U> Class<? extends U> |
getClass(String name,
Class<? extends U> defaultValue,
Class<U> xface)
Gets the value of the name property as a class implementing the xface interface.
|
Class<?> |
getClassByName(String name)
Load a class by name.
|
int |
getInt(String name,
int defaultValue)
Gets the value of the name property as an integer.
|
long |
getLong(String name,
long defaultValue)
Gets the value of the name property as a long.
|
String[] |
getStrings(String name,
String[] defaultValue)
Gets the value of the name property as an array of
String s. |
String |
getTrimmed(String name)
Gets the trimmed value of the name property.
|
String |
getTrimmed(String name,
String defaultValue)
Gets the trimmed value of the name property as a boolean.
|
void |
set(String name,
String value)
Sets the value of the name property.
|
void |
setBoolean(String name,
boolean value)
Sets the value of the name property to a boolean.
|
void |
setClass(String name,
Class<?> value,
Class<?> xface)
Sets the value of the name property to a class.
|
void |
setInt(String name,
int value)
Sets the value of the name property to an integer.
|
void |
setLong(String name,
long value)
Sets the value of the name property to a long.
|
void |
setStrings(String name,
String... value)
Sets the value of the name property to an array of comma delimited values.
|
forEach, iterator, spliterator
void set(String name, String value)
name
- the property to setvalue
- the value to set the property tovoid setLong(String name, long value)
name
- the property to setvalue
- the value to set the property tovoid setInt(String name, int value)
name
- the property to setvalue
- the value to set the property tovoid setBoolean(String name, boolean value)
name
- the property to setvalue
- the value to set the property tovoid setStrings(String name, String... value)
name
- the property to setvalue
- the values to set the property tovoid setClass(String name, Class<?> value, Class<?> xface)
name
- the property to setvalue
- the value to set the property toxface
- the interface implemented by the valueString get(String name)
name
- the property to retrieve the value ofString get(String name, String defaultValue)
name
- the property to retrieve the value ofdefaultValue
- the default return if no value is set for the propertylong getLong(String name, long defaultValue)
name
- the property to retrieve the value ofdefaultValue
- the default return if no value is set for the propertyint getInt(String name, int defaultValue)
name
- the property to retrieve the value ofdefaultValue
- the default return if no value is set for the propertyboolean getBoolean(String name, boolean defaultValue)
name
- the property to retrieve the value ofdefaultValue
- the default return if no value is set for the propertyString getTrimmed(String name)
name
- the property to retrieve the value ofString getTrimmed(String name, String defaultValue)
name
- the property to retrieve the value ofdefaultValue
- the default return if no value is set for the propertyString[] getStrings(String name, String[] defaultValue)
String
s.
Returns the default value if no such value exists.
Interprets the stored value as a comma delimited array.name
- the property to retrieve the value ofdefaultValue
- the default return if no value is set for the propertyClass<?> getClass(String name, Class<?> defaultValue)
name
- the property to retrieve the value ofdefaultValue
- the default return if no value is set for the property<U> Class<? extends U> getClass(String name, Class<? extends U> defaultValue, Class<U> xface)
name
- the property to retrieve the value ofdefaultValue
- the default return if no value is set for the propertyClass<?> getClassByName(String name) throws ClassNotFoundException
name
- the name of the Class
to loadClassNotFoundException
- when the specified class cannot be foundCopyright © 2024 The Apache Software Foundation. All rights reserved.