Interface Workspace
-
- All Superinterfaces:
Environment
- All Known Implementing Classes:
WorkspaceImpl
public interface Workspace extends Environment
An environment that is capable of storing and retrieving VTL rules. A class implementing this interface must be listed in theVTLGeneralProperties.ENVIRONMENT_IMPLEMENTATION
property for the VTL engine to work.- Author:
- Valentino Pinna
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addRule(Statement statement)
Add a new rule to this workspace.Optional<? extends Statement>
getRule(String name)
List<Statement>
getRules()
-
Methods inherited from interface it.bancaditalia.oss.vtl.environment.Environment
contains, getValue, getValueMetadata, init
-
-
-
-
Method Detail
-
getRule
Optional<? extends Statement> getRule(String name)
- Parameters:
name
- The name of requested rule.- Returns:
- An Optional with a reference to the requested object or
Optional.empty()
if the object is not found in this environment.
-
addRule
void addRule(Statement statement)
Add a new rule to this workspace.- Parameters:
statement
- The rule to add to this workspace.
-
-