Class SDMXEnvironment
- java.lang.Object
-
- it.bancaditalia.oss.vtl.impl.environment.SDMXEnvironment
-
- All Implemented Interfaces:
Environment
,Serializable
public class SDMXEnvironment extends Object implements Environment, Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static VTLProperty
SDMX_ENVIRONMENT_AUTODROP_IDENTIFIERS
-
Constructor Summary
Constructors Constructor Description SDMXEnvironment()
-
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.protected VTLValueMetadata
getMetadataSDMX(String provider, String dataflow, String[] tokens)
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.protected DataSet
parseSDMXTable(String name, List<it.bancaditalia.oss.sdmx.api.PortableTimeSeries<Double>> table)
-
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
-
SDMX_ENVIRONMENT_AUTODROP_IDENTIFIERS
public static final VTLProperty SDMX_ENVIRONMENT_AUTODROP_IDENTIFIERS
-
-
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
- Parameters:
name
- The name of requested object.- Returns:
- true if this environment provides the specified object.
-
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.
-
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.
-
parseSDMXTable
protected DataSet parseSDMXTable(String name, List<it.bancaditalia.oss.sdmx.api.PortableTimeSeries<Double>> table) throws it.bancaditalia.oss.sdmx.exceptions.DataStructureException
- Throws:
it.bancaditalia.oss.sdmx.exceptions.DataStructureException
-
getMetadataSDMX
protected VTLValueMetadata getMetadataSDMX(String provider, String dataflow, String[] tokens)
-
-