|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
org.nakedobjects.object.AbstractNakedObject
| Constructor Summary | |
AbstractNakedObject()
|
|
| Method Summary | |
About |
about()
Return a standard READ/WRITE About, specifically: AttributeController.READ_WRITE |
About |
aboutExplorationActionClass()
|
About |
aboutExplorationActionClone()
|
About |
aboutExplorationActionMakePersistent()
|
boolean |
canClone()
Returns true if this object should be able to be cloned. |
java.lang.String |
contextualTitle()
Defaults to the value passed backed from title(). |
void |
copyObject(Naked objectToCopy)
Copies the fields from the specified instance to the current instance. |
void |
created()
hook method - fully specified in the interface |
protected static NakedObject |
createInstance(java.lang.Class type)
A utility method for creating new objects in the context of the system - that is, it is added to the pool of objects the enterprise system contains. |
protected static NakedObject |
createInstance(java.lang.String typeName)
A utility method for creating new objects in the context of the system - that is, it is added to the pool of objects the enterprise system contains. |
protected static NakedObject |
createTransientInstance(java.lang.Class type)
A utility method for creating new objects in the context of the system - that is, it is added to the pool of objects the enterprise system contains. |
void |
deleted()
hook method, see interface description for further details |
void |
destroy()
Called when a the system destoys an object - permenantly removes it from the object store. |
boolean |
equals(java.lang.Object obj)
An object will be deemed to be equal if it: is this object; or has the same OID. |
NakedClass |
explorationActionClass()
|
AbstractNakedObject |
explorationActionClone()
Clones the current object. |
NakedError |
explorationActionMakePersistent()
|
static java.lang.String |
getClassHelpText()
Returns null. |
java.lang.String |
getClassName()
Returns the short class name looking at the getFullClassName() result and passes back all the text after the last period/dot. |
java.lang.String |
getCollectiveName()
Deprecated. |
java.lang.String |
getFullClassName()
Returns the class name by getting the Class object fot this object and asks it for the name using getName() |
java.lang.String |
getIconName()
Returns the String returned by getClassName() |
java.lang.String |
getIdString()
The objects descriptive id for dislaying to a user. |
NakedClass |
getNakedClass()
Returns the NakedClass that represents this object. |
java.lang.String |
getObjectHelpText()
Returns a textual desctiption of the object - its contents and possible uses. |
NakedObjectStore |
getObjectStore()
|
java.lang.Object |
getOid()
The objects unique id. |
int |
hashCode()
|
java.awt.Image |
iconImage(int size)
Returns an Image loaded by the ImageIcon class. |
static void |
init(NakedObjectStore objectStore)
|
boolean |
isEmpty()
Returns false indicating that the object contains data. |
boolean |
isFinder()
Returns true if the object is used for finding objects. |
boolean |
isLookupElement(java.lang.String argument)
Returns true if the argument is the same as the value return by toString() |
boolean |
isPersistent()
Returns true if this object has an OID set. |
boolean |
isResolved()
returns true when the object has been completely read into memory and all it attributes can be accessed. |
boolean |
isSameAs(Naked object)
returns true if the specified object is this object, i.e. no content comparison is done. |
boolean |
isValid()
By default an object is always in a valid state. |
void |
makeFinder()
|
void |
makePersistent()
|
void |
objectChanged()
Attempts to call save in the object store. |
void |
readExternal(java.io.ObjectInput in)
|
void |
resolve()
Resolves the current object ensuring all its attributes are available in memory. |
static void |
resolve(NakedObject object)
A utiltiy method for simplifying the resolving of an objects attribute. |
void |
setChangedAndNotifyObservers()
Notifies all observers of this object that it has changed. |
void |
setOid(java.lang.Object oid)
Sets the OID for this object. |
void |
setResolved()
sets the object's resolved state to true |
java.lang.String |
summary()
Returns a String summarising the state of the object. |
Title |
title()
every Naked Object is required to provide a Title by which
it is identified to the end user.
|
java.lang.String |
toString()
|
void |
writeExternal(java.io.ObjectOutput out)
|
| Methods inherited from class java.util.Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.nakedobjects.object.NakedObject |
addObserver, countObservers, deleteObserver, hasChanged |
| Constructor Detail |
public AbstractNakedObject()
| Method Detail |
public static java.lang.String getClassHelpText()
public java.lang.String getClassName()
getClassName in interface Nakedpublic java.lang.String getCollectiveName()
getCollectiveName in interface NakedObjectpublic java.lang.String getFullClassName()
getFullClassName in interface Nakedpublic java.lang.String getIconName()
getClassName()public java.lang.String getIdString()
NakedObject
getIdString in interface NakedObjectpublic NakedClass getNakedClass()
NakedObject
getNakedClass in interface NakedObjectpublic java.lang.String getObjectHelpText()
Naked
getObjectHelpText in interface Nakedpublic NakedObjectStore getObjectStore()
getObjectStore in interface NakedObjectpublic java.lang.Object getOid()
NakedObject
getOid in interface NakedObjectpublic About about()
about in interface Nakedpublic About aboutExplorationActionClone()
public About aboutExplorationActionClass()
public boolean canClone()
public java.lang.String contextualTitle()
contextualTitle in interface NakedObjectpublic void copyObject(Naked objectToCopy)
copyObject in interface Nakedpublic void created()
created in interface NakedObject
public void destroy()
throws ObjectStoreException
NakedObject
destroy in interface NakedObjectObjectStoreExceptionpublic boolean equals(java.lang.Object obj)
public NakedClass explorationActionClass()
public AbstractNakedObject explorationActionClone()
public NakedError explorationActionMakePersistent()
public About aboutExplorationActionMakePersistent()
public int hashCode()
public java.awt.Image iconImage(int size)
iconImage in interface NakedObjectsize - the image should be, in pixelsgetIconName(),
Status.statusCode(),
ImageIcon.getImageIcon(String, int, String)public static void init(NakedObjectStore objectStore)
public void setChangedAndNotifyObservers()
NakedObject
setChangedAndNotifyObservers in interface NakedObjectpublic boolean isEmpty()
isEmpty in interface Nakedpublic boolean isFinder()
NakedObject
isFinder in interface NakedObjectpublic boolean isLookupElement(java.lang.String argument)
isLookupElement in interface NakedObjectpublic void setOid(java.lang.Object oid)
NakedObject
setOid in interface NakedObjectpublic boolean isPersistent()
isPersistent in interface NakedObjectpublic void setResolved()
NakedObject
setResolved in interface NakedObjectpublic boolean isResolved()
NakedObject
isResolved in interface NakedObjectpublic boolean isValid()
isValid in interface Nakedpublic void makeFinder()
makeFinder in interface NakedObject
public void makePersistent()
throws ObjectStoreException
makePersistent in interface NakedObjectObjectStoreExceptionpublic void objectChanged()
save in the object store.
objectChanged in interface NakedObjectpublic void resolve()
NakedObject
resolve in interface NakedObjectpublic static void resolve(NakedObject object)
public java.lang.String summary()
Naked
summary in interface Nakedpublic Title title()
Title by which
it is identified to the end user.
Unless overridden, the String representation of this
Title object is available through
contextualTitle().
title in interface NakedcontextualTitle()public boolean isSameAs(Naked object)
isSameAs in interface Nakedobject - the object to compare
Naked.isSameAs(Naked)public void deleted()
deleted in interface NakedObjectpublic java.lang.String toString()
protected static NakedObject createInstance(java.lang.Class type)
protected static NakedObject createInstance(java.lang.String typeName)
Added to support .NET implementations.
protected static NakedObject createTransientInstance(java.lang.Class type)
public void readExternal(java.io.ObjectInput in)
throws java.lang.ClassNotFoundException,
java.io.IOException
readExternal in interface java.io.Externalizablejava.lang.ClassNotFoundException
java.io.IOException
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||