|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.co.agena.minerva.util.model.NameDescription
public class NameDescription
The NameDescription class is used to encapsulate name and description information for objects in Minerva. This class is used wherever a simple String name attribute is deemed insufficient. The NameDescription consists of a short description and a long description.
Constructor Summary | |
---|---|
NameDescription()
Default constructor. |
|
NameDescription(java.lang.String shortDescription,
java.lang.String longDescription)
Constructs a NameDescription with the specified short and long descriptions. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Makes a copy of this NameDescription object. |
java.lang.String |
getLongDescription()
Returns the long description of the NameDescription object. |
java.lang.String |
getShortDescription()
Returns the short description of the NameDescription object. |
void |
setLongDescription(java.lang.String longDescription)
Sets the long description of the NameDescription object. |
void |
setShortDescription(java.lang.String shortDescription)
Sets the short description of the NameDescription object. |
java.lang.String |
toString()
Creates a String representation of the NameDescription. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NameDescription()
public NameDescription(java.lang.String shortDescription, java.lang.String longDescription)
shortDescription
- the short description of the objectlongDescription
- the long description of the objectMethod Detail |
---|
public java.lang.String getShortDescription()
public void setShortDescription(java.lang.String shortDescription)
shortDescription
- the new short descriptionpublic java.lang.String getLongDescription()
public void setLongDescription(java.lang.String longDescription)
longDescription
- the new long descriptionpublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object clone()
clone
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |