Package org.apache.yoko.tools.common.idltypes

Examples of org.apache.yoko.tools.common.idltypes.IdlAttribute


    }

    public void createIdlAttribute(org.apache.schemas.yoko.bindings.corba.OperationType
                                   opType, String name) throws Exception {         
        String attrNm = name.substring(5, name.length());
        IdlAttribute attr;
        IdlDefn idlDef = intf.lookup(attrNm);

        if (idlDef == null) {
            if (name.startsWith("_get_")) {
                ArgType t = opType.getReturn();
                attr = IdlAttribute.create(intf, attrNm,
                                           findType(t.getIdltype()), true);                              
            } else {
                Iterator it = opType.getParam().iterator();
                ParamType arg = (ParamType)it.next();               
                attr = IdlAttribute.create(intf, attrNm, findType(arg.getIdltype()), false);               
            }
            intf.addAttribute(attr);
        } else {
            attr = (IdlAttribute)idlDef;

            if (attr.readonly() && name.startsWith("_set_")) {
                attr.setReadonly(false);
            }
        }
    }
View Full Code Here


        }
    }

    public void createIdlAttribute(org.apache.schemas.yoko.bindings.corba.OperationType opType, String name) {
        String attrNm = name.substring(5, name.length());
        IdlAttribute attr;
        IdlDefn idlDef = intf.lookup(attrNm);

        if (idlDef == null) {
            if (name.startsWith("_get_")) {
                ArgType t = opType.getReturn();
                attr = IdlAttribute.create(intf, attrNm,
                                           findType(t.getIdltype()), true);                              
            } else {
                Iterator it = opType.getParam().iterator();
                ParamType arg = (ParamType)it.next();               
                attr = IdlAttribute.create(intf, attrNm, findType(arg.getIdltype()), false);               
            }
            intf.addAttribute(attr);
        } else {
            attr = (IdlAttribute)idlDef;

            if (attr.readonly() && name.startsWith("_set_")) {
                attr.setReadonly(false);
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.yoko.tools.common.idltypes.IdlAttribute

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.