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 voidapply()ValueActionImpl<V>apply(AxiomStatementRule.Action<V> action)Collection<ValueActionImpl<?>>build()booleancanProcess()Collection<Dependency<?>>dependencies()Optional<AxiomSemanticException>error()AxiomSemanticExceptionerror(String message, Object... arguments)ExceptionerrorMessage()voidfail(Exception e)booleanisApplied()booleanisDefined()Stringname()Dependency<AxiomValue<?>>require(AxiomValueContext<?> ext)<V,X extends Dependency<V>>
Xrequire(X req)Collection<Dependency<?>>requirements()booleansuccessful()StringtoString()-
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:
requirein interfaceAxiomStatementRule.ActionBuilder<V>
-
apply
public ValueActionImpl<V> apply(AxiomStatementRule.Action<V> action)
- Specified by:
applyin interfaceAxiomStatementRule.ActionBuilder<V>
-
canProcess
public boolean canProcess()
-
apply
public void apply() throws AxiomSemanticException- Specified by:
applyin interfaceAction<V>- Throws:
AxiomSemanticException
-
isApplied
public boolean isApplied()
-
errorMessage
public Exception errorMessage()
- Specified by:
errorMessagein interfaceDependency<V>
-
successful
public boolean successful()
- Specified by:
successfulin interfaceAction<V>
-
requirements
public Collection<Dependency<?>> requirements()
-
fail
public void fail(Exception e) throws AxiomSemanticException
- Specified by:
failin interfaceAction<V>- Parameters:
e- Exception which occured during call ofAction.apply()- Throws:
AxiomSemanticException
-
dependencies
public Collection<Dependency<?>> dependencies()
- Specified by:
dependenciesin 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:
requirein interfaceAxiomStatementRule.ActionBuilder<V>
-
error
public AxiomSemanticException error(String message, Object... arguments)
- Specified by:
errorin interfaceAxiomStatementRule.ActionBuilder<V>
-
name
public String name()
-
-