[MOBY-guts] biomoby commit
Paul Gordon
gordonp at dev.open-bio.org
Tue Apr 3 02:27:33 UTC 2007
gordonp
Mon Apr 2 22:27:33 EDT 2007
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data
In directory dev.open-bio.org:/tmp/cvs-serv6650/src/main/org/biomoby/shared/data
Modified Files:
MobyDataDateTime.java
Log Message:
Belatedly made DateTime inherit directly from Object, since it's a primitive (it wasn't a couple of years ago when I first committed this class)
moby-live/Java/src/main/org/biomoby/shared/data MobyDataDateTime.java,1.6,1.7
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data/MobyDataDateTime.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data/MobyDataDateTime.java 2006/07/07 04:12:40 1.6
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data/MobyDataDateTime.java 2007/04/03 02:27:33 1.7
@@ -10,20 +10,23 @@
import java.util.TimeZone;
/**
- * A class representing a MOBY DateTime.
- * DateTime is not a primitive in MOBY, but this is a useful utility
- * class parses and outputs dates and times in proper ISO 8601 format
+ * A class representing a MOBY DateTime, which is a primitive in MOBY.
+ * This is a useful utility
+ * class that parses and outputs dates and times in proper ISO 8601 format
* as required by the MOBY object description.
*
* For a description of ISO 8601 as used on the Web, see
* http://www.w3.org/TR/NOTE-datetime
*
* Because getObject() will return a mutable GregorianCalendar, you can use
- * its methods to modify the underlying date of this MOBY object.
+ * its methods to modify the underlying date of this MOBY object. Since it
+ * is a Gregorian calendar, if you
+ * are representing dates before September 14th, 1752, I guarantee nothing.
*
+ * @author Paul Gordon
*/
-public class MobyDataDateTime extends MobyDataString{
+public class MobyDataDateTime extends MobyDataObject{
private GregorianCalendar value;
@@ -285,7 +288,7 @@
}
public Object clone(){
- MobyDataString copy = new MobyDataDateTime(getName(), getValue());
+ MobyDataDateTime copy = new MobyDataDateTime(getName(), getValue());
copy.setDataType(getDataType());
copy.setId(getId());
copy.setNamespaces(getNamespaces());
More information about the MOBY-guts
mailing list