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
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.