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 Modifier and Type 方法 描述 abstract Duration
Duration. add(Duration rhs)
计算值为this+rhs
的新持续时间。Duration
Duration. multiply(int factor)
计算一个新的持续时间,其值为该持续时间的值的factor
倍。abstract Duration
Duration. multiply(BigDecimal factor)
计算一个新的持续时间,其值比此持续时间的值高factor
倍。abstract Duration
Duration. negate()
返回值为-this
的新的Duration
对象。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 Schema 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 Modifier and Type 方法 描述 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
.
-