gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-15 11:33:31 27 4
gpt4 key购买 nike

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

YearMonth介绍

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

代码示例

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/**
 * Construct a YearMonth from a String in the format [-]CCYY-MM
 */
public YearMonth(String source) throws NumberFormatException {
  int negative = 0;
  if (source.charAt(0) == '-') {
    negative = 1;
  }
  if (source.length() < (7 + negative)) {
    throw new NumberFormatException(
        Messages.getMessage("badYearMonth00"));
  }
  // look for first '-'
  int pos = source.substring(negative).indexOf('-');
  if (pos < 0) {
    throw new NumberFormatException(
        Messages.getMessage("badYearMonth00"));
  }
  if (negative > 0) pos++;    //adjust index for orginal string
  setValue(Integer.parseInt(source.substring(0,pos)),
       Integer.parseInt(source.substring(pos+1,pos+3)),
       source.substring(pos+3));
}

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

/**
 * Construct a YearMonth from a String in the format [-]CCYY-MM
 */
public YearMonth(String source) throws NumberFormatException {
  int negative = 0;
  if (source.charAt(0) == '-') {
    negative = 1;
  }
  if (source.length() < (7 + negative)) {
    throw new NumberFormatException(
        Messages.getMessage("badYearMonth00"));
  }
  // look for first '-'
  int pos = source.substring(negative).indexOf('-');
  if (pos < 0) {
    throw new NumberFormatException(
        Messages.getMessage("badYearMonth00"));
  }
  if (negative > 0) pos++;    //adjust index for orginal string
  setValue(Integer.parseInt(source.substring(0,pos)),
       Integer.parseInt(source.substring(pos+1,pos+3)),
       source.substring(pos+3));
}

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

/**
 * Construct a YearMonth from a String in the format [-]CCYY-MM
 */
public YearMonth(String source) throws NumberFormatException {
  int negative = 0;
  if (source.charAt(0) == '-') {
    negative = 1;
  }
  if (source.length() < (7 + negative)) {
    throw new NumberFormatException(
        Messages.getMessage("badYearMonth00"));
  }
  // look for first '-'
  int pos = source.substring(negative).indexOf('-');
  if (pos < 0) {
    throw new NumberFormatException(
        Messages.getMessage("badYearMonth00"));
  }
  if (negative > 0) pos++;    //adjust index for orginal string
  setValue(Integer.parseInt(source.substring(0,pos)),
       Integer.parseInt(source.substring(pos+1,pos+3)),
       source.substring(pos+3));
}

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