Uses of Class
javax.xml.datatype.Duration
Packages that use Duration
-
Uses of Duration in javax.xml.datatype
Methods in javax.xml.datatype that return DurationModifier and TypeMethodDescriptionabstract DurationComputes a new duration whose value isthis+rhs.Duration.multiply(int factor) Computes a new duration whose value isfactortimes longer than the value of this duration.abstract DurationDuration.multiply(BigDecimal factor) Computes a new duration whose value isfactortimes longer than the value of this duration.abstract DurationDuration.negate()Returns a newDurationobject whose value is-this.DatatypeFactory.newDuration(boolean isPositive, int years, int months, int days, int hours, int minutes, int seconds) Obtain a new instance of aDurationspecifying theDurationas isPositive, years, months, days, hours, minutes, seconds.abstract DurationDatatypeFactory.newDuration(boolean isPositive, BigInteger years, BigInteger months, BigInteger days, BigInteger hours, BigInteger minutes, BigDecimal seconds) Obtain a new instance of aDurationspecifying theDurationas isPositive, years, months, days, hours, minutes, seconds.abstract DurationDatatypeFactory.newDuration(long durationInMilliSeconds) Obtain a new instance of aDurationspecifying theDurationas milliseconds.abstract DurationDatatypeFactory.newDuration(String lexicalRepresentation) Obtain a new instance of aDurationspecifying theDurationas its string representation, "PnYnMnDTnHnMnS", as defined in XML Schema 1.0 section 3.2.6.1.DatatypeFactory.newDurationDayTime(boolean isPositive, int day, int hour, int minute, int second) Create aDurationof typexdt:dayTimeDurationusing the specifiedday,hour,minuteandsecondas defined in XQuery 1.0 and XPath 2.0 Data Model, xdt:dayTimeDuration.DatatypeFactory.newDurationDayTime(boolean isPositive, BigInteger day, BigInteger hour, BigInteger minute, BigInteger second) Create aDurationof typexdt:dayTimeDurationusing the specifiedday,hour,minuteandsecondas defined in XQuery 1.0 and XPath 2.0 Data Model, xdt:dayTimeDuration.DatatypeFactory.newDurationDayTime(long durationInMilliseconds) Create aDurationof typexdt:dayTimeDurationusing the specified milliseconds as defined in XQuery 1.0 and XPath 2.0 Data Model, xdt:dayTimeDuration.DatatypeFactory.newDurationDayTime(String lexicalRepresentation) Create aDurationof typexdt:dayTimeDurationby parsing itsStringrepresentation, "PnDTnHnMnS", XQuery 1.0 and XPath 2.0 Data Model, xdt:dayTimeDuration.DatatypeFactory.newDurationYearMonth(boolean isPositive, int year, int month) Create aDurationof typexdt:yearMonthDurationusing the specifiedyearandmonthas defined in XQuery 1.0 and XPath 2.0 Data Model, xdt:yearMonthDuration.DatatypeFactory.newDurationYearMonth(boolean isPositive, BigInteger year, BigInteger month) Create aDurationof typexdt:yearMonthDurationusing the specifiedyearandmonthas defined in XQuery 1.0 and XPath 2.0 Data Model, xdt:yearMonthDuration.DatatypeFactory.newDurationYearMonth(long durationInMilliseconds) Create aDurationof typexdt:yearMonthDurationusing the specified milliseconds as defined in XQuery 1.0 and XPath 2.0 Data Model, xdt:yearMonthDuration.DatatypeFactory.newDurationYearMonth(String lexicalRepresentation) Create aDurationof typexdt:yearMonthDurationby parsing itsStringrepresentation, "PnYnM", XQuery 1.0 and XPath 2.0 Data Model, xdt:yearMonthDuration.abstract DurationDuration.normalizeWith(Calendar startTimeInstant) Converts the years and months fields into the days field by using a specific time instant as the reference point.Computes a new duration whose value isthis-rhs.Methods in javax.xml.datatype with parameters of type DurationModifier and TypeMethodDescriptionabstract DurationComputes a new duration whose value isthis+rhs.abstract voidAdddurationto this instance.abstract intPartial order relation comparison with thisDurationinstance.booleanDuration.isLongerThan(Duration duration) Checks if this duration object is strictly longer than anotherDurationobject.booleanDuration.isShorterThan(Duration duration) Checks if this duration object is strictly shorter than anotherDurationobject.Computes a new duration whose value isthis-rhs.