本文整理了Java中org.apache.axis.types.YearMonth
类的一些代码示例,展示了YearMonth
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YearMonth
类的具体详情如下:
包路径:org.apache.axis.types.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));
}
内容来源于网络,如有侵权,请联系作者删除!