gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-19 02:28:40 27 4
gpt4 key购买 nike

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

XmlCalendar.<init>介绍

[英]Constructs an empty instance with no fields set.
[中]构造未设置字段的空实例。

代码示例

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

/**
 * Retrieves the value of the current time as an {@link XmlCalendar}.
 * <p>
 * {@link XmlCalendar} is a subclass of {@link java.util.GregorianCalendar}
 * which is slightly customized to match XML schema date rules.
 * <p>
 * The returned {@link XmlCalendar} has only those time and date fields
 * set that are reflected in the GDate object.  Because of the way the
 * {@link java.util.Calendar} contract works, any information in the isSet() vanishes
 * as soon as you view any unset field using get() methods.
 * This means that if it is important to understand which date fields
 * are set, you must call isSet() first before get().
 */
public XmlCalendar getCalendar()
{
  return new XmlCalendar(this);
}

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

/**
 * Retrieves the value of the current time as an {@link XmlCalendar}.
 * <p>
 * {@link XmlCalendar} is a subclass of {@link java.util.GregorianCalendar}
 * which is slightly customized to match XML schema date rules.
 * <p>
 * The returned {@link XmlCalendar} has only those time and date fields
 * set that are reflected in the GDate object.  Because of the way the
 * {@link java.util.Calendar} contract works, any information in the isSet() vanishes
 * as soon as you view any unset field using get() methods.
 * This means that if it is important to understand which date fields
 * are set, you must call isSet() first before get().
 */
public XmlCalendar getCalendar()
{
  return new XmlCalendar(this);
}

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

writer.println("<p>Run on " + (new XmlCalendar(new Date())) + "</p>");
writer.println("<p>Values in schema or instance valid columns are results from compiling or validating respectively.");
writer.println("Red or orange background mean the test failed.</p>");

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

/**
 * Retrieves the value of the current time as an {@link XmlCalendar}.
 * <p>
 * {@link XmlCalendar} is a subclass of {@link java.util.GregorianCalendar}
 * which is slightly customized to match XML schema date rules.
 * <p>
 * The returned {@link XmlCalendar} has only those time and date fields
 * set that are reflected in the GDate object.  Because of the way the
 * {@link java.util.Calendar} contract works, any information in the isSet() vanishes
 * as soon as you view any unset field using get() methods.
 * This means that if it is important to understand which date fields
 * are set, you must call isSet() first before get().
 */
public XmlCalendar getCalendar()
{
  return new XmlCalendar(this);
}

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

/**
 * Retrieves the value of the current time as an {@link XmlCalendar}.
 * <p>
 * {@link XmlCalendar} is a subclass of {@link java.util.GregorianCalendar}
 * which is slightly customized to match XML schema date rules.
 * <p>
 * The returned {@link XmlCalendar} has only those time and date fields
 * set that are reflected in the GDate object.  Because of the way the
 * {@link java.util.Calendar} contract works, any information in the isSet() vanishes
 * as soon as you view any unset field using get() methods.
 * This means that if it is important to understand which date fields
 * are set, you must call isSet() first before get().
 */
public XmlCalendar getCalendar()
{
  return new XmlCalendar(this);
}

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

/**
 * Retrieves the value of the current time as an {@link XmlCalendar}.
 * <p>
 * {@link XmlCalendar} is a subclass of {@link java.util.GregorianCalendar}
 * which is slightly customized to match XML schema date rules.
 * <p>
 * The returned {@link XmlCalendar} has only those time and date fields
 * set that are reflected in the GDate object.  Because of the way the
 * {@link java.util.Calendar} contract works, any information in the isSet() vanishes
 * as soon as you view any unset field using get() methods.
 * This means that if it is important to understand which date fields
 * are set, you must call isSet() first before get().
 */
public XmlCalendar getCalendar()
{
  return new XmlCalendar(this);
}

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

/**
 * Retrieves the value of the current time as an {@link XmlCalendar}.
 * <p>
 * {@link XmlCalendar} is a subclass of {@link java.util.GregorianCalendar}
 * which is slightly customized to match XML schema date rules.
 * <p>
 * The returned {@link XmlCalendar} has only those time and date fields
 * set that are reflected in the GDate object.  Because of the way the
 * {@link java.util.Calendar} contract works, any information in the isSet() vanishes
 * as soon as you view any unset field using get() methods.
 * This means that if it is important to understand which date fields
 * are set, you must call isSet() first before get().
 */
public XmlCalendar getCalendar()
{
  return new XmlCalendar(this);
}

代码示例来源:origin: com.att.ajsc/ajsc-core

public static String getStartTimestamp(String epoch) {
  long stime = Long.parseLong((String) epoch);
  XmlCalendar cal = new XmlCalendar(new Date(stime));
  XMLGregorianCalendar initTime = null;
  try {
    initTime = DatatypeFactory.newInstance().newXMLGregorianCalendar(
        cal.get(Calendar.YEAR), cal.get(Calendar.MONTH) + 1,
        cal.get(Calendar.DAY_OF_MONTH),
        cal.get(Calendar.HOUR_OF_DAY), cal.get(Calendar.MINUTE),
        cal.get(Calendar.SECOND), cal.get(Calendar.MILLISECOND),
        Math.round(cal.get(Calendar.ZONE_OFFSET) / 1000 / 60));
  } catch (Exception ex) {
    initTime = null;
  }
  if (initTime == null)
    return null;
  else
    return initTime.toString();
}

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

writer.println("<p>Run on " + (new XmlCalendar(new Date())) + "</p>");
writer.println("<p>Values in schema or instance valid columns are results from compiling or validating respectively.");
writer.println("Red or orange background mean the test failed.</p>");

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

writer.println("<p>Run on " + (new XmlCalendar(new Date())) + "</p>");
writer.println("<p>Values in schema or instance valid columns are results from compiling or validating respectively.");
writer.println("Red or orange background mean the test failed.</p>");

代码示例来源:origin: org.apache.airavata/airavata-workflow-tracking

public static Date getActivityTimestamp(XmlObject activity) throws ParseException {
  // $ACTIVITY_XML/*/timestamp
  XmlCursor xc = activity.newCursor();
  // ./
  // xc.toStartDoc();
  // ./*
  xc.toNextToken();
  // ./*/timestamp
  xc.toChild(TIMESTAMP_QNAME);
  System.out.println(xc.xmlText());
  XmlCalendar calendar = new XmlCalendar(xc.getTextValue());
  // return getDateFormat().parse(xc.getTextValue()); // fixme: this
  // supports only one date format
  return calendar.getTime();
}

代码示例来源:origin: org.jboss.soa.bpel/riftsaw-bpel-runtime

e.setCreateTime(new XmlCalendar(mexDao.getCreateTime()));
e.setOperation(mexDao.getOperation());
try {

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com