Interface Environment
-
- All Known Subinterfaces:
Workspace
- All Known Implementing Classes:
CSVFileEnvironment
,CSVPathEnvironment
,REnvironment
,SDMXEnvironment
,SparkEnvironment
,WorkspaceImpl
public interface Environment
A provider of VTL data objects.- Author:
- Valentino Pinna
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description boolean
contains(String name)
Checks if this environment provides a VTL object with the specified name.Optional<VTLValue>
getValue(String name)
Returns anOptional
reference to a VTL object with the specified name in this environment.default Optional<VTLValueMetadata>
getValueMetadata(String name)
Returns anOptional
reference to the metadata of a VTL object with the specified name in this environment.default Environment
init(Object... configuration)
Implementing classes may override this method if they need to use a particular initialization procedure.
-
-
-
Method Detail
-
contains
boolean contains(String name)
Checks if this environment provides a VTL object with the specified name.- Parameters:
name
- The name of requested object.- Returns:
- true if this environment provides the specified object.
-
getValue
Optional<VTLValue> getValue(String name)
Returns anOptional
reference to a VTL object with the specified name in this environment.- 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.
-
getValueMetadata
default Optional<VTLValueMetadata> getValueMetadata(String name)
Returns anOptional
reference to the metadata of a VTL object with the specified name in this environment.- 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.
-
init
default Environment init(Object... configuration)
Implementing classes may override this method if they need to use a particular initialization procedure.- Parameters:
configuration
- Parameters that may be passed to the implementing class.- Returns:
this
instance, initialized.
-
-