Uses of Class
javax.xml.datatype.Duration
-
Packages that use Duration 软件包 描述 javax.xml.datatype 定义XML / Java类型映射。 -
-
Uses of Duration in javax.xml.datatype
Methods in javax.xml.datatype that return Duration 变量和类型 方法 描述 abstract Duration
Duration. add(Duration rhs)
计算一个新的持续时间,其值为this+rhs
。Duration
Duration. multiply(int factor)
计算新持续时间,其值factor
持续时间值的factor
倍。abstract Duration
Duration. multiply(BigDecimal factor)
计算一个新的持续时间,其值比此持续时间的值长factor
倍。abstract Duration
Duration. negate()
返回一个新的Duration
对象,其值为-this
。Duration
DatatypeFactory. newDuration(boolean isPositive, int years, int months, int days, int hours, int minutes, int seconds)
获得的新实例Duration
指定Duration
为isPositive,年,月,日,时,分,秒。abstract Duration
DatatypeFactory. newDuration(boolean isPositive, BigInteger years, BigInteger months, BigInteger days, BigInteger hours, BigInteger minutes, BigDecimal seconds)
获得的新实例Duration
指定Duration
为isPositive,年,月,日,时,分,秒。abstract Duration
DatatypeFactory. newDuration(long durationInMilliSeconds)
获得的新实例Duration
指定Duration
为毫秒。abstract Duration
DatatypeFactory. newDuration(String lexicalRepresentation)
获得的新实例Duration
指定Duration
作为它的字符串表示,“PnYnMnDTnHnMnS”,如在XML模式1.0第3.2.6.1节定义。Duration
DatatypeFactory. newDurationDayTime(boolean isPositive, int day, int hour, int minute, int second)
创建Duration
类型的xdt:dayTimeDuration
使用指定的day
,hour
,minute
和second
中定义 XQuery 1.0 and XPath 2.0 Data Model, xdt:dayTimeDuration 。Duration
DatatypeFactory. newDurationDayTime(boolean isPositive, BigInteger day, BigInteger hour, BigInteger minute, BigInteger second)
创建Duration
类型的xdt:dayTimeDuration
使用指定的day
,hour
,minute
和second
中定义 XQuery 1.0 and XPath 2.0 Data Model, xdt:dayTimeDuration 。Duration
DatatypeFactory. newDurationDayTime(long durationInMilliseconds)
创建Duration
类型的xdt:dayTimeDuration
使用指定毫秒中定义 XQuery 1.0 and XPath 2.0 Data Model, xdt:dayTimeDuration 。Duration
DatatypeFactory. newDurationDayTime(String lexicalRepresentation)
创建Duration
类型xdt:dayTimeDuration
通过分析其String
表示 ,“PnDTnHnMnS”, XQuery 1.0 and XPath 2.0 Data Model, xdt:dayTimeDuration 。Duration
DatatypeFactory. newDurationYearMonth(boolean isPositive, int year, int month)
创建Duration
类型的xdt:yearMonthDuration
使用指定year
和month
中定义 XQuery 1.0 and XPath 2.0 Data Model, xdt:yearMonthDuration 。Duration
DatatypeFactory. newDurationYearMonth(boolean isPositive, BigInteger year, BigInteger month)
创建Duration
类型的xdt:yearMonthDuration
使用指定year
和month
中定义 XQuery 1.0 and XPath 2.0 Data Model, xdt:yearMonthDuration 。Duration
DatatypeFactory. newDurationYearMonth(long durationInMilliseconds)
创建Duration
类型的xdt:yearMonthDuration
使用指定毫秒中定义 XQuery 1.0 and XPath 2.0 Data Model, xdt:yearMonthDuration 。Duration
DatatypeFactory. newDurationYearMonth(String lexicalRepresentation)
创建Duration
类型xdt:yearMonthDuration
通过分析其String
表示 ,“PnYnM”, XQuery 1.0 and XPath 2.0 Data Model, xdt:yearMonthDuration 。abstract Duration
Duration. normalizeWith(Calendar startTimeInstant)
通过使用特定时间点作为参考点,将年和月字段转换为日期字段。Duration
Duration. subtract(Duration rhs)
计算新的持续时间,其值为this-rhs
。Methods in javax.xml.datatype with parameters of type Duration 变量和类型 方法 描述 abstract Duration
Duration. add(Duration rhs)
计算一个新的持续时间,其值为this+rhs
。abstract void
XMLGregorianCalendar. add(Duration duration)
将duration
添加到此实例。abstract int
Duration. compare(Duration duration)
与此Duration
实例的部分顺序关系比较。boolean
Duration. isLongerThan(Duration duration)
检查此持续时间对象是否严格长于另一个Duration
对象。boolean
Duration. isShorterThan(Duration duration)
检查此持续时间对象是否严格短于另一个Duration
对象。Duration
Duration. subtract(Duration rhs)
Computes a new duration whose value isthis-rhs
.
-