|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.co.agena.minerva.util.model.Notes
public class Notes
Field Summary |
---|
Fields inherited from interface uk.co.agena.minerva.util.model.Writable |
---|
FIELD_SEPARATOR |
Constructor Summary | |
---|---|
Notes()
Empty constructor |
Method Summary | |
---|---|
void |
addNote(java.util.List newNotes)
Adds all the notes in the specified list of notes |
void |
addNote(Note n)
Add a note to the notes collection |
Note |
addNote(java.lang.String shortDescription,
java.lang.String longDescription)
Adds a note with the specified text |
void |
appendToAllNotes(java.lang.String shortString,
java.lang.String longString)
Appends the specified Strings to the short/long description field of the NameDescription attatched to each Note. |
java.lang.Object |
clone()
Clones the notes set |
java.util.List |
getNotes()
Returns a list of all the notes |
double |
getVersion()
Returns the version of the class. |
int |
read(java.util.List strings,
int currentLineNumber)
|
void |
removeAllNotes()
Removes all notes from the note collection |
void |
removeNote(Note n)
Removes the specified note from the list of notes |
void |
setVersion(double version)
Sets the version number of the class. |
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, toString, wait, wait, wait |
Constructor Detail |
---|
public Notes()
Method Detail |
---|
public void addNote(Note n)
n
- public void addNote(java.util.List newNotes)
newNotes
- public Note addNote(java.lang.String shortDescription, java.lang.String longDescription)
shortDescription
- longDescription
-
public java.util.List getNotes()
public double getVersion()
Writable
getVersion
in interface Writable
public void setVersion(double version)
Writable
setVersion
in interface Writable
version
- the version numberpublic java.util.List write() throws MinervaReadWriteException
Writable
write
in interface Writable
MinervaReadWriteException
- if therepublic int read(java.util.List strings, int currentLineNumber) throws MinervaReadWriteException
read
in interface Writable
MinervaReadWriteException
public void removeAllNotes()
public void removeNote(Note n)
n
- public void appendToAllNotes(java.lang.String shortString, java.lang.String longString)
shortString
- The string to append to the short description.longString
- The string to append to the long description.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 |