Class CSVPathEnvironment
- java.lang.Object
-
- it.bancaditalia.oss.vtl.impl.environment.CSVFileEnvironment
-
- it.bancaditalia.oss.vtl.impl.environment.CSVPathEnvironment
-
- All Implemented Interfaces:
Environment
public class CSVPathEnvironment extends CSVFileEnvironment
-
-
Field Summary
Fields Modifier and Type Field Description static VTLProperty
VTL_CSV_ENVIRONMENT_SEARCH_PATH
-
Constructor Summary
Constructors Constructor Description CSVPathEnvironment()
-
Method Summary
All Methods Instance Methods Concrete 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 alias)
Returns anOptional
reference to a VTL object with the specified name in this environment.Optional<VTLValueMetadata>
getValueMetadata(String alias)
Returns anOptional
reference to the metadata of a VTL object with the specified name in this environment.-
Methods inherited from class it.bancaditalia.oss.vtl.impl.environment.CSVFileEnvironment
countLines, streamFileName
-
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
-
-
-
-
Field Detail
-
VTL_CSV_ENVIRONMENT_SEARCH_PATH
public static final VTLProperty VTL_CSV_ENVIRONMENT_SEARCH_PATH
-
-
Method Detail
-
contains
public boolean contains(String name)
Description copied from interface:Environment
Checks if this environment provides a VTL object with the specified name.- Specified by:
contains
in interfaceEnvironment
- Overrides:
contains
in classCSVFileEnvironment
- Parameters:
name
- The name of requested object.- Returns:
- true if this environment provides the specified object.
-
getValue
public Optional<VTLValue> getValue(String alias)
Description copied from interface:Environment
Returns anOptional
reference to a VTL object with the specified name in this environment.- Specified by:
getValue
in interfaceEnvironment
- Overrides:
getValue
in classCSVFileEnvironment
- Parameters:
alias
- 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
public Optional<VTLValueMetadata> getValueMetadata(String alias)
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
- Overrides:
getValueMetadata
in classCSVFileEnvironment
- Parameters:
alias
- 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.
-
-