com.sun.msv.datatype.xsd.datetime

Class BigTimeDurationValueType

Implemented Interfaces:
ITimeDurationValueType, Serializable

public class BigTimeDurationValueType
extends Object
implements ITimeDurationValueType

ITimeDurationValueType implementation that can hold all lexically legal timeDuration value.
Author:
Kohsuke KAWAGUCHI

Constructor Summary

BigTimeDurationValueType(String lexicalRepresentation)
Reads in the lexical duration format.
BigTimeDurationValueType(int signum, BigInteger year, BigInteger month, BigInteger day, BigInteger hour, BigInteger minute, BigDecimal second)
All the fields should be positive and use the signum field to determine the sign.

Method Summary

int
compare(ITimeDurationValueType o)
compare two ITimeDurationValueType as defined in com.sun.msv.datatype/Comparator
boolean
equals(Object o)
boolean
equals(ITimeDurationValueType o)
static BigTimeDurationValueType
fromMinutes(BigInteger minutes)
static BigTimeDurationValueType
fromMinutes(int minutes)
BigTimeDurationValueType
getBigValue()
BigInteger
getDay()
BigInteger
getHour()
BigInteger
getMinute()
BigInteger
getMonth()
BigDecimal
getSecond()
BigInteger
getYear()
int
hashCode()
hash code has to be consistent with equals method.
String
toString()

Constructor Details

BigTimeDurationValueType

public BigTimeDurationValueType(String lexicalRepresentation)
            throws IllegalArgumentException
Reads in the lexical duration format.
Parameters:
lexicalRepresentation - whitespace stripped lexical form.

BigTimeDurationValueType

public BigTimeDurationValueType(int signum,
                                BigInteger year,
                                BigInteger month,
                                BigInteger day,
                                BigInteger hour,
                                BigInteger minute,
                                BigDecimal second)
All the fields should be positive and use the signum field to determine the sign.

Method Details

compare

public int compare(ITimeDurationValueType o)
compare two ITimeDurationValueType as defined in com.sun.msv.datatype/Comparator
Specified by:
compare in interface ITimeDurationValueType

equals

public boolean equals(Object o)

equals

public boolean equals(ITimeDurationValueType o)

fromMinutes

public static BigTimeDurationValueType fromMinutes(BigInteger minutes)

fromMinutes

public static BigTimeDurationValueType fromMinutes(int minutes)

getBigValue

public BigTimeDurationValueType getBigValue()
Specified by:
getBigValue in interface ITimeDurationValueType

getDay

public BigInteger getDay()

getHour

public BigInteger getHour()

getMinute

public BigInteger getMinute()

getMonth

public BigInteger getMonth()

getSecond

public BigDecimal getSecond()

getYear

public BigInteger getYear()

hashCode

public int hashCode()
hash code has to be consistent with equals method.

toString

public String toString()