Package org.openl.rules.context
Class DefaultRulesRuntimeContext
- java.lang.Object
-
- org.openl.rules.context.DefaultRulesRuntimeContext
-
- All Implemented Interfaces:
Serializable,Cloneable,IRulesRuntimeContext,IRulesRuntimeContextOptimizationForOpenMethodDispatcher,IRuntimeContext
public class DefaultRulesRuntimeContext extends Object implements IRulesRuntimeContext, IRulesRuntimeContextOptimizationForOpenMethodDispatcher, Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDefaultRulesRuntimeContext.IRulesRuntimeContextAdapter
-
Field Summary
Fields Modifier and Type Field Description static Map<String,Class<?>>CONTEXT_PROPERTIES
-
Constructor Summary
Constructors Constructor Description DefaultRulesRuntimeContext()
-
Method Summary
-
-
-
Method Detail
-
getValue
public Object getValue(String name)
- Specified by:
getValuein interfaceIRulesRuntimeContext
-
getMethodForOpenMethodDispatcher
public IOpenMethod getMethodForOpenMethodDispatcher(OpenMethodDispatcher openMethodDispatcher)
- Specified by:
getMethodForOpenMethodDispatcherin interfaceIRulesRuntimeContextOptimizationForOpenMethodDispatcher
-
putMethodForOpenMethodDispatcher
public void putMethodForOpenMethodDispatcher(OpenMethodDispatcher openMethodDispatcher, IOpenMethod method)
- Specified by:
putMethodForOpenMethodDispatcherin interfaceIRulesRuntimeContextOptimizationForOpenMethodDispatcher
-
clone
public IRulesRuntimeContext clone() throws CloneNotSupportedException
The default implementation Object.clone() method returns a Shallow Copy.In shallow copy, if the field value is a primitive type, it copies its value; otherwise, if the field value is a reference to an object, it copies the reference, hence referring to the same object. Now, if one of these objects is modified, the change is visible in the other.
- Specified by:
clonein interfaceIRulesRuntimeContext- Specified by:
clonein interfaceIRuntimeContext- Overrides:
clonein classObject- Throws:
CloneNotSupportedException- See Also:
- Object#clone(), Clone (Java_method)
-
setValue
public void setValue(String name, Object value)
- Specified by:
setValuein interfaceIRulesRuntimeContext
-
getCurrentDate
public Date getCurrentDate()
- Specified by:
getCurrentDatein interfaceIRulesRuntimeContext
-
setCurrentDate
public void setCurrentDate(Date currentDate)
- Specified by:
setCurrentDatein interfaceIRulesRuntimeContext
-
getRequestDate
public Date getRequestDate()
- Specified by:
getRequestDatein interfaceIRulesRuntimeContext
-
setRequestDate
public void setRequestDate(Date requestDate)
- Specified by:
setRequestDatein interfaceIRulesRuntimeContext
-
getLob
public String getLob()
- Specified by:
getLobin interfaceIRulesRuntimeContext
-
setLob
public void setLob(String lob)
- Specified by:
setLobin interfaceIRulesRuntimeContext
-
getNature
public String getNature()
- Specified by:
getNaturein interfaceIRulesRuntimeContext
-
setNature
public void setNature(String nature)
- Specified by:
setNaturein interfaceIRulesRuntimeContext
-
getUsState
public UsStatesEnum getUsState()
- Specified by:
getUsStatein interfaceIRulesRuntimeContext
-
setUsState
public void setUsState(UsStatesEnum usState)
- Specified by:
setUsStatein interfaceIRulesRuntimeContext
-
getCountry
public CountriesEnum getCountry()
- Specified by:
getCountryin interfaceIRulesRuntimeContext
-
setCountry
public void setCountry(CountriesEnum country)
- Specified by:
setCountryin interfaceIRulesRuntimeContext
-
getUsRegion
public UsRegionsEnum getUsRegion()
- Specified by:
getUsRegionin interfaceIRulesRuntimeContext
-
setUsRegion
public void setUsRegion(UsRegionsEnum usRegion)
- Specified by:
setUsRegionin interfaceIRulesRuntimeContext
-
getCurrency
public CurrenciesEnum getCurrency()
- Specified by:
getCurrencyin interfaceIRulesRuntimeContext
-
setCurrency
public void setCurrency(CurrenciesEnum currency)
- Specified by:
setCurrencyin interfaceIRulesRuntimeContext
-
getLang
public LanguagesEnum getLang()
- Specified by:
getLangin interfaceIRulesRuntimeContext
-
setLang
public void setLang(LanguagesEnum lang)
- Specified by:
setLangin interfaceIRulesRuntimeContext
-
getRegion
public RegionsEnum getRegion()
- Specified by:
getRegionin interfaceIRulesRuntimeContext
-
setRegion
public void setRegion(RegionsEnum region)
- Specified by:
setRegionin interfaceIRulesRuntimeContext
-
getCaProvince
public CaProvincesEnum getCaProvince()
- Specified by:
getCaProvincein interfaceIRulesRuntimeContext
-
setCaProvince
public void setCaProvince(CaProvincesEnum caProvince)
- Specified by:
setCaProvincein interfaceIRulesRuntimeContext
-
getCaRegion
public CaRegionsEnum getCaRegion()
- Specified by:
getCaRegionin interfaceIRulesRuntimeContext
-
setCaRegion
public void setCaRegion(CaRegionsEnum caRegion)
- Specified by:
setCaRegionin interfaceIRulesRuntimeContext
-
getLocale
public Locale getLocale()
- Specified by:
getLocalein interfaceIRulesRuntimeContext
-
setLocale
public void setLocale(Locale locale)
- Specified by:
setLocalein interfaceIRulesRuntimeContext
-
-