📄 ctexceptlist.java
字号:
package com.corba.mnq.tool.idl.type;
import java.util.List;
import java.util.Vector;
import org.omg.CORBA.TypeCode;
import org.omg.CORBA.portable.OutputStream;
public class CTExceptList extends TypeBase {
public CTExceptList() {
super();
// TODO Auto-generated constructor stub
valType = "except_list";
}
public List memType = new Vector();
public TypeBase selectedExcept = null;
public TypeCode type() {
// TODO Auto-generated method stub
return null;
}
/**
* Method: "read"
*
* @param istream
* @return
*/
public Object read(org.omg.CORBA.portable.InputStream istream) {
// nothing to do
return null;
}
public void write(OutputStream ostream, Object value) {
// nothing to do
}
public boolean compare(TypeBase t) {
if (!selected)
return true;
if (!type().equal(t.type()))
return false;
return true;
}
public TypeBase cloneType() {
CTExceptList t = new CTExceptList();
t.disName = disName;
t.dmtn = dmtn;
t.dn = dn;
t.id = id;
t.rdn = rdn;
t.val = val;
t.memType = new Vector();
for (int i = 0; i < memType.size(); i++) {
t.memType.add(((TypeBase) memType.get(i)).cloneType());
}
t.selected = selected;
return t;
}
}
/* EOF */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -