Public Member Functions | |
Reference () | |
No-arg constructor. | |
Reference (String description) | |
Constructor from a short description. | |
Reference (RefType type, String description) | |
Constructor from a RefType and a description. | |
Reference (RefType type, String description, Date date) | |
Constructor from a RefType, a description and a date. | |
Date | getDate () |
Get the date of this Reference. | |
Reference | setDate (Date date) |
Set the date of this Reference. | |
RefType | getType () |
Get type of reference (as RefType enum). | |
Reference | setType (RefType type) |
Set type of reference (as RefType enum). | |
String | getDescription () |
Get description. | |
Reference | setDescription (String description) |
Set description. | |
String | getComment () |
Get comment. | |
Reference | setComment (String comment) |
Set comment. | |
int | compareTo (Reference other) |
String | toString () |
String representation. | |
boolean | equals (Object other) |
int | hashCode () |
Package Functions | |
Logger | log () |
Neat method to allow every class to get hold of a custom-named Logger. |
Definition at line 15 of file Reference.java.
Reference | ( | ) |
Reference | ( | String | description | ) |
Constructor from a short description.
Definition at line 42 of file Reference.java.
References Reference.setDescription().
00042 { 00043 this(); 00044 setDescription(description); 00045 }
Constructor from a RefType and a description.
Definition at line 48 of file Reference.java.
References Reference.setType().
00048 { 00049 this(description); 00050 setType(type); 00051 }
Constructor from a RefType, a description and a date.
Definition at line 54 of file Reference.java.
References Reference.setDate().
00054 { 00055 this(type, description); 00056 setDate(date); 00057 }
Date getDate | ( | ) |
Get the date of this Reference.
Definition at line 64 of file Reference.java.
Referenced by Reference.compareTo(), and Reference.hashCode().
Reference setDate | ( | Date | date | ) |
Set the date of this Reference.
Definition at line 68 of file Reference.java.
Referenced by Reference.Reference().
RefType getType | ( | ) |
Get type of reference (as RefType enum).
Definition at line 75 of file Reference.java.
Referenced by Reference.hashCode(), and Reference.toString().
Set type of reference (as RefType enum).
Definition at line 79 of file Reference.java.
Referenced by Reference.Reference().
String getDescription | ( | ) |
Reference setDescription | ( | String | description | ) |
String getComment | ( | ) |
Reference setComment | ( | String | comment | ) |
int compareTo | ( | Reference | other | ) |
Definition at line 110 of file Reference.java.
References Reference.getDate(), and Storeable.log().
00110 { 00111 log().debug("Comparing references..."); 00112 return getDate().compareTo(other.getDate()); 00113 }
String toString | ( | ) |
String representation.
Reimplemented from Storeable.
Definition at line 120 of file Reference.java.
References Reference.getType().
00120 { 00121 StringBuffer s = new StringBuffer(); 00122 s.append("Reference: " + getType().toString() + " " ); 00123 return s.toString(); 00124 }
boolean equals | ( | Object | other | ) |
Definition at line 126 of file Reference.java.
References Reference.hashCode().
00126 { 00127 if (this == other) return true; 00128 if (!(other instanceof Reference)) return false; 00129 return (hashCode() == other.hashCode()); 00130 }
int hashCode | ( | ) |
Definition at line 132 of file Reference.java.
References Reference.getComment(), Reference.getDate(), Reference.getDescription(), and Reference.getType().
Referenced by Reference.equals().
00132 { 00133 int result = 17; 00134 result ^= getDate().hashCode(); 00135 result ^= getType().hashCode(); 00136 result ^= getDescription().hashCode(); 00137 result ^= getComment().hashCode(); 00138 return result; 00139 }
Logger log | ( | ) | [package, inherited] |
Neat method to allow every class to get hold of a custom-named Logger.
Definition at line 14 of file Storeable.java.
Referenced by Uncertainty.compareTo(), Reference.compareTo(), PointError.compareTo(), Modification.compareTo(), Experiment.compareTo(), DatasetError.compareTo(), AxisError.compareTo(), Data.makeExample(), Data.makeExampleDataset(), Data.makeExampleExperiment(), Data.makeExamplePaper(), Data.makeExampleXAxes(), Data.makeExampleYAxes(), AxisError.setAxis(), DatasetError.setDataset(), DatasetError.setNormType(), PointError.setPoint(), and Uncertainty.toString().