24 */
25
26 package com.sun.org.apache.xerces.internal.jaxp.datatype;
27
28
29 import java.math.BigInteger;
30 import java.math.BigDecimal;
31 import javax.xml.datatype.DatatypeConstants;
32
33 /**
34 * <p>Represent a subtype <code>xdt:dayTimeDuration</code> of a <code>Duration</code>
35 * as specified in <a href="http://www.w3.org/TR/xpath-datamodel#dayTimeDuration">
36 * XQuery 1.0 and XPath 2.0 Data Model, xdt:dayTimeDuration</a>.</p>
37 *
38 *
39 * <p>The DurationYearMonth object represents a period of Gregorian time,
40 * with a lexical representation, "<em>PnDTnHnMnS</em>" that contains only year and month components.
41 * </p>
42 *
43 *
44 * @author <a href="mailto:Vikram.Aroskar@Sun.COM">Vikram Aroskar</a>
45 * @author <a href="mailto:Huizhe.wang@oracle.com">Joe Wang</a>
46
47 * @see XMLGregorianCalendar#add(Duration)
48 */
49
50 class DurationDayTimeImpl
51 extends DurationImpl {
52 private static final long serialVersionUID = 844792794952655204L;
53
54 public DurationDayTimeImpl(
55 boolean isPositive,
56 BigInteger days,
57 BigInteger hours,
58 BigInteger minutes,
59 BigDecimal seconds) {
60
61 super(isPositive, null, null, days, hours, minutes, seconds);
62 convertToCanonicalDayTime();
63 }
64
65 public DurationDayTimeImpl(
66 boolean isPositive,
|
24 */
25
26 package com.sun.org.apache.xerces.internal.jaxp.datatype;
27
28
29 import java.math.BigInteger;
30 import java.math.BigDecimal;
31 import javax.xml.datatype.DatatypeConstants;
32
33 /**
34 * <p>Represent a subtype <code>xdt:dayTimeDuration</code> of a <code>Duration</code>
35 * as specified in <a href="http://www.w3.org/TR/xpath-datamodel#dayTimeDuration">
36 * XQuery 1.0 and XPath 2.0 Data Model, xdt:dayTimeDuration</a>.</p>
37 *
38 *
39 * <p>The DurationYearMonth object represents a period of Gregorian time,
40 * with a lexical representation, "<em>PnDTnHnMnS</em>" that contains only year and month components.
41 * </p>
42 *
43 *
44 * @author Vikram Aroskar
45 * @see XMLGregorianCalendar#add(Duration)
46 */
47
48 class DurationDayTimeImpl
49 extends DurationImpl {
50 private static final long serialVersionUID = 844792794952655204L;
51
52 public DurationDayTimeImpl(
53 boolean isPositive,
54 BigInteger days,
55 BigInteger hours,
56 BigInteger minutes,
57 BigDecimal seconds) {
58
59 super(isPositive, null, null, days, hours, minutes, seconds);
60 convertToCanonicalDayTime();
61 }
62
63 public DurationDayTimeImpl(
64 boolean isPositive,
|