< prev index next >

src/com/sun/org/apache/xerces/internal/jaxp/datatype/DurationDayTimeImpl.java

Print this page
rev 2127 : 8048021: Remove @version tag in jaxp repo
Reviewed-by: joehw


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




  29 package com.sun.org.apache.xerces.internal.jaxp.datatype;
  30 
  31 
  32 import java.math.BigInteger;
  33 import java.math.BigDecimal;
  34 import javax.xml.datatype.DatatypeConstants;
  35 
  36 /**
  37  * <p>Represent a subtype <code>xdt:dayTimeDuration</code> of a <code>Duration</code>
  38  * as specified in <a href="http://www.w3.org/TR/xpath-datamodel#dayTimeDuration">
  39  *   XQuery 1.0 and XPath 2.0 Data Model, xdt:dayTimeDuration</a>.</p>
  40  *
  41  *
  42  * <p>The DurationYearMonth object represents a period of Gregorian time,
  43  * with a lexical representation, "<em>PnDTnHnMnS</em>" that contains only year and month components.
  44  * </p>
  45  *
  46  *
  47  * @author <a href="mailto:Vikram.Aroskar@Sun.COM">Vikram Aroskar</a>
  48  * @author <a href="mailto:Huizhe.wang@oracle.com">Joe Wang</a>

  49 
  50  * @see XMLGregorianCalendar#add(Duration)
  51  */
  52 
  53 class DurationDayTimeImpl
  54         extends DurationImpl {
  55 
  56     public DurationDayTimeImpl(
  57         boolean isPositive,
  58         BigInteger days,
  59         BigInteger hours,
  60         BigInteger minutes,
  61         BigDecimal seconds) {
  62 
  63         super(isPositive, null, null, days, hours, minutes, seconds);
  64         convertToCanonicalDayTime();
  65     }
  66 
  67     public DurationDayTimeImpl(
  68         boolean isPositive,


< prev index next >