org.nakedobjects.metamodel.facets.collections.modify
Class CollectionClearFacetViaAccessor

java.lang.Object
  extended by org.nakedobjects.metamodel.facets.FacetAbstract
      extended by org.nakedobjects.metamodel.facets.collections.modify.CollectionClearFacetAbstract
          extended by org.nakedobjects.metamodel.facets.collections.modify.CollectionClearFacetViaAccessor
All Implemented Interfaces:
CollectionClearFacet, Facet, ImperativeFacet

public class CollectionClearFacetViaAccessor
extends CollectionClearFacetAbstract
implements ImperativeFacet


Field Summary
 
Fields inherited from interface org.nakedobjects.metamodel.java5.ImperativeFacet
FILTER
 
Constructor Summary
CollectionClearFacetViaAccessor(java.lang.reflect.Method method, FacetHolder holder, RuntimeContext runtimeContext)
           
 
Method Summary
 void clear(NakedObject owningAdapter)
           
 java.util.List<java.lang.reflect.Method> getMethods()
          Returns a singleton list of the Method provided in the constructor.
 boolean impliesObjectChanged()
          Bytecode cannot automatically call DomainObjectContainer.objectChanged(Object) because cannot distinguish whether interacting with accessor to read it or to modify its contents.
 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.collections.modify.CollectionClearFacetAbstract
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

CollectionClearFacetViaAccessor

public CollectionClearFacetViaAccessor(java.lang.reflect.Method method,
                                       FacetHolder holder,
                                       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()
Bytecode cannot automatically call DomainObjectContainer.objectChanged(Object) because cannot distinguish whether interacting with accessor to read it or to modify its contents.

Specified by:
impliesObjectChanged in interface ImperativeFacet
Returns:

clear

public void clear(NakedObject owningAdapter)
Specified by:
clear in interface CollectionClearFacet

toStringValues

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


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