| Modifier | Constructor and Description |
|---|---|
protected |
ConfigImpl(String resource) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
add(Config config) |
Boolean |
getBoolean(ConfigKey name,
boolean useDefault) |
Boolean |
getBoolean(String name) |
Boolean |
getBoolean(String name,
Boolean defaultValue) |
Class<?> |
getClass(ConfigKey name,
boolean useDefault) |
Class<?> |
getClass(String name) |
Class<?> |
getClass(String name,
Class<?> defaultValue) |
Config |
getConfig(ConfigKey name) |
Config |
getConfig(String name) |
Float |
getFloat(ConfigKey name,
boolean useDefault) |
Float |
getFloat(String name) |
Float |
getFloat(String name,
Float defaultValue) |
<T> T |
getInstance(ConfigKey name) |
<T> T |
getInstance(String name) |
<T> T |
getInstance(String name,
Class<T> xface) |
Integer |
getInt(ConfigKey name,
boolean useDefault) |
Integer |
getInt(String name) |
Integer |
getInt(String name,
Integer defaultValue) |
List<String> |
getList(ConfigKey name) |
List<String> |
getList(String name) |
List<String> |
getList(String name,
String[] defaultValue) |
Long |
getLong(ConfigKey name,
boolean useDefault) |
Long |
getLong(String name) |
Long |
getLong(String name,
Long defaultValue) |
Set<String> |
getNames() |
String |
getResource() |
String |
getString(ConfigKey name,
boolean useDefault) |
String |
getString(String name) |
String |
getString(String name,
String defaultValue) |
String |
getTrimmed(ConfigKey name) |
String |
getTrimmed(String name) |
protected void |
reset() |
protected void |
set(String name,
Config value) |
protected void |
set(String name,
ConfigObject value) |
protected void |
set(String name,
String value) |
void |
setBoolean(ConfigKey name,
Boolean value)
Set a boolean value for the specified property
|
void |
setBoolean(String name,
Boolean value)
Set a boolean value for the specified property
|
void |
setFloat(ConfigKey name,
Float value)
Set a float value for the specified property
|
void |
setFloat(String name,
Float value)
Set a float value for the specified property
|
void |
setInt(ConfigKey name,
Integer value)
Set an int value for the specified property
|
void |
setInt(String name,
Integer value)
Set an int value for the specified property
|
void |
setLong(ConfigKey name,
Long value)
Set a long value for the specified property
|
void |
setLong(String name,
Long value)
Set a long value for the specified property
|
void |
setString(ConfigKey name,
String value)
Set a string value for the specified property
|
void |
setString(String name,
String value)
Set a string value for the specified property
|
protected ConfigImpl(String resource)
protected void reset()
public String getResource()
getResource in interface Configpublic String getTrimmed(String name)
getTrimmed in interface Configpublic String getTrimmed(ConfigKey name)
getTrimmed in interface Configpublic void setInt(String name, Integer value)
Configpublic void setInt(ConfigKey name, Integer value)
Configpublic void setLong(String name, Long value)
Configpublic void setLong(ConfigKey name, Long value)
Configpublic void setFloat(String name, Float value)
Configpublic void setFloat(ConfigKey name, Float value)
Configpublic Boolean getBoolean(String name)
getBoolean in interface Configpublic Boolean getBoolean(ConfigKey name, boolean useDefault)
getBoolean in interface Configpublic Boolean getBoolean(String name, Boolean defaultValue)
getBoolean in interface Configpublic void setBoolean(String name, Boolean value)
ConfigsetBoolean in interface Configname - The property namevalue - The boolean valuepublic void setBoolean(ConfigKey name, Boolean value)
ConfigsetBoolean in interface Configname - The config key namevalue - The boolean valuepublic Class<?> getClass(String name) throws ClassNotFoundException
getClass in interface ConfigClassNotFoundExceptionpublic Class<?> getClass(String name, Class<?> defaultValue) throws ClassNotFoundException
getClass in interface ConfigClassNotFoundExceptionpublic Class<?> getClass(ConfigKey name, boolean useDefault) throws ClassNotFoundException
getClass in interface ConfigClassNotFoundExceptionpublic <T> T getInstance(String name) throws ClassNotFoundException
getInstance in interface ConfigClassNotFoundExceptionpublic <T> T getInstance(ConfigKey name) throws ClassNotFoundException
getInstance in interface ConfigClassNotFoundExceptionpublic <T> T getInstance(String name, Class<T> xface) throws ClassNotFoundException
getInstance in interface ConfigClassNotFoundExceptionpublic void setString(String name, String value)
Configpublic void setString(ConfigKey name, String value)
Configprotected void set(String name, ConfigObject value)
protected void add(Config config)
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.