org.nakedobjects.metamodel.facets.object.defaults
Interface DefaultedFacet

All Superinterfaces:
Facet, SingleValueFacet
All Known Implementing Classes:
DefaultedFacetAbstract, DefaultedFacetAnnotation, DefaultedFacetFromConfiguration, DefaultedFacetUsingDefaultsProvider

public interface DefaultedFacet
extends SingleValueFacet

Indicates that this class has a default.

The mechanism for providing a default will vary by the applib. In the Java applib, this is done by implementing the DefaultProvider interface.

The rest of the framework does not used this directly, but instead we infer PropertyDefaultFacet and ActionDefaultsFacet from the method's return type / parameter types, and copy over.


Method Summary
 java.lang.Object getDefault()
          The default (as a pojo, not a NakedObject).
 
Methods inherited from interface org.nakedobjects.metamodel.facets.Facet
alwaysReplace, facetType, getFacetHolder, getUnderlyingFacet, isDerived, isNoop, setFacetHolder, setUnderlyingFacet
 

Method Detail

getDefault

java.lang.Object getDefault()
The default (as a pojo, not a NakedObject).

Returns:


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