|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.huguesjohnson.tiamat.NamedObject
public abstract class NamedObject
NamedObject - an abstract class with a name and description
Constructor Summary | |
---|---|
NamedObject(java.lang.String name,
java.lang.String description)
|
Method Summary | |
---|---|
java.lang.String |
getDescription()
Returns the description of the object. |
java.lang.String |
getName()
Returns the name of the object. |
void |
onDeserialize(Formatter formatter,
java.lang.String absoluteDir)
The onDeserialize event should be fired after an object is de-serialized. |
void |
setDescription(java.lang.String description)
Sets the description of the object. |
void |
setName(java.lang.String name)
Sets the name of the object. |
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NamedObject(java.lang.String name, java.lang.String description)
Method Detail |
---|
public java.lang.String getName()
public void setName(java.lang.String name)
name
- The new name for the object.public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- The new description of the object.public java.lang.String toString()
toString
in class java.lang.Object
public void onDeserialize(Formatter formatter, java.lang.String absoluteDir)
onDeserialize
in interface Storable
formatter
- the formatter to use to load any storable membersabsoluteDir
- the working directory since all paths stored in the object should be relative
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |