org.nakedobjects.metamodel.facets.collections.validate
Interface CollectionValidateAddToFacet

All Superinterfaces:
Facet, InteractionAdvisor, InteractionAdvisorFacet, ValidatingInteractionAdvisor
All Known Implementing Classes:
CollectionValidateAddToFacetAbstract, CollectionValidateAddToFacetViaMethod

public interface CollectionValidateAddToFacet
extends Facet, ValidatingInteractionAdvisor

Validate that an object can be added to a collection.

In the standard Naked Objects Programming Model, corresponds to invoking the validateAddToXxx support method for a collection.


Field Summary
 
Fields inherited from interface org.nakedobjects.metamodel.consent.InteractionAdvisorFacet
NOOP
 
Method Summary
 java.lang.String invalidReason(NakedObject target, NakedObject proposedArgument)
          Reason the object cannot be added, 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 proposedArgument)
Reason the object cannot be added, or null if okay.



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