public interface Configuration
Modifier and Type | Method and Description |
---|---|
String |
getAttribute(String key)
Returns the value of the configuration attribute with the given key.
|
String |
getAttribute(String key,
String defaultValue)
Returns the value of the configuration attribute with the given key.
|
boolean |
getAttributeAsBoolean(String key,
boolean defaultValue)
Returns the value of the configuration attribute with the given key,
as a boolean value.
|
double |
getAttributeAsFloat(String key,
double defaultValue)
Returns the value of the configuration attribute with the given key,
as a float value.
|
int |
getAttributeAsInteger(String key)
Returns the value of the configuration attribute with the given key,
as an integer.
|
int |
getAttributeAsInteger(String key,
int defaultValue)
Returns the value of the configuration attribute with the given key,
as an integer.
|
int |
getAttributeAsInteger(String key,
int defaultValue,
int radix)
Returns the value of the configuration attribute with the given key,
as an integer using the radix as number base for the value.
|
long |
getAttributeAsLong(String key,
long defaultValue)
Returns the value of the configuration attribute with the given key,
as a long value.
|
Object |
getAttributeAsObject(String key) |
Object |
getAttributeAsObject(String key,
String defaultClass) |
String[] |
getAttributeAsStringsArray(String key)
For a property that has a list of comma-separated values,
this method returns these values as a array of Strings.
|
List<String> |
getAttributeList(String key)
For a property that has a list of comma-separated values,
this method returns these values as a list of Strings.
|
List<String> |
getAttributeNamesWithPrefix(String string)
return all attribute names that start
with the specified prefix
|
org.slf4j.Logger |
getLogger(String name) |
ORB |
getORB() |
boolean |
isAttributeSet(String key)
Returns if the configuration attribute with the given key is defined.
|
void |
setAttribute(String key,
int value)
Sets the given int attribute with the given value
|
void |
setAttribute(String key,
String value)
Sets the given string attribute with the given value
|
void |
setAttributes(Properties value)
Sets the attributes of this configuration using Properties.
|
boolean isAttributeSet(String key) throws ConfigurationException
ConfigurationException
String getAttribute(String key) throws ConfigurationException
ConfigurationException
String getAttribute(String key, String defaultValue)
boolean getAttributeAsBoolean(String key, boolean defaultValue)
double getAttributeAsFloat(String key, double defaultValue) throws ConfigurationException
ConfigurationException
int getAttributeAsInteger(String key) throws ConfigurationException
ConfigurationException
int getAttributeAsInteger(String key, int defaultValue) throws ConfigurationException
ConfigurationException
int getAttributeAsInteger(String key, int defaultValue, int radix) throws ConfigurationException
ConfigurationException
long getAttributeAsLong(String key, long defaultValue) throws ConfigurationException
ConfigurationException
Object getAttributeAsObject(String key) throws ConfigurationException
ConfigurationException
Object getAttributeAsObject(String key, String defaultClass) throws ConfigurationException
ConfigurationException
String[] getAttributeAsStringsArray(String key)
List<String> getAttributeList(String key)
List<String> getAttributeNamesWithPrefix(String string)
org.slf4j.Logger getLogger(String name)
name
- the name of the logger, which also functions
as a log categoryORB getORB()
void setAttribute(String key, int value)
key
- value
- void setAttribute(String key, String value)
key
- value
- void setAttributes(Properties value)
value
- Copyright © 2017 JacORB. All rights reserved.