org.nakedobjects.metamodel.facets.actions.validate
Interface ActionValidationFacet

All Superinterfaces:
Facet, InteractionAdvisor, InteractionAdvisorFacet, ValidatingInteractionAdvisor
All Known Implementing Classes:
ActionValidationFacetAbstract, ActionValidationFacetViaMethod

public interface ActionValidationFacet
extends Facet, ValidatingInteractionAdvisor

The mechanism by which the set of parameters of the action can be validated before the action itself is invoked.

In the standard Naked Objects Programming Model, corresponds to invoking the validateXxx support method for an action.

Note that the parameters may be validated independently first (eg a range check on a numeric parameter).

See Also:
ActionInvocationFacet

Field Summary
 
Fields inherited from interface org.nakedobjects.metamodel.consent.InteractionAdvisorFacet
NOOP
 
Method Summary
 java.lang.String invalidReason(NakedObject target, NakedObject[] arguments)
          Reason why the validation has failed, or null if okay.
 
Methods inherited from interface org.nakedobjects.metamodel.interactions.ValidatingInteractionAdvisor
invalidates
 
Methods inherited from interface org.nakedobjects.metamodel.facets.Facet
alwaysReplace, facetType, getFacetHolder, getUnderlyingFacet, isDerived, isNoop, setFacetHolder, setUnderlyingFacet
 

Method Detail

invalidReason

java.lang.String invalidReason(NakedObject target,
                               NakedObject[] arguments)
Reason why the validation has failed, or null if okay.



Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.