| 软件包 | 描述 |
|---|---|
| javax.xml.datatype |
XML / java类型映射。
|
| Modifier and Type | Method and Description |
|---|---|
abstract Duration |
Duration.add(Duration rhs)
计算出一个新的时间的价值是
this+rhs。
|
abstract Duration |
Duration.multiply(BigDecimal factor)
计算出一个新的时间的价值比这更长时间的价值
factor倍。
|
Duration |
Duration.multiply(int factor)
计算出一个新的时间的价值超过这个时间的价值
factor倍。
|
abstract Duration |
Duration.negate()
返回一个新的
Duration对象的价值
-this。
|
abstract Duration |
DatatypeFactory.newDuration(boolean isPositive, BigInteger years, BigInteger months, BigInteger days, BigInteger hours, BigInteger minutes, BigDecimal seconds)
获得一个
Duration指定
Duration作为一个新的实例是,年,月,日,小时,分钟,秒。
|
Duration |
DatatypeFactory.newDuration(boolean isPositive, int years, int months, int days, int hours, int minutes, int seconds)
获得一个
Duration指定
Duration作为一个新的实例是,年,月,日,小时,分钟,秒。
|
abstract Duration |
DatatypeFactory.newDuration(long durationInMilliSeconds)
获得一个
Duration指定
Duration为毫秒的一个新实例。
|
abstract Duration |
DatatypeFactory.newDuration(String lexicalRepresentation)
获得一个
Duration指定
Duration为字符串表示形式的一个新实例,“pnynmndtnhnmns”,在1节3.2.6.1 XML Schema定义。
|
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(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(long durationInMilliseconds)
创建一个
Duration
xdt:dayTimeDuration型使用指定的毫秒
XQuery 1.0 and XPath 2.0 Data Model, xdt:dayTimeDuration定义。
|
Duration |
DatatypeFactory.newDurationDayTime(String lexicalRepresentation)
通过分析其
String表示创建一个
Duration
xdt:dayTimeDuration型,“pndtnhnmns”,
XQuery 1.0 and XPath 2.0 Data Model, xdt:dayTimeDuration。
|
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(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(long durationInMilliseconds)
创建一个
Duration
xdt:yearMonthDuration型使用指定的毫秒
XQuery 1.0 and XPath 2.0 Data Model, xdt:yearMonthDuration定义。
|
Duration |
DatatypeFactory.newDurationYearMonth(String lexicalRepresentation)
通过分析其
String表示创建一个
Duration
xdt:yearMonthDuration型,“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。
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
XMLGregorianCalendar.add(Duration duration)
添加
duration这个实例。
|
abstract Duration |
Duration.add(Duration rhs)
计算出一个新的时间的价值是
this+rhs。
|
abstract int |
Duration.compare(Duration duration)
这
Duration实例偏序关系的比较。
|
boolean |
Duration.isLongerThan(Duration duration)
如果这个检查时间比另一个对象是
Duration对象严格更长。
|
boolean |
Duration.isShorterThan(Duration duration)
如果这个时间检查对象是严格小于另一个
Duration对象。
|
Duration |
Duration.subtract(Duration rhs)
计算出一个新的时间的价值是
this-rhs。
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.