Package com.evolveum.axiom.lang.impl
Class ValueActionImpl<V>
- java.lang.Object
-
- com.evolveum.axiom.lang.impl.ValueActionImpl<V>
-
- All Implemented Interfaces:
AxiomStatementRule.ActionBuilder<V>
,Action<AxiomSemanticException>
,DependantAction<AxiomSemanticException>
,Dependency<Void>
public class ValueActionImpl<V> extends Object implements AxiomStatementRule.ActionBuilder<V>, DependantAction<AxiomSemanticException>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.evolveum.axiom.reactor.Dependency
Dependency.Immediate<V>, Dependency.OptionalDep<T>, Dependency.Search<T>, Dependency.Suppliable<V>, Dependency.Unsatified<V>
-
-
Constructor Summary
Constructors Constructor Description ValueActionImpl(ValueContext<V> context, String rule)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply()
ValueActionImpl<V>
apply(AxiomStatementRule.Action<V> action)
Collection<ValueActionImpl<?>>
build()
boolean
canProcess()
Collection<Dependency<?>>
dependencies()
Optional<AxiomSemanticException>
error()
AxiomSemanticException
error(String message, Object... arguments)
Exception
errorMessage()
void
fail(Exception e)
boolean
isApplied()
boolean
isDefined()
String
name()
Dependency<AxiomValue<?>>
require(AxiomValueContext<?> ext)
<V,X extends Dependency<V>>
Xrequire(X req)
Collection<Dependency<?>>
requirements()
boolean
successful()
String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.evolveum.axiom.reactor.Action
get, isSatisfied
-
Methods inherited from interface com.evolveum.axiom.reactor.DependantAction
canApply
-
Methods inherited from interface com.evolveum.axiom.reactor.Dependency
flatMap, isRequired, map, unsatisfied
-
-
-
-
Constructor Detail
-
ValueActionImpl
public ValueActionImpl(ValueContext<V> context, String rule)
-
-
Method Detail
-
require
public <V,X extends Dependency<V>> X require(X req)
- Specified by:
require
in interfaceAxiomStatementRule.ActionBuilder<V>
-
apply
public ValueActionImpl<V> apply(AxiomStatementRule.Action<V> action)
- Specified by:
apply
in interfaceAxiomStatementRule.ActionBuilder<V>
-
canProcess
public boolean canProcess()
-
apply
public void apply() throws AxiomSemanticException
- Specified by:
apply
in interfaceAction<V>
- Throws:
AxiomSemanticException
-
isApplied
public boolean isApplied()
-
errorMessage
public Exception errorMessage()
- Specified by:
errorMessage
in interfaceDependency<V>
-
successful
public boolean successful()
- Specified by:
successful
in interfaceAction<V>
-
requirements
public Collection<Dependency<?>> requirements()
-
fail
public void fail(Exception e) throws AxiomSemanticException
- Specified by:
fail
in interfaceAction<V>
- Parameters:
e
- Exception which occurred during call ofAction.apply()
- Throws:
AxiomSemanticException
-
dependencies
public Collection<Dependency<?>> dependencies()
- Specified by:
dependencies
in interfaceDependantAction<V>
-
error
public Optional<AxiomSemanticException> error()
-
isDefined
public boolean isDefined()
-
build
public Collection<ValueActionImpl<?>> build()
-
require
public Dependency<AxiomValue<?>> require(AxiomValueContext<?> ext)
- Specified by:
require
in interfaceAxiomStatementRule.ActionBuilder<V>
-
error
public AxiomSemanticException error(String message, Object... arguments)
- Specified by:
error
in interfaceAxiomStatementRule.ActionBuilder<V>
-
name
public String name()
-
-