org.nakedobjects.metamodel.adapter
Class InstanceAbstract

java.lang.Object
  extended by org.nakedobjects.metamodel.adapter.InstanceAbstract
All Implemented Interfaces:
Instance

public abstract class InstanceAbstract
extends java.lang.Object
implements Instance


Constructor Summary
protected InstanceAbstract()
           
protected InstanceAbstract(NakedObject owner)
           
protected InstanceAbstract(NakedObject owner, Specification specification)
           
 
Method Summary
 NakedObject getOwner()
          The owning NakedObject of this instance.
 Specification getSpecification()
          Returns the specification that details the structure of this instance.
protected  Specification getSpecificationNoLoad()
          Allows subclasses to get specification without necessarily triggering loading if not yet known.
protected  Specification loadSpecification()
          Allows the specification to be lazily loaded.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstanceAbstract

protected InstanceAbstract()

InstanceAbstract

protected InstanceAbstract(NakedObject owner)

InstanceAbstract

protected InstanceAbstract(NakedObject owner,
                           Specification specification)
Method Detail

getOwner

public final NakedObject getOwner()
Description copied from interface: Instance
The owning NakedObject of this instance.

In the case of the NakedObject interface, just returns null.

Specified by:
getOwner in interface Instance
Returns:

getSpecification

public Specification getSpecification()
Description copied from interface: Instance
Returns the specification that details the structure of this instance.

Specified by:
getSpecification in interface Instance

loadSpecification

protected Specification loadSpecification()
Allows the specification to be lazily loaded.


getSpecificationNoLoad

protected final Specification getSpecificationNoLoad()
Allows subclasses to get specification without necessarily triggering loading if not yet known.



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