You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ws.apache.org by ve...@apache.org on 2015/11/17 23:56:15 UTC
svn commit: r1714903 -
/webservices/axiom/branches/datatypes/datatypes/src/main/java/org/apache/axiom/datatype/xsd/Temporal.java
Author: veithen
Date: Tue Nov 17 22:56:15 2015
New Revision: 1714903
URL: http://svn.apache.org/viewvc?rev=1714903&view=rev
Log:
Complete the Javadoc of Temporal.
Modified:
webservices/axiom/branches/datatypes/datatypes/src/main/java/org/apache/axiom/datatype/xsd/Temporal.java
Modified: webservices/axiom/branches/datatypes/datatypes/src/main/java/org/apache/axiom/datatype/xsd/Temporal.java
URL: http://svn.apache.org/viewvc/webservices/axiom/branches/datatypes/datatypes/src/main/java/org/apache/axiom/datatype/xsd/Temporal.java?rev=1714903&r1=1714902&r2=1714903&view=diff
==============================================================================
--- webservices/axiom/branches/datatypes/datatypes/src/main/java/org/apache/axiom/datatype/xsd/Temporal.java (original)
+++ webservices/axiom/branches/datatypes/datatypes/src/main/java/org/apache/axiom/datatype/xsd/Temporal.java Tue Nov 17 22:56:15 2015
@@ -21,13 +21,19 @@ package org.apache.axiom.datatype.xsd;
import java.util.GregorianCalendar;
import java.util.TimeZone;
+/**
+ * A temporal value. This is the base interface for {@link XSDate}, {@link XSTime} and
+ * {@link XSDateTime}.
+ */
public interface Temporal {
/**
+ * Convert this value to a calendar. For {@link XSDate} and {@link XSTime}, only the
+ * corresponding fields are filled in and all other fields are left unspecified.
*
* @param defaultTimeZone
* the time zone to use if this temporal object has no time zone; may be
* <code>null</code>
- * @return
+ * @return the calendar
* @throws NoTimeZoneException
* if this temporal object doesn't have a time zone and no default time zone was
* specified
@@ -35,7 +41,7 @@ public interface Temporal {
GregorianCalendar getCalendar(TimeZone defaultTimeZone);
/**
- * Determine if this temporal object has a time zone.
+ * Determine if this temporal value has a time zone.
*
* @return <code>true</code> if the object has a time zone, <code>false</code> otherwise
*/