org.apache.xmlbeans.XmlCalendar.isSet()方法的使用及代码示例

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

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

XmlCalendar.isSet介绍

暂无

代码示例

代码示例来源:origin: org.apache.xmlbeans/xmlbeans

/**
 * Gets the value for a given time field.
 * 
 * Unlike the GregorianCalendar implementation, the get() does not
 * force a complete of all fields.  If you wish to force a completion
 * of all the fields, call getTime() first.
 */
public int get(int field)
{
  if (!isSet(field) || isTimeSet)
    return super.get(field); // forces a complete
  else
    return internalGet(field); // does not force a complete.
}

代码示例来源: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: org.apache.xmlbeans/com.springsource.org.apache.xmlbeans

/**
 * Gets the value for a given time field.
 * 
 * Unlike the GregorianCalendar implementation, the get() does not
 * force a complete of all fields.  If you wish to force a completion
 * of all the fields, call getTime() first.
 */
public int get(int field)
{
  if (!isSet(field) || isTimeSet)
    return super.get(field); // forces a complete
  else
    return internalGet(field); // does not force a complete.
}

代码示例来源:origin: com.github.pjfanning/xmlbeans

/**
 * Gets the value for a given time field.
 * 
 * Unlike the GregorianCalendar implementation, the get() does not
 * force a complete of all fields.  If you wish to force a completion
 * of all the fields, call getTime() first.
 */
public int get(int field)
{
  if (!isSet(field) || isTimeSet)
    return super.get(field); // forces a complete
  else
    return internalGet(field); // does not force a complete.
}

代码示例来源: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);
  }
}

代码示例来源: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);
  }
}

相关文章