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

java.lang.Object
  extended by org.nakedobjects.metamodel.facets.FacetFactoryAbstract
      extended by org.nakedobjects.metamodel.java5.MethodPrefixBasedFacetFactoryAbstract
          extended by org.nakedobjects.metamodel.facets.object.ident.title.TitleMethodFacetFactory
All Implemented Interfaces:
FacetFactory, MethodPrefixBasedFacetFactory, SpecificationLoaderAware

public class TitleMethodFacetFactory
extends MethodPrefixBasedFacetFactoryAbstract


Field Summary
 
Fields inherited from class org.nakedobjects.metamodel.java5.MethodPrefixBasedFacetFactoryAbstract
CHOICES_PREFIX, CLASS, DEFAULT_PREFIX, NO_PARAMETERS, NO_PARAMETERS_TYPES, OBJECT, VALIDATE_PREFIX
 
Constructor Summary
TitleMethodFacetFactory()
           
 
Method Summary
 boolean process(java.lang.Class<?> type, MethodRemover methodRemover, FacetHolder facetHolder)
          If no title or toString can be used then will use Facets provided by FallbackFacetFactory instead.
 
Methods inherited from class org.nakedobjects.metamodel.java5.MethodPrefixBasedFacetFactoryAbstract
findAndRemoveAlwaysHideMethod, findAndRemoveAlwaysHideMethod, findAndRemoveAlwaysHideMethod, findAndRemoveDescriptionMethod, findAndRemoveDescriptionMethod, findAndRemoveDescriptionMethod, findAndRemoveDisableForSessionMethod, findAndRemoveDisableForSessionMethod, findAndRemoveDisableMethod, findAndRemoveDisableMethod, findAndRemoveDisableMethod, findAndRemoveHideForSessionMethod, findAndRemoveHideForSessionMethod, findAndRemoveHideMethod, findAndRemoveHideMethod, findAndRemoveHideMethod, findAndRemoveNameMethod, findAndRemoveNameMethod, findAndRemoveNameMethod, findAndRemoveProtectMethod, findAndRemoveProtectMethod, findAndRemoveProtectMethod, findMethod, findMethod, findMethodWithOrWithoutParameters, getPrefixes, paramTypesOrNull, removeMethod
 
Methods inherited from class org.nakedobjects.metamodel.facets.FacetFactoryAbstract
getFeatureTypes, getSpecificationLoader, process, processParams, setSpecificationLoader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.nakedobjects.metamodel.facets.FacetFactory
getFeatureTypes, process, processParams
 

Constructor Detail

TitleMethodFacetFactory

public TitleMethodFacetFactory()
Method Detail

process

public boolean process(java.lang.Class<?> type,
                       MethodRemover methodRemover,
                       FacetHolder facetHolder)
If no title or toString can be used then will use Facets provided by FallbackFacetFactory instead.

Specified by:
process in interface FacetFactory
Overrides:
process in class FacetFactoryAbstract
Parameters:
type - - class being processed
methodRemover - - allow any methods of the class to be removed
facetHolder - - to attach the facets to
Returns:
true if any facets were added, false otherwise.


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