org.nakedobjects.metamodel.adapter
Interface NakedObject

All Superinterfaces:
Instance, NakedObjectMM

public interface NakedObject
extends NakedObjectMM

Naked objects are adapters to domain objects, where the application is written in terms of domain objects and those objects are represented within the NOF through these adapter, and not directly.

See Also:
NakedObjectMM

Method Summary
 void changeState(ResolveState newState)
          Changes the 'lazy loaded' state of the domain object.
 void checkLock(Version version)
          Checks the version of this adapter to make sure that it does not differ from the specified version.
 void fireChangedEvent()
           
 java.lang.String getIconName()
          Returns the name of an icon to use if this object is to be displayed graphically.
 Oid getOid()
          The objects unique id.
 ResolveState getResolveState()
          Determines what 'lazy loaded' state the domain object is in.
 Version getVersion()
          Returns the current version of the domain object.
 boolean isAggregated()
          Whether this instance belongs to another object (meaning its getOid() will be AggregatedOid.
 void setOptimisticLock(Version version)
          Sets the versions of the domain object.
 
Methods inherited from interface org.nakedobjects.metamodel.adapter.NakedObjectMM
getInstance, getObject, getSpecification, getTypeOfFacet, isPersistent, isTransient, replacePojo, setTypeOfFacet, titleString
 
Methods inherited from interface org.nakedobjects.metamodel.adapter.Instance
getOwner
 

Method Detail

getIconName

java.lang.String getIconName()
Returns the name of an icon to use if this object is to be displayed graphically.

May return null if no icon is specified.


changeState

void changeState(ResolveState newState)
Changes the 'lazy loaded' state of the domain object.

See Also:
ResolveState

checkLock

void checkLock(Version version)
Checks the version of this adapter to make sure that it does not differ from the specified version.

Throws:
ConcurrencyException - if the specified version differs from the version held this adapter.

getOid

Oid getOid()
The objects unique id. This id allows the object to added to, stored by, and retrieved from the object store.


getResolveState

ResolveState getResolveState()
Determines what 'lazy loaded' state the domain object is in.

See Also:
ResolveState

getVersion

Version getVersion()
Returns the current version of the domain object.


setOptimisticLock

void setOptimisticLock(Version version)
Sets the versions of the domain object.


fireChangedEvent

void fireChangedEvent()

isAggregated

boolean isAggregated()
Whether this instance belongs to another object (meaning its getOid() will be AggregatedOid.



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