Class REnvironment
- java.lang.Object
-
- it.bancaditalia.oss.vtl.impl.environment.REnvironment
-
- All Implemented Interfaces:
Environment
public class REnvironment extends Object implements Environment
-
-
Constructor Summary
Constructors Constructor Description REnvironment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(String id)
Checks if this environment provides a VTL object with the specified name.org.rosuda.JRI.Rengine
getEngine()
Optional<VTLValue>
getValue(String name)
Returns anOptional
reference to a VTL object with the specified name in this environment.Optional<VTLValueMetadata>
getValueMetadata(String name)
Returns anOptional
reference to the metadata of a VTL object with the specified name in this environment.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface it.bancaditalia.oss.vtl.environment.Environment
init
-
-
-
-
Method Detail
-
getEngine
public org.rosuda.JRI.Rengine getEngine()
-
getValueMetadata
public Optional<VTLValueMetadata> getValueMetadata(String name)
Description copied from interface:Environment
Returns anOptional
reference to the metadata of a VTL object with the specified name in this environment.- Specified by:
getValueMetadata
in interfaceEnvironment
- Parameters:
name
- The name of requested object- Returns:
- An Optional with a reference to the metadata of the requested object o
Optional.empty()
if the object is not found in this environment.
-
getValue
public Optional<VTLValue> getValue(String name)
Description copied from interface:Environment
Returns anOptional
reference to a VTL object with the specified name in this environment.- Specified by:
getValue
in interfaceEnvironment
- Parameters:
name
- The name of requested object.- Returns:
- An Optional with a reference to the requested object o
Optional.empty()
if the object is not found in this environment.
-
contains
public boolean contains(String id)
Description copied from interface:Environment
Checks if this environment provides a VTL object with the specified name.- Specified by:
contains
in interfaceEnvironment
- Parameters:
id
- The name of requested object.- Returns:
- true if this environment provides the specified object.
-
-