Package org.dlese.dpc.schemedit.dcs
Class StatusEntry
java.lang.Object
org.dlese.dpc.schemedit.dcs.StatusEntry
Wrapper for a StatusEntry element of a
DcsDataRecord.
Contains the following elements:
- editor - the person (if known) that created the statusEntry
- status - the status flag (e.g., "Done").
- statusNote - an explanation for the assigned status
- changeDate - a timestamp for creation of the StatusEntry
- Author:
- ostwald
$Id $
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructor for the StatusEntry objectStatusEntry(String status, String statusNote, String editor) Constructor for the StatusEntry object given parameters as Strings.StatusEntry(String status, String statusNote, String editor, String changeDate) Constructor for the StatusEntry object given parameters as Strings.StatusEntry(org.dom4j.Element entryElement) Constructor for the StatusEntry object given aElementcontaining the values for statusEntry attributes. -
Method Summary
Modifier and TypeMethodDescriptionGets the changeDate attribute of the StatusEntry objectgetDate()Return the changeDate attribute as a Date.Gets the editor attribute of the StatusEntry objectorg.dom4j.ElementReturns clone of the entryElement attribute of the StatusEntry object.Gets the status attribute of the StatusEntry objectGets the statusNote attribute of the StatusEntry objectvoidDescription of the MethodvoidSets the changeDate attribute of the StatusEntry objectvoidSets the editor attribute of the StatusEntry objectvoidSets the status attribute of the StatusEntry objectvoidSets the statusNote attribute of the StatusEntry object
-
Field Details
-
entryElement
protected org.dom4j.Element entryElement
-
-
Constructor Details
-
StatusEntry
public StatusEntry()Constructor for the StatusEntry object -
StatusEntry
Constructor for the StatusEntry object given parameters as Strings.- Parameters:
status- status labelstatusNote- note describing status changeeditor- who made the change
-
StatusEntry
Constructor for the StatusEntry object given parameters as Strings.- Parameters:
status- status labelstatusNote- note describing status changeeditor- who made the changechangeDate- textual representation of date
-
StatusEntry
public StatusEntry(org.dom4j.Element entryElement) Constructor for the StatusEntry object given aElementcontaining the values for statusEntry attributes.- Parameters:
entryElement- Description of the Parameter
-
-
Method Details
-
getElement
public org.dom4j.Element getElement()Returns clone of the entryElement attribute of the StatusEntry object.- Returns:
- The element value
-
getStatus
Gets the status attribute of the StatusEntry object- Returns:
- The status value
- Throws:
Exception- if the entryElement does not have an "status" element
-
setStatus
Sets the status attribute of the StatusEntry object- Parameters:
s- The new status value- Throws:
Exception- Description of the Exception
-
getStatusNote
Gets the statusNote attribute of the StatusEntry object- Returns:
- The statusNote value
- Throws:
Exception- if the entryElement does not have an "statusNote" element
-
setStatusNote
Sets the statusNote attribute of the StatusEntry object- Parameters:
s- The new statusNote value- Throws:
Exception- Description of the Exception
-
getEditor
Gets the editor attribute of the StatusEntry object- Returns:
- The editor value
- Throws:
Exception- if the entryElement does not have an "editor" element
-
setEditor
Sets the editor attribute of the StatusEntry object- Parameters:
s- The new editor value- Throws:
Exception- Description of the Exception
-
getChangeDate
Gets the changeDate attribute of the StatusEntry object- Returns:
- The changeDate value
- Throws:
Exception- Description of the Exception
-
setChangeDate
Sets the changeDate attribute of the StatusEntry object- Parameters:
s- The new changeDate value- Throws:
Exception- Description of the Exception
-
getDate
Return the changeDate attribute as a Date. If the changeDate attribute has not been set, then set it as "now" and return the corresponding date object.- Returns:
- The date value
-
printEntry
public void printEntry()Description of the Method
-