本文整理了Java中org.apache.xmlbeans.XmlCalendar.getDefaultYear()
方法的一些代码示例,展示了XmlCalendar.getDefaultYear()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XmlCalendar.getDefaultYear()
方法的具体详情如下:
包路径:org.apache.xmlbeans.XmlCalendar
类名称:XmlCalendar
方法名:getDefaultYear
[英]Returns the default year that is used when no year is specified.
[中]返回未指定年份时使用的默认年份。
代码示例来源:origin: org.apache.xmlbeans/xmlbeans
/**
* Overrides GregorianCalendar.computeTime to apply a different
* default year. (It must be a leap year.)
*/
protected void computeTime()
{
boolean unsetYear = !isSet(YEAR);
if (unsetYear)
set(YEAR, getDefaultYear());
try
{
super.computeTime();
}
finally
{
if (unsetYear)
clear(YEAR);
}
}
代码示例来源:origin: com.github.pjfanning/xmlbeans
/**
* Overrides GregorianCalendar.computeTime to apply a different
* default year. (It must be a leap year.)
*/
protected void computeTime()
{
boolean unsetYear = !isSet(YEAR);
if (unsetYear)
set(YEAR, getDefaultYear());
try
{
super.computeTime();
}
finally
{
if (unsetYear)
clear(YEAR);
}
}
代码示例来源:origin: org.apache.xmlbeans/com.springsource.org.apache.xmlbeans
/**
* Overrides GregorianCalendar.computeTime to apply a different
* default year. (It must be a leap year.)
*/
protected void computeTime()
{
boolean unsetYear = !isSet(YEAR);
if (unsetYear)
set(YEAR, getDefaultYear());
try
{
super.computeTime();
}
finally
{
if (unsetYear)
clear(YEAR);
}
}
内容来源于网络,如有侵权,请联系作者删除!