public class OContextConfiguration extends Object implements Serializable
Constructor and Description |
---|
OContextConfiguration()
Empty constructor to create just a proxy for the OGlobalConfiguration.
|
OContextConfiguration(Map<String,Object> iConfig)
Initializes the context with custom parameters.
|
OContextConfiguration(OContextConfiguration iParent) |
Modifier and Type | Method and Description |
---|---|
Set<String> |
getContextKeys() |
int |
getContextSize() |
Object |
getValue(OGlobalConfiguration iConfig) |
<T> T |
getValue(String iName,
T iDefaultValue) |
boolean |
getValueAsBoolean(OGlobalConfiguration iConfig) |
<T extends Enum<T>> |
getValueAsEnum(OGlobalConfiguration config,
Class<T> enumType) |
float |
getValueAsFloat(OGlobalConfiguration iConfig) |
int |
getValueAsInteger(OGlobalConfiguration iConfig) |
long |
getValueAsLong(OGlobalConfiguration iConfig) |
String |
getValueAsString(OGlobalConfiguration iConfig) |
String |
getValueAsString(String iName,
String iDefaultValue) |
void |
merge(OContextConfiguration contextConfiguration) |
Object |
setValue(OGlobalConfiguration iConfig,
Object iValue) |
Object |
setValue(String iName,
Object iValue) |
public OContextConfiguration()
public OContextConfiguration(Map<String,Object> iConfig)
iConfig
- Map of parameters of type Mappublic OContextConfiguration(OContextConfiguration iParent)
public Object setValue(OGlobalConfiguration iConfig, Object iValue)
public Object getValue(OGlobalConfiguration iConfig)
public <T extends Enum<T>> T getValueAsEnum(OGlobalConfiguration config, Class<T> enumType)
config
- Global configuration parameter.OGlobalConfiguration
instance.ClassCastException
- if stored value can not be casted and parsed from string to passed
in enumeration class.IllegalArgumentException
- if value associated with configuration parameter is a string
bug can not be converted to instance of passed in enumeration class.public <T> T getValue(String iName, T iDefaultValue)
public boolean getValueAsBoolean(OGlobalConfiguration iConfig)
public String getValueAsString(OGlobalConfiguration iConfig)
public int getValueAsInteger(OGlobalConfiguration iConfig)
public long getValueAsLong(OGlobalConfiguration iConfig)
public float getValueAsFloat(OGlobalConfiguration iConfig)
public int getContextSize()
public void merge(OContextConfiguration contextConfiguration)
Copyright © 2009–2020 OrientDB. All rights reserved.