gpt4 book ai didi

org.apache.axis.types.Year类的使用及代码示例

转载 作者:知者 更新时间:2024-03-15 10:51:31 28 4
gpt4 key购买 nike

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

Year介绍

[英]Implementation of the XML Schema type gYear
[中]XML模式类型gYear的实现

代码示例

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

public void setValue(int year, String timezone)
  throws NumberFormatException {
  setYear(year);
  setTimezone(timezone);
}

代码示例来源:origin: axis/axis

/**
 * Constructs a Year with the given values, including a timezone string
 * The timezone is validated but not used.
 */
public Year(int year, String timezone) throws NumberFormatException {
  setValue(year, timezone);
}

代码示例来源:origin: axis/axis

public void setValue(int year) throws NumberFormatException {
  setYear(year);
}

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

public void setValue(int year) throws NumberFormatException {
  setYear(year);
}

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

public void setValue(int year, String timezone)
  throws NumberFormatException {
  setYear(year);
  setTimezone(timezone);
}

代码示例来源:origin: axis/axis

/**
 * Constructs a Year with the given values
 * No timezone is specified
 */
public Year(int year) throws NumberFormatException {
  setValue(year);
}

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

public void setValue(int year) throws NumberFormatException {
  setYear(year);
}

代码示例来源:origin: axis/axis

public void setValue(int year, String timezone)
  throws NumberFormatException {
  setYear(year);
  setTimezone(timezone);
}

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

/**
 * Constructs a Year with the given values
 * No timezone is specified
 */
public Year(int year) throws NumberFormatException {
  setValue(year);
}

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

/**
 * Constructs a Year with the given values, including a timezone string
 * The timezone is validated but not used.
 */
public Year(int year, String timezone) throws NumberFormatException {
  setValue(year, timezone);
}

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

/**
 * Constructs a Year with the given values
 * No timezone is specified
 */
public Year(int year) throws NumberFormatException {
  setValue(year);
}

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

/**
 * Constructs a Year with the given values, including a timezone string
 * The timezone is validated but not used.
 */
public Year(int year, String timezone) throws NumberFormatException {
  setValue(year, timezone);
}

代码示例来源:origin: axis/axis

/**
 * Construct a Year from a String in the format [-]CCYY[timezone]
 */
public Year(String source) throws NumberFormatException {
  int negative = 0;
  if (source.charAt(0) == '-') {
    negative = 1;
  }
  if (source.length() < (4 + negative)) {
    throw new NumberFormatException(
        Messages.getMessage("badYear00"));
  }
  // calculate how many more than 4 digits (if any) in the year
  int pos = 4 + negative;  // skip minus sign if present
  while (pos < source.length() && Character.isDigit(source.charAt(pos))) {
    ++pos;
  }
  setValue(Integer.parseInt(source.substring(0,pos)),
       source.substring(pos));
}

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

/**
 * Construct a Year from a String in the format [-]CCYY[timezone]
 */
public Year(String source) throws NumberFormatException {
  int negative = 0;
  if (source.charAt(0) == '-') {
    negative = 1;
  }
  if (source.length() < (4 + negative)) {
    throw new NumberFormatException(
        Messages.getMessage("badYear00"));
  }
  // calculate how many more than 4 digits (if any) in the year
  int pos = 4 + negative;  // skip minus sign if present
  while (pos < source.length() && Character.isDigit(source.charAt(pos))) {
    ++pos;
  }
  setValue(Integer.parseInt(source.substring(0,pos)),
       source.substring(pos));
}

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

/**
 * Construct a Year from a String in the format [-]CCYY[timezone]
 */
public Year(String source) throws NumberFormatException {
  int negative = 0;
  if (source.charAt(0) == '-') {
    negative = 1;
  }
  if (source.length() < (4 + negative)) {
    throw new NumberFormatException(
        Messages.getMessage("badYear00"));
  }
  // calculate how many more than 4 digits (if any) in the year
  int pos = 4 + negative;  // skip minus sign if present
  while (pos < source.length() && Character.isDigit(source.charAt(pos))) {
    ++pos;
  }
  setValue(Integer.parseInt(source.substring(0,pos)),
       source.substring(pos));
}

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