gpt4 book ai didi

com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl.()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-20 23:31:05 26 4
gpt4 key购买 nike

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

XMLGregorianCalendarImpl.<init>介绍

[英]Create an instance with all date/time datatype fields set to DatatypeConstants#FIELD_UNDEFINED or null respectively.
[中]创建一个实例,将所有日期/时间数据类型字段分别设置为DatatypeConstants#FIELD_UNDEFINED或null。

代码示例

代码示例来源:origin: com.sun.xml.parsers/jaxp-ri

/**
 * <p>Create a new instance of an <code>XMLGregorianCalendar</code>.</p>
 * 
 * <p>All date/time datatype fields set to {@link DatatypeConstants#FIELD_UNDEFINED} or null.</p>
 * 
 * @return New <code>XMLGregorianCalendar</code> with all date/time datatype fields set to
 *   {@link DatatypeConstants#FIELD_UNDEFINED} or null.
 */
public XMLGregorianCalendar newXMLGregorianCalendar() {
  
  return new XMLGregorianCalendarImpl();
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxp-ri

/**
 * <p>Create a new instance of an <code>XMLGregorianCalendar</code>.</p>
 * 
 * <p>All date/time datatype fields set to {@link DatatypeConstants#FIELD_UNDEFINED} or null.</p>
 * 
 * @return New <code>XMLGregorianCalendar</code> with all date/time datatype fields set to
 *   {@link DatatypeConstants#FIELD_UNDEFINED} or null.
 */
public XMLGregorianCalendar newXMLGregorianCalendar() {
  
  return new XMLGregorianCalendarImpl();
}

代码示例来源:origin: com.sun.xml.parsers/jaxp-ri

/**
 * <p>Create a new XMLGregorianCalendar by parsing the String as a lexical representation.</p>
 * 
 * <p>Parsing the lexical string representation is defined in 
 * <a href="http://www.w3.org/TR/xmlschema-2/#dateTime-order">XML Schema 1.0 Part 2, Section 3.2.[7-14].1,
 * <em>Lexical Representation</em>.</a></p>
 * 
 * <p>The string representation may not have any leading and trailing whitespaces.</p>
 * 
 * <p>The parsing is done field by field so that
 * the following holds for any lexically correct String x:</p>
 * <pre>
 * newXMLGregorianCalendar(x).toXMLFormat().equals(x)
 * </pre>
 * <p>Except for the noted lexical/canonical representation mismatches
 * listed in <a href="http://www.w3.org/2001/05/xmlschema-errata#e2-45">
 * XML Schema 1.0 errata, Section 3.2.7.2</a>.</p>
 * 
 * @param lexicalRepresentation Lexical representation of one the eight XML Schema date/time datatypes.
 * 
 * @return <code>XMLGregorianCalendar</code> created from the <code>lexicalRepresentation</code>.
 * 
 * @throws IllegalArgumentException If the <code>lexicalRepresentation</code> is not a valid <code>XMLGregorianCalendar</code>.
 * @throws NullPointerException If <code>lexicalRepresentation</code> is <code>null</code>.
 */
public XMLGregorianCalendar newXMLGregorianCalendar(final String lexicalRepresentation) {
  
  return new XMLGregorianCalendarImpl(lexicalRepresentation);
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxp-ri

return new XMLGregorianCalendarImpl(lexicalRepresentation);

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxp-ri

int timezone) {
return new XMLGregorianCalendarImpl(

代码示例来源:origin: com.sun.xml.parsers/jaxp-ri

int timezone) {
return new XMLGregorianCalendarImpl(

代码示例来源:origin: com.sun.xml.parsers/jaxp-ri

int second) {
return new XMLGregorianCalendarImpl(
  year,
  month,

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxp-ri

/**
 * <p>Create a new XMLGregorianCalendar by parsing the String as a lexical representation.</p>
 * 
 * <p>Parsing the lexical string representation is defined in 
 * <a href="http://www.w3.org/TR/xmlschema-2/#dateTime-order">XML Schema 1.0 Part 2, Section 3.2.[7-14].1,
 * <em>Lexical Representation</em>.</a></p>
 * 
 * <p>The string representation may not have any leading and trailing whitespaces.</p>
 * 
 * <p>The parsing is done field by field so that
 * the following holds for any lexically correct String x:</p>
 * <pre>
 * newXMLGregorianCalendar(x).toXMLFormat().equals(x)
 * </pre>
 * <p>Except for the noted lexical/canonical representation mismatches
 * listed in <a href="http://www.w3.org/2001/05/xmlschema-errata#e2-45">
 * XML Schema 1.0 errata, Section 3.2.7.2</a>.</p>
 * 
 * @param lexicalRepresentation Lexical representation of one the eight XML Schema date/time datatypes.
 * 
 * @return <code>XMLGregorianCalendar</code> created from the <code>lexicalRepresentation</code>.
 * 
 * @throws IllegalArgumentException If the <code>lexicalRepresentation</code> is not a valid <code>XMLGregorianCalendar</code>.
 * @throws NullPointerException If <code>lexicalRepresentation</code> is <code>null</code>.
 */
public XMLGregorianCalendar newXMLGregorianCalendar(final String lexicalRepresentation) {
  
  return new XMLGregorianCalendarImpl(lexicalRepresentation);
}

代码示例来源:origin: com.sun.xml.parsers/jaxp-ri

/**
 * Create a Java instance of XML Schema builtin datatype <code>time</code>.
 * @param hours number of hours
 * @param minutes number of minutes
 * @param seconds number of seconds
 * @param timezone offset in minutes. {@link DatatypeConstants#FIELD_UNDEFINED} indicates optional field is not set.
 *
 * @return <code>XMLGregorianCalendar</code> created from parameter values.
 *
 * @see DatatypeConstants#FIELD_UNDEFINED
 *
 * @throws IllegalArgumentException if any parameter is outside value
 * constraints for the field as specified in
 * <a href="#datetimefieldmapping">date/time field mapping table</a>.
 */
public static XMLGregorianCalendar createTime(
  int hours,
  int minutes,
  int seconds,
  int timezone) {
  return new XMLGregorianCalendarImpl(
    DatatypeConstants.FIELD_UNDEFINED, // Year
    DatatypeConstants.FIELD_UNDEFINED, // Month
    DatatypeConstants.FIELD_UNDEFINED, // Day
    hours,
    minutes,
    seconds,
    DatatypeConstants.FIELD_UNDEFINED, //Millisecond
    timezone);
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxp-ri

/**
 * Create a Java instance of XML Schema builtin datatype <code>time</code>.
 * @param hours number of hours
 * @param minutes number of minutes
 * @param seconds number of seconds
 * @param timezone offset in minutes. {@link DatatypeConstants#FIELD_UNDEFINED} indicates optional field is not set.
 *
 * @return <code>XMLGregorianCalendar</code> created from parameter values.
 *
 * @see DatatypeConstants#FIELD_UNDEFINED
 *
 * @throws IllegalArgumentException if any parameter is outside value
 * constraints for the field as specified in
 * <a href="#datetimefieldmapping">date/time field mapping table</a>.
 */
public static XMLGregorianCalendar createTime(
  int hours,
  int minutes,
  int seconds,
  int timezone) {
  return new XMLGregorianCalendarImpl(
    DatatypeConstants.FIELD_UNDEFINED, // Year
    DatatypeConstants.FIELD_UNDEFINED, // Month
    DatatypeConstants.FIELD_UNDEFINED, // Day
    hours,
    minutes,
    seconds,
    DatatypeConstants.FIELD_UNDEFINED, //Millisecond
    timezone);
}

代码示例来源:origin: com.sun.xml.parsers/jaxp-ri

int timezone) {
return new XMLGregorianCalendarImpl(

代码示例来源:origin: com.sun.xml.parsers/jaxp-ri

return new XMLGregorianCalendarImpl(lexicalRepresentation);

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxp-ri

int timezone) {
return new XMLGregorianCalendarImpl(

代码示例来源:origin: org.objectweb.fractal.bf.testing/fixtures

/**
 * return the current date
 * 
 * @see org.objectweb.fractal.bf.connectors.Service#getCurrentDate()
 */
public XMLGregorianCalendar getCurrentDate() {
  final XMLGregorianCalendarImpl result = new XMLGregorianCalendarImpl(
      new GregorianCalendar());
  log.info("The date sent by the server is: " + result);
  return result;
}

代码示例来源:origin: com.sun.xml.parsers/jaxp-ri

int timezone) {
return new XMLGregorianCalendarImpl(
  year,
  month,

代码示例来源:origin: org.objectweb.fractal.bf.testing/fractal-bf-testing-fixtures

/**
 * return the current date
 * 
 * @see org.objectweb.fractal.bf.connectors.Service#getCurrentDate()
 */
public XMLGregorianCalendar getCurrentDate() {
  final XMLGregorianCalendarImpl result = new XMLGregorianCalendarImpl(
      new GregorianCalendar());
  System.out
      .println("The date sent back to the client by the server is: "
          + result);
  return result;
}

代码示例来源:origin: stackoverflow.com

final GregorianCalendar calendar = new GregorianCalendar(dateTime.getZone().toTimeZone());
   calendar.setTimeInMillis(dateTime.getMillis());
   return new XMLGregorianCalendarImpl(calendar);

代码示例来源:origin: org.ow2.fractal.bf.testing/fractal-bf-testing-fixtures

/**
 * return the current date
 * 
 * @see org.objectweb.fractal.bf.connectors.Service#getCurrentDate()
 */
public XMLGregorianCalendar getCurrentDate() {
  final XMLGregorianCalendarImpl result = new XMLGregorianCalendarImpl(
      new GregorianCalendar());
  System.out
      .println("The date sent back to the client by the server is: "
          + result);
  return result;
}

代码示例来源:origin: com.sun.xml.parsers/jaxp-ri

/**
 * <p>Creates and returns a copy of this object.</p>
 *
 * @return copy of this <code>Object</code>
 */
public Object clone() {
  // Both this.eon and this.fractionalSecond are instances
  // of immutable classes, so they do not need to be cloned.
  return new XMLGregorianCalendarImpl(getEonAndYear(),
          this.month, this.day,
    this.hour, this.minute, this.second,
    this.fractionalSecond,
    this.timezone);
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxp-ri

/**
 * <p>Creates and returns a copy of this object.</p>
 *
 * @return copy of this <code>Object</code>
 */
public Object clone() {
  // Both this.eon and this.fractionalSecond are instances
  // of immutable classes, so they do not need to be cloned.
  return new XMLGregorianCalendarImpl(getEonAndYear(),
          this.month, this.day,
    this.hour, this.minute, this.second,
    this.fractionalSecond,
    this.timezone);
}

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