All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.xmlbean.StringArray Maven / Gradle / Ivy

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 如果valuenull,返回"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();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy