--- old/src/java.xml/share/classes/javax/xml/datatype/XMLGregorianCalendar.java 2017-05-16 15:12:41.015193070 -0700 +++ new/src/java.xml/share/classes/javax/xml/datatype/XMLGregorianCalendar.java 2017-05-16 15:12:40.935189579 -0700 @@ -53,25 +53,21 @@ * W3C XML Schema 1.0 Part 2, Appendix D, * ISO 8601 Date and Time Formats. * - * - * + * + *
+ * * * - * - * - * - * - * * * * * + * + * * - * + * * @@ -89,12 +85,12 @@ * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * + * * *
Date/Time Datatype Field Mapping Between XML Schema 1.0 and Java Representation
- * Date/Time Datatype Field Mapping Between XML Schema 1.0 and Java Representation - *
XML Schema 1.0
* datatype
* field
Related
XMLGregorianCalendar
Accessor(s)
Value Range
yearyear {@link #getYear()} + {@link #getEon()} or
* {@link #getEonAndYear} *
monthmonth {@link #getMonth()} 1 to 12 or {@link DatatypeConstants#FIELD_UNDEFINED}
dayday {@link #getDay()} Independent of month, max range is 1 to 31 or {@link DatatypeConstants#FIELD_UNDEFINED}.
* The normative value constraint stated relative to month @@ -102,7 +98,7 @@ *
hourhour{@link #getHour()} * 0 to 23 or {@link DatatypeConstants#FIELD_UNDEFINED}. @@ -114,12 +110,12 @@ *
minuteminute {@link #getMinute()} 0 to 59 or {@link DatatypeConstants#FIELD_UNDEFINED}
secondsecond * {@link #getSecond()} + {@link #getMillisecond()}/1000 or
* {@link #getSecond()} + {@link #getFractionalSecond()} @@ -135,7 +131,7 @@ *
timezonetimezone {@link #getTimezone()} Number of minutes or {@link DatatypeConstants#FIELD_UNDEFINED}. * Value range from -14 hours (-14 * 60 minutes) to 14 hours (14 * 60 minutes). @@ -748,26 +744,22 @@ * Return the name of the XML Schema date/time type that this instance * maps to. Type is computed based on fields that are set. * - * + *
+ * * * - * + * + * + * + * + * + * + * * * * * - * - * - * - * - * - * - * - * - * * * * @@ -911,21 +903,17 @@ * instance, see * {@link #toGregorianCalendar(TimeZone, Locale, XMLGregorianCalendar)}. * - *
Required fields for XML Schema 1.0 Date/Time Datatypes.
+ * (timezone is optional for all date/time datatypes)
- * Required fields for XML Schema 1.0 Date/Time Datatypes.
- * (timezone is optional for all date/time datatypes) - *
Datatypeyearmonthdayhourminutesecond
Datatypeyearmonthdayhourminutesecond
{@link DatatypeConstants#DATETIME}XX
+ *
+ * * * - * + * + * * * * * - * - * - * - * * * *
Field by Field Conversion from this class to + * {@code java.util.GregorianCalendar}
- * Field by Field Conversion from this class to - * {@code java.util.GregorianCalendar} - * {@code java.util.GregorianCalendar} field{@code javax.xml.datatype.XMLGregorianCalendar} field
{@code java.util.GregorianCalendar} field{@code javax.xml.datatype.XMLGregorianCalendar} field
{@code ERA}{@link #getEonAndYear()}{@code .signum() < 0 ? GregorianCalendar.BC : GregorianCalendar.AD}