ctexceptlist.java

来自「UCS (Ultra Corba Simulator) is one more 」· Java 代码 · 共 68 行

JAVA
68
字号
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 + =
减小字号Ctrl + -
显示快捷键?