org.nakedobjects.metamodel.facets.properties.validate
Interface PropertyValidateFacet

All Superinterfaces:
Facet, InteractionAdvisor, InteractionAdvisorFacet, ValidatingInteractionAdvisor
All Known Implementing Classes:
PropertyValidateFacetAbstract, PropertyValidateFacetDefault, PropertyValidateFacetNone, PropertyValidateFacetViaMethod

public interface PropertyValidateFacet
extends Facet, ValidatingInteractionAdvisor

The mechanism by which the proposed value of a property can be validated, called immediately before setting the value.

In the standard Naked Objects Programming Model, corresponds to invoking the validateXxx method for a property with an accessor of getXxx.

See Also:
PropertySetterFacet

Field Summary
 
Fields inherited from interface org.nakedobjects.metamodel.consent.InteractionAdvisorFacet
NOOP
 
Method Summary
 java.lang.String invalidReason(NakedObject targetObject, NakedObject proposedValue)
          The reason why the proposed value is invalid.
 
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 targetObject,
                               NakedObject proposedValue)
The reason why the proposed value is invalid.

Should return null if the value is in fact valid.



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