org.nakedobjects.metamodel.facets.properties.defaults
Class PropertyDefaultFacetViaMethod

java.lang.Object
  extended by org.nakedobjects.metamodel.facets.FacetAbstract
      extended by org.nakedobjects.metamodel.facets.properties.defaults.PropertyDefaultFacetAbstract
          extended by org.nakedobjects.metamodel.facets.properties.defaults.PropertyDefaultFacetViaMethod
All Implemented Interfaces:
Facet, PropertyDefaultFacet, ImperativeFacet

public class PropertyDefaultFacetViaMethod
extends PropertyDefaultFacetAbstract
implements ImperativeFacet


Field Summary
 
Fields inherited from interface org.nakedobjects.metamodel.java5.ImperativeFacet
FILTER
 
Constructor Summary
PropertyDefaultFacetViaMethod(java.lang.reflect.Method method, FacetHolder holder, SpecificationLoader specificationLoader, RuntimeContext runtimeContext)
           
 
Method Summary
 NakedObject getDefault(NakedObject owningAdapter)
          The default value for this property in a newly created object.
 java.util.List<java.lang.reflect.Method> getMethods()
          Returns a singleton list of the Method provided in the constructor.
protected  RuntimeContext getRuntimeContext()
           
 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.
protected  java.lang.String toStringValues()
           
 
Methods inherited from class org.nakedobjects.metamodel.facets.properties.defaults.PropertyDefaultFacetAbstract
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

PropertyDefaultFacetViaMethod

public PropertyDefaultFacetViaMethod(java.lang.reflect.Method method,
                                     FacetHolder holder,
                                     SpecificationLoader specificationLoader,
                                     RuntimeContext runtimeContext)
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:

getDefault

public NakedObject getDefault(NakedObject owningAdapter)
Description copied from interface: PropertyDefaultFacet
The default value for this property in a newly created object.

Specified by:
getDefault in interface PropertyDefaultFacet

toStringValues

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

getRuntimeContext

protected RuntimeContext getRuntimeContext()


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