Package org.eolang.maven.objectionary
Class OyFilesystem
- java.lang.Object
-
- org.eolang.maven.objectionary.OyFilesystem
-
- All Implemented Interfaces:
Objectionary
public final class OyFilesystem extends Object implements Objectionary
Objectionary stored locally in the filesystem. The aim of this class is to download object sources directly from the filesystem, for example, from the project itself. It is useful for testing purposes. The difference withOyHome
is that OyHome downloads object sources from the shared cash folder, and OyFilesystemSources downloads object sources from the particular project folder - from the source code of the project itself.- Since:
- 0.30
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eolang.maven.objectionary.Objectionary
Objectionary.Fake
-
-
Constructor Summary
Constructors Constructor Description OyFilesystem()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(String name)
Checks whether an Objectionary contains a provided object.org.cactoos.Input
get(String name)
Resolve object.
-
-
-
Method Detail
-
get
public org.cactoos.Input get(String name)
Description copied from interface:Objectionary
Resolve object.- Specified by:
get
in interfaceObjectionary
- Parameters:
name
- Object name.- Returns:
- Object code.
-
contains
public boolean contains(String name)
Description copied from interface:Objectionary
Checks whether an Objectionary contains a provided object.- Specified by:
contains
in interfaceObjectionary
- Parameters:
name
- Object name.- Returns:
- Boolean: "true" if found, "false" if not.
-
-