public enum SaAgentConfig extends Enum<SaAgentConfig>
Enum Constant and Description |
---|
DEFAULT |
Modifier and Type | Method and Description |
---|---|
boolean |
getBooleanProperty(String key,
boolean defaultValue)
Get the value of a property as a boolean
|
int |
getIntegerProperty(String key,
int defaultValue)
Get the value of a property as an integer
|
String |
getProperty(String key)
Get the property by key and returns the corresponding value as
String |
String |
getProperty(String key,
String defaultValue)
Get the property by key and return the corresponding value as
String . |
static SaAgentConfig |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SaAgentConfig[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SaAgentConfig DEFAULT
public static SaAgentConfig[] values()
for (SaAgentConfig c : SaAgentConfig.values()) System.out.println(c);
public static SaAgentConfig valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getProperty(String key)
String
key
- public String getProperty(String key, String defaultValue)
String
.
Return defaultValue if not foundkey
- public boolean getBooleanProperty(String key, boolean defaultValue)
key
- defaultValue
- public int getIntegerProperty(String key, int defaultValue)
key
- defaultValue
- Copyright © 2020 Hyland Software Germany GmbH. All rights reserved.