org.xmlbean.StringArray Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xmlbean Show documentation
Show all versions of xmlbean Show documentation
XML to JavaBean & JavaBean to XML
The newest version!
package org.xmlbean;
/**
* 此类是对java.lang.String[]的简单封装
*/
public class StringArray {
private String[] value;
public StringArray() {
}
public StringArray(String[] value) {
this.value = value;
}
public String[] getValue() {
return value;
}
public void setValue(String[] value) {
this.value = value;
}
/**
* 返回一个代表该对象的字符串.
*
* @return 如果value为null,返回"null"; 否则返回value
* 的拼串(;分割)
*/
public String toString() {
if (value == null)
return "null";
StringBuffer buf = new StringBuffer();
for (String v : value)
buf.append(v).append(';');
return buf.toString();
}
}