Class PathInfoTask
java.lang.Object
ch.tocco.nice2.persist.core.api.exec.tasks2.PathInfoTask
- All Implemented Interfaces:
OptionalTask<Tuple2<EntityModel,
,Path>, PathInfoTask.PathInfo> PersistTask<Tuple2<EntityModel,
Path>, PathInfoTask.PathInfo>
public final class PathInfoTask
extends Object
implements OptionalTask<Tuple2<EntityModel,Path>,PathInfoTask.PathInfo>
This task resolves a given path against a given entity model and returns
information
about the result.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Information gathered when resolving a path against a source entity model. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondoRun
(Tuple2<EntityModel, Path> objects, CommandContext commandContext) Returns a version of this task fixed to the given path.static PersistTask
<Path, PathInfoTask.PathInfo> forPath
(EntityModel model) Returns a version of this task fixed to the given entity model.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.persist.core.api.exec.OptionalTask
run
Methods inherited from interface ch.tocco.nice2.persist.core.api.exec.PersistTask
andThenDo, compose, compose2, composeWhen, discardResult, expand, expand, getDescription, ifElse, orWhen, orWhenNot, passWhen, passWhenNot, skipErrors, unwrap
-
Field Details
-
instance
-
-
Constructor Details
-
PathInfoTask
public PathInfoTask()
-
-
Method Details
-
doRun
public PathInfoTask.PathInfo doRun(Tuple2<EntityModel, Path> objects, CommandContext commandContext) throws PersistException, InterruptedException- Specified by:
doRun
in interfaceOptionalTask<Tuple2<EntityModel,
Path>, PathInfoTask.PathInfo> - Throws:
PersistException
InterruptedException
-
forPath
Returns a version of this task fixed to the given entity model. -
forModel
Returns a version of this task fixed to the given path.
-