📄 switch.java
字号:
/**
*
*/
package flow.graph.gui.graph.cell.bpel;
import java.io.Serializable;
import java.util.Vector;
/**
* @author Administrator
*
*/
public class Switch implements Serializable{
private Vector list = new Vector();
private OtherWise otherwise = new OtherWise();
public Switch(){}
public void addCase(Case c){list.add(c);}
public void setCases(Vector v){list = v;}
public Vector getCases(){return list;}
public void setOtherWise(OtherWise o){otherwise = o;}
public OtherWise getOtherWise(){return otherwise;}
public String toString(){
String s = "\t\t<switch>\n";
if(list != null){
for(int i=0;i<list.size();i++){
s += ((Case)list.get(i)).toString();
}
}
s += otherwise.toString();
s += "\t\t</switch>\n";
return s;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -