Package org.intocps.maestro.interpreter
Class DirectorySpecificationProvider
- java.lang.Object
-
- org.intocps.maestro.interpreter.DirectorySpecificationProvider
-
- All Implemented Interfaces:
ITransitionManager.ISpecificationProvider
public class DirectorySpecificationProvider extends Object implements ITransitionManager.ISpecificationProvider
-
-
Constructor Summary
Constructors Constructor Description DirectorySpecificationProvider(File root, Function<File,org.intocps.maestro.ast.node.ARootDocument> parseAndCheck)DirectorySpecificationProvider(File root, Function<File,org.intocps.maestro.ast.node.ARootDocument> parseAndCheck, int checkFrequency, int minimumStepBeforeOffering)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<Path,org.intocps.maestro.ast.node.ARootDocument>get()Get possible specificationsMap<Path,org.intocps.maestro.ast.node.ARootDocument>get(String name)Get possible specificationsvoidremove(org.intocps.maestro.ast.node.ARootDocument specification)Removes a specification.
-
-
-
Method Detail
-
get
public Map<Path,org.intocps.maestro.ast.node.ARootDocument> get()
Description copied from interface:ITransitionManager.ISpecificationProviderGet possible specifications- Specified by:
getin interfaceITransitionManager.ISpecificationProvider- Returns:
- a map of path of the specification to the specification
-
get
public Map<Path,org.intocps.maestro.ast.node.ARootDocument> get(String name)
Description copied from interface:ITransitionManager.ISpecificationProviderGet possible specifications- Specified by:
getin interfaceITransitionManager.ISpecificationProvider- Parameters:
name- a name used as a discovery filter- Returns:
- a map of path of the specification to the specification
-
remove
public void remove(org.intocps.maestro.ast.node.ARootDocument specification)
Description copied from interface:ITransitionManager.ISpecificationProviderRemoves a specification. After this it must not be returned by eitherITransitionManager.ISpecificationProvider.get()orITransitionManager.ISpecificationProvider.get(String)- Specified by:
removein interfaceITransitionManager.ISpecificationProvider- Parameters:
specification- the specification to remove
-
-