Class WorkspaceImpl
- java.lang.Object
-
- it.bancaditalia.oss.vtl.impl.environment.WorkspaceImpl
-
- All Implemented Interfaces:
Environment
,Workspace
public class WorkspaceImpl extends Object implements Workspace
-
-
Constructor Summary
Constructors Constructor Description WorkspaceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRule(Statement statement)
Add a new rule to this workspace.boolean
contains(String alias)
Checks if this environment provides a VTL object with the specified name.Optional<Statement>
getRule(String alias)
List<Statement>
getRules()
Optional<VTLValue>
getValue(String alias)
Returns anOptional
reference to 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
getValueMetadata, init
-
-
-
-
Method Detail
-
addRule
public void addRule(Statement statement)
Description copied from interface:Workspace
Add a new rule to this workspace.
-
contains
public boolean contains(String alias)
Description copied from interface:Environment
Checks if this environment provides a VTL object with the specified name.- Specified by:
contains
in interfaceEnvironment
- Parameters:
alias
- 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
- 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.
-
getRule
public Optional<Statement> getRule(String alias)
Description copied from interface:Workspace
- Specified by:
getRule
in interfaceWorkspace
- Parameters:
alias
- 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.
-
-