org.nakedobjects.metamodel.facets.propcoll.access
Class PropertyAccessorFacetViaAccessor
java.lang.Object
org.nakedobjects.metamodel.facets.FacetAbstract
org.nakedobjects.metamodel.facets.propcoll.access.PropertyAccessorFacetAbstract
org.nakedobjects.metamodel.facets.propcoll.access.PropertyAccessorFacetViaAccessor
- All Implemented Interfaces:
- Facet, PropertyAccessorFacet, ImperativeFacet
public class PropertyAccessorFacetViaAccessor
- extends PropertyAccessorFacetAbstract
- implements ImperativeFacet
| 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 |
PropertyAccessorFacetViaAccessor
public PropertyAccessorFacetViaAccessor(java.lang.reflect.Method method,
FacetHolder holder)
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:
getProperty
public java.lang.Object getProperty(NakedObject owningAdapter)
- Description copied from interface:
PropertyAccessorFacet
- Gets the value of this property from this object.
- Specified by:
getProperty in interface PropertyAccessorFacet- Specified by:
getProperty in class PropertyAccessorFacetAbstract
toStringValues
protected java.lang.String toStringValues()
- Overrides:
toStringValues in class FacetAbstract
Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.