javax.xml.datatype.XMLGregorianCalendar.reset()方法的使用及代码示例

x33g5p2x  于2022-02-02 转载在 其他  
字(2.5k)|赞(0)|评价(0)|浏览(137)

本文整理了Java中javax.xml.datatype.XMLGregorianCalendar.reset()方法的一些代码示例,展示了XMLGregorianCalendar.reset()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLGregorianCalendar.reset()方法的具体详情如下:
包路径:javax.xml.datatype.XMLGregorianCalendar
类名称:XMLGregorianCalendar
方法名:reset

XMLGregorianCalendar.reset介绍

[英]Reset this XMLGregorianCalendar to its original values.

XMLGregorianCalendar is reset to the same values as when it was created with DatatypeFactory#newXMLGregorianCalendar(), DatatypeFactory#newXMLGregorianCalendar(String lexicalRepresentation), DatatypeFactory#newXMLGregorianCalendar(BigInteger year,int month,int day,int hour,int minute,int second,BigDecimal fractionalSecond,int timezone), DatatypeFactory#newXMLGregorianCalendar(int year,int month,int day,int hour,int minute,int second,int millisecond,int timezone), DatatypeFactory#newXMLGregorianCalendar(GregorianCalendar cal), DatatypeFactory#newXMLGregorianCalendarDate(int year,int month,int day,int timezone), DatatypeFactory#newXMLGregorianCalendarTime(int hours,int minutes,int seconds,int timezone), DatatypeFactory#newXMLGregorianCalendarTime(int hours,int minutes,int seconds,BigDecimal fractionalSecond,int timezone) or DatatypeFactory#newXMLGregorianCalendarTime(int hours,int minutes,int seconds,int milliseconds,int timezone).

reset() is designed to allow the reuse of existing XMLGregorianCalendars thus saving resources associated with the creation of new XMLGregorianCalendars.
[中]将此XMLGregorianCalendar重置为其原始值。
XMLGregorianCalendar重置为与使用DatatypeFactory#newXMLGregorianCalendar()、DatatypeFactory#newXMLGregorianCalendar(字符串词汇表示)、DatatypeFactory#newXMLGregorianCalendar(大整数年、整数月、整数天、整数小时、整数分钟、整数秒、大小数分秒、整数时区)创建时相同的值,DatatypeFactory#NewXmlGregoriandar(整数年、整数月、整数天、整数小时、整数分钟、整数秒、整数毫秒、整数时区)、DatatypeFactory#NewXmlGregoriandar(Gregoriandar cal)、DatatypeFactory#NewXmlGregoriandarDate(整数年、整数月、整数天、整数时区),DatatypeFactory#newXMLGregorianCalendarTime(整数小时、整数分钟、整数秒、整数时区)、DatatypeFactory#newXMLGregorianCalendarTime(整数小时、整数分钟、整数秒、大小数分秒、整数时区)或DatatypeFactory#newXMLGregorianCalendarTime(整数小时、整数分钟、整数秒、整数毫秒、整数时区)。
reset()旨在允许重用现有XMLGregorianCalendars,从而节省与创建新XMLGregorianCalendars相关的资源。

代码示例

代码示例来源:origin: org.eclipse.emf/org.eclipse.emf.ecore

@Override
public void reset()
{
 date = null;
 xmlGregorianCalendar.reset();
}

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.ecore

@Override
public void reset()
{
 date = null;
 xmlGregorianCalendar.reset();
}

代码示例来源:origin: psidev.psi.mi/psi25-xml

public void reset() {
  calendar.reset();
}

代码示例来源:origin: psidev.psi.mi/psi25-xml

public void reset() {
  calendar.reset();
}

相关文章