本文整理了Java中javax.xml.datatype.XMLGregorianCalendar.reset()
方法的一些代码示例,展示了XMLGregorianCalendar.reset()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLGregorianCalendar.reset()
方法的具体详情如下:
包路径:javax.xml.datatype.XMLGregorianCalendar
类名称: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 XMLGregorianCalendar
s thus saving resources associated with the creation of new XMLGregorianCalendar
s.
[中]将此XMLGregorianCalendar
重置为其原始值。XMLGregorianCalendar
重置为与使用DatatypeFactory#newXMLGregorianCalendar()、DatatypeFactory#newXMLGregorianCalendar(字符串词汇表示)、DatatypeFactory#newXMLGregorianCalendar(大整数年、整数月、整数天、整数小时、整数分钟、整数秒、大小数分秒、整数时区)创建时相同的值,DatatypeFactory#NewXmlGregoriandar(整数年、整数月、整数天、整数小时、整数分钟、整数秒、整数毫秒、整数时区)、DatatypeFactory#NewXmlGregoriandar(Gregoriandar cal)、DatatypeFactory#NewXmlGregoriandarDate(整数年、整数月、整数天、整数时区),DatatypeFactory#newXMLGregorianCalendarTime(整数小时、整数分钟、整数秒、整数时区)、DatatypeFactory#newXMLGregorianCalendarTime(整数小时、整数分钟、整数秒、大小数分秒、整数时区)或DatatypeFactory#newXMLGregorianCalendarTime(整数小时、整数分钟、整数秒、整数毫秒、整数时区)。reset()
旨在允许重用现有XMLGregorianCalendar
s,从而节省与创建新XMLGregorianCalendar
s相关的资源。
代码示例来源: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();
}
内容来源于网络,如有侵权,请联系作者删除!