org.nakedobjects.metamodel.facets.object.ident.title
Class TitleFacetViaToStringMethod

java.lang.Object
  extended by org.nakedobjects.metamodel.facets.FacetAbstract
      extended by org.nakedobjects.metamodel.facets.object.ident.title.TitleFacetAbstract
          extended by org.nakedobjects.metamodel.facets.object.ident.title.TitleFacetViaToStringMethod
All Implemented Interfaces:
Facet, TitleFacet, ImperativeFacet

public class TitleFacetViaToStringMethod
extends TitleFacetAbstract
implements ImperativeFacet


Field Summary
 
Fields inherited from interface org.nakedobjects.metamodel.java5.ImperativeFacet
FILTER
 
Constructor Summary
TitleFacetViaToStringMethod(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.
 boolean isNoop()
          Assume implementation is not a no-op.
 java.lang.String title(NakedObject object)
           
 
Methods inherited from class org.nakedobjects.metamodel.facets.object.ident.title.TitleFacetAbstract
type
 
Methods inherited from class org.nakedobjects.metamodel.facets.FacetAbstract
alwaysReplace, facetType, getFacetHolder, getIdentified, getUnderlyingFacet, isDerived, setFacetHolder, setUnderlyingFacet, toString, toStringValues, 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, setFacetHolder, setUnderlyingFacet
 

Constructor Detail

TitleFacetViaToStringMethod

public TitleFacetViaToStringMethod(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:

title

public java.lang.String title(NakedObject object)
Specified by:
title in interface TitleFacet

isNoop

public boolean isNoop()
Description copied from class: FacetAbstract
Assume implementation is not a no-op.

No-op implementations should override and return true.

Specified by:
isNoop in interface Facet
Overrides:
isNoop in class FacetAbstract


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