org.nakedobjects.metamodel.facets.object.immutable
Class ImmutableFacetAbstract

java.lang.Object
  extended by org.nakedobjects.metamodel.facets.FacetAbstract
      extended by org.nakedobjects.metamodel.facets.SingleWhenValueFacetAbstract
          extended by org.nakedobjects.metamodel.facets.object.immutable.ImmutableFacetAbstract
All Implemented Interfaces:
InteractionAdvisor, InteractionAdvisorFacet, Facet, ImmutableFacet, SingleWhenValueFacet, DisablingInteractionAdvisor
Direct Known Subclasses:
ImmutableFacetImpl, ImmutableFacetNever

public abstract class ImmutableFacetAbstract
extends SingleWhenValueFacetAbstract
implements ImmutableFacet


Field Summary
 
Fields inherited from interface org.nakedobjects.metamodel.consent.InteractionAdvisorFacet
NOOP
 
Constructor Summary
ImmutableFacetAbstract(When value, FacetHolder holder)
           
 
Method Summary
abstract  java.lang.String disabledReason(NakedObject no)
          Hook method for subclasses to override.
 java.lang.String disables(UsabilityContext<? extends UsabilityEvent> ic)
          Whether the rule represented by this facet disables the member to which it applies.
static java.lang.Class<? extends Facet> type()
           
 
Methods inherited from class org.nakedobjects.metamodel.facets.SingleWhenValueFacetAbstract
toStringValues, value, when
 
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.SingleWhenValueFacet
value
 
Methods inherited from interface org.nakedobjects.metamodel.facets.Facet
alwaysReplace, facetType, getFacetHolder, getUnderlyingFacet, isDerived, isNoop, setFacetHolder, setUnderlyingFacet
 

Constructor Detail

ImmutableFacetAbstract

public ImmutableFacetAbstract(When value,
                              FacetHolder holder)
Method Detail

type

public static java.lang.Class<? extends Facet> type()

disabledReason

public abstract java.lang.String disabledReason(NakedObject no)
Hook method for subclasses to override.


disables

public java.lang.String disables(UsabilityContext<? extends UsabilityEvent> ic)
Description copied from interface: DisablingInteractionAdvisor
Whether the rule represented by this facet disables the member to which it applies.

Implementations should use the provided InteractionContext to determine whether they disable the member from being modified or used. They must however guard against a null target and session - neither are guaranteed to be populated.

Specified by:
disables in interface DisablingInteractionAdvisor


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