option.java

来自「OBPM是一个开源」· Java 代码 · 共 86 行

JAVA
86
字号
/*
 * Created on 2005-2-9
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package cn.myapps.core.dynaform.form.ejb;

/**
 * @author zhouty
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public class Option {
	
	private String option;
	private String value;
	private boolean def;
	
	public Option() {
		super();
		// TODO Auto-generated constructor stub
	}

	public Option(String option, String value) {
		this.option = option;
		this.value = value;
	}

	public Option(String option, String value, boolean def) {
		this.option = option;
		this.value = value;
		this.def = def;
	}
	

	/**
	 * @return Returns the def.
	 */
	public boolean isDef() {
		return def;
	}
	/**
	 * @param def The def to set.
	 */
	public void setDef(boolean def) {
		this.def = def;
	}
	/**
	 * @return Returns the option.
	 */
	public String getOption() {
		return option;
	}
	/**
	 * @param option The option to set.
	 */
	public void setOption(String option) {
		this.option = option;
	}
	/**
	 * @return Returns the value.
	 */
	public String getValue() {
		return value;
	}
	/**
	 * @param value The value to set.
	 */
	public void setValue(String value) {
		this.value = value;
	}
	
	public boolean equals(Object anObject) {
		if (anObject instanceof Option) {
			Option o = (Option)anObject;
			return o.option != null && this.option != null && o.option.equals(this.option);
		}
		return false;
	}

	public static void main(String[] args) {
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?