uk.co.agena.minerva.util.model
Class Note

java.lang.Object
  extended by uk.co.agena.minerva.util.model.Note
All Implemented Interfaces:
Writable

public class Note
extends java.lang.Object
implements Writable

Created by IntelliJ IDEA. User: Agena UK Ltd Date: May 27, 2004 Time: 3:39:32 PM To change this template use Options | File Templates.


Field Summary
 
Fields inherited from interface uk.co.agena.minerva.util.model.Writable
FIELD_SEPARATOR
 
Constructor Summary
Note()
           
Note(java.lang.String shortDescription, java.lang.String longDescription)
           
 
Method Summary
 java.lang.Object clone()
          Clones the note
 NameDescription getNd()
          The name description that holds the contents of the note
 double getVersion()
          Returns the version of the class.
 int read(java.util.List strings, int currentLineNumber)
           
 void setNd(NameDescription nd)
          The name description that holds the contents of the note
 void setText(java.lang.String shortDescription, java.lang.String longDescription)
          Sets the text in the connected name / description
 void setVersion(double version)
          Sets the version number of the class.
 java.lang.String toString()
          Overrides the to string method and returns the short description of th note
 java.util.List write()
          Writes the object in question to a List of Strings.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Note

public Note(java.lang.String shortDescription,
            java.lang.String longDescription)

Note

public Note()
Method Detail

setText

public void setText(java.lang.String shortDescription,
                    java.lang.String longDescription)
Sets the text in the connected name / description

Parameters:
shortDescription -
longDescription -

getNd

public NameDescription getNd()
The name description that holds the contents of the note


setNd

public void setNd(NameDescription nd)
The name description that holds the contents of the note


getVersion

public double getVersion()
Description copied from interface: Writable
Returns the version of the class. Used to ensure backward compatibility.

Specified by:
getVersion in interface Writable
Returns:
the version number

setVersion

public void setVersion(double version)
Description copied from interface: Writable
Sets the version number of the class. Used to ensure backward compatibility.

Specified by:
setVersion in interface Writable
Parameters:
version - the version number

write

public java.util.List write()
                     throws MinervaReadWriteException
Description copied from interface: Writable
Writes the object in question to a List of Strings.

Specified by:
write in interface Writable
Returns:
the List to which the Strings have been written
Throws:
MinervaReadWriteException - if there

read

public int read(java.util.List strings,
                int currentLineNumber)
         throws MinervaReadWriteException
Specified by:
read in interface Writable
Throws:
MinervaReadWriteException

clone

public java.lang.Object clone()
Clones the note

Overrides:
clone in class java.lang.Object
Returns:

toString

public java.lang.String toString()
Overrides the to string method and returns the short description of th note

Overrides:
toString in class java.lang.Object
Returns:


Copyright © 2006 Agena Ltd. All Rights Reserved.