org.nakedobjects.metamodel.facets.properties.validate
Class PropertyValidateFacetViaMethod

java.lang.Object
  extended by org.nakedobjects.metamodel.facets.FacetAbstract
      extended by org.nakedobjects.metamodel.facets.properties.validate.PropertyValidateFacetAbstract
          extended by org.nakedobjects.metamodel.facets.properties.validate.PropertyValidateFacetViaMethod
All Implemented Interfaces:
InteractionAdvisor, InteractionAdvisorFacet, Facet, PropertyValidateFacet, ValidatingInteractionAdvisor, ImperativeFacet

public class PropertyValidateFacetViaMethod
extends PropertyValidateFacetAbstract
implements ImperativeFacet


Field Summary
 
Fields inherited from interface org.nakedobjects.metamodel.java5.ImperativeFacet
FILTER
 
Fields inherited from interface org.nakedobjects.metamodel.consent.InteractionAdvisorFacet
NOOP
 
Constructor Summary
PropertyValidateFacetViaMethod(java.lang.reflect.Method method, FacetHolder holder)
           
 
Method Summary
 java.util.List<java.lang.reflect.Method> getMethods()
          Returns a singleton list of the Method provided in the constructor.
 boolean impliesObjectChanged()
          Whether invoking this method requires an DomainObjectContainer.objectChanged(Object) to occur afterwards.
 boolean impliesResolve()
          Whether invoking this requires a DomainObjectContainer.resolve(Object) to occur first.
 java.lang.String invalidReason(NakedObject owningAdapter, NakedObject proposedAdapter)
          The reason why the proposed value is invalid.
protected  java.lang.String toStringValues()
           
 
Methods inherited from class org.nakedobjects.metamodel.facets.properties.validate.PropertyValidateFacetAbstract
invalidates, type
 
Methods inherited from class org.nakedobjects.metamodel.facets.FacetAbstract
alwaysReplace, facetType, getFacetHolder, getIdentified, getUnderlyingFacet, isDerived, isNoop, setFacetHolder, setUnderlyingFacet, toString, unwrapObject, unwrapString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.nakedobjects.metamodel.facets.Facet
alwaysReplace, facetType, getFacetHolder, getUnderlyingFacet, isDerived, isNoop, setFacetHolder, setUnderlyingFacet
 

Constructor Detail

PropertyValidateFacetViaMethod

public PropertyValidateFacetViaMethod(java.lang.reflect.Method method,
                                      FacetHolder holder)
Method Detail

getMethods

public java.util.List<java.lang.reflect.Method> getMethods()
Returns a singleton list of the Method provided in the constructor.

Specified by:
getMethods in interface ImperativeFacet

impliesResolve

public boolean impliesResolve()
Description copied from interface: ImperativeFacet
Whether invoking this requires a DomainObjectContainer.resolve(Object) to occur first.

Specified by:
impliesResolve in interface ImperativeFacet

impliesObjectChanged

public boolean impliesObjectChanged()
Description copied from interface: ImperativeFacet
Whether invoking this method requires an DomainObjectContainer.objectChanged(Object) to occur afterwards.

Specified by:
impliesObjectChanged in interface ImperativeFacet
Returns:

invalidReason

public java.lang.String invalidReason(NakedObject owningAdapter,
                                      NakedObject proposedAdapter)
Description copied from interface: PropertyValidateFacet
The reason why the proposed value is invalid.

Should return null if the value is in fact valid.

Specified by:
invalidReason in interface PropertyValidateFacet

toStringValues

protected java.lang.String toStringValues()
Overrides:
toStringValues in class FacetAbstract


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