Package net.thevpc.naru.ext.tools.plan
Enum Class NaruPlanValidatorKind
- All Implemented Interfaces:
Serializable,Comparable<NaruPlanValidatorKind>,Constable
The gate that must pass before an item's work is accepted as
NaruPlanItemStatus.DONE.
Execution of these validators is not part of the plan model; the model only records which kind was requested and whether it passed, so that a plan can be reloaded and audited without re-running any model call.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA second model judges the item's output.No gate.A human approves the item before it is accepted. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisGate()static net.thevpc.nuts.util.NOptional<NaruPlanValidatorKind>static NaruPlanValidatorKindReturns the enum constant of this class with the specified name.static NaruPlanValidatorKind[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
No gate. The executor's own completion report is accepted as-is. -
MODEL_REVIEW
A second model judges the item's output. Requires a distinct model from the executor, otherwise the item is reviewing its own work. -
USER_APPROVAL
A human approves the item before it is accepted. Implemented withNaruTask.requestInput(..), which the readline thread services for background tasks, so it does not require the item to be foreground.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
isGate
public boolean isGate() -
parse
-