⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 option.java

📁 OBPM是一个开源
💻 JAVA
字号:
/*
 * 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -