Examples of IdlType


Examples of org.apache.cxf.tools.corba.common.idltypes.IdlType

    }

    private IdlType createInterface(CorbaTypeImpl ctype, IdlScopeBase scope, String local)
        throws Exception {
   
        IdlType result = null;
       
        org.apache.cxf.binding.corba.wsdl.Object obj =
            (org.apache.cxf.binding.corba.wsdl.Object)ctype;
        QName bqname = obj.getBinding();       
View Full Code Here

Examples of org.apache.cxf.tools.corba.common.idltypes.IdlType

        return result;
    }
   
    private IdlType createIdlException(CorbaTypeImpl ctype, IdlScopeBase scope,
                                       String local) throws Exception {
        IdlType result = null;
        org.apache.cxf.binding.corba.wsdl.Exception e =
            (org.apache.cxf.binding.corba.wsdl.Exception)ctype;

        Object obj = scope.lookup(local);

        if (obj != null && (obj instanceof IdlException)) {
            result = (IdlType)obj;
        } else {
            IdlException exc = IdlException.create(scope, local);
            scope.holdForScope(exc);
            for (MemberType m : e.getMember()) {
                QName qname = m.getIdltype();
                IdlType type = findType(qname);               
                exc.addToScope(IdlField.create(exc, m.getName(), type));
            }
            result = exc;
            scope.promoteHeldToScope();
        }
View Full Code Here

Examples of org.apache.cxf.tools.corba.common.idltypes.IdlType

   
    private IdlType createUnion(CorbaTypeImpl ctype, IdlScopeBase scope,
                                String local) throws Exception {
        Union u = (Union)ctype;
        boolean undefinedCircular = false;
        IdlType disc = findType(u.getDiscriminator());
        IdlUnion union = IdlUnion.create(scope, local, disc);
        scope.holdForScope(union);

        for (Unionbranch ub : u .getUnionbranch()) {
            QName qname = ub.getIdltype();
            IdlType bt = findType(qname);
            boolean isDefault = false;
            if (ub.isSetDefault()) {
                isDefault = ub.isDefault();
            }
            IdlUnionBranch b = IdlUnionBranch.create(union, ub.getName(), bt, isDefault);
View Full Code Here

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

        intf.holdForScope(idlOp);

        ArgType crt = opType.getReturn();

        if (crt != null) {
            IdlType rt = findType(crt.getIdltype());           
            idlOp.addReturnType(rt);
        }

        Iterator it = opType.getParam().iterator();

        while (it.hasNext()) {
            ParamType arg = (ParamType)it.next();
            IdlType type = findType(arg.getIdltype());           
            String mode = arg.getMode().value();
            IdlParam param = IdlParam.create(idlOp, arg.getName(), type, mode);
            idlOp.addParameter(param);
        }
       
        Iterator iter = opType.getRaises().iterator();

        while (iter.hasNext()) {
            RaisesType rs = (RaisesType)iter.next();
            IdlType type = findType(rs.getException());           

            if (type instanceof IdlException) {
                idlOp.addException((IdlException)type);
            } else {
                String msgStr = type.fullName() + " is not a type.";
                org.apache.cxf.common.i18n.Message msg =
                    new org.apache.cxf.common.i18n.Message(msgStr, LOG);
                throw new Exception(msg.toString());               
            }
        }
View Full Code Here

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

        return findIdlType(local, corbaTypeImpl.getType(), corbaTypeImpl);               
    }
   
    private IdlType findIdlType(String local, QName ntype,
                                  CorbaTypeImpl corbatypeImpl) throws Exception {
        IdlType idlType = null;
       
        if (ntype.getNamespaceURI().equals(CorbaConstants.NU_WSDL_CORBA)) {
            try {
                idlType = createPrimitiveType(ntype, local);
            } catch (Exception ex) {
View Full Code Here

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

            dotScopedName += ".";
            scope = (IdlScopeBase)idlDef;
        }

        IdlType result = null;
        String local = name[name.length - 1];

        if (corbaTypeImpl instanceof Enum) {
            result = createEnum(corbaTypeImpl, scope, local);
        } else if (corbaTypeImpl instanceof Sequence) {
View Full Code Here

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

        return result;
    }

    private IdlType checkAnon(CorbaTypeImpl corbaTypeImpl, IdlScopeBase scope,
                              String local) throws Exception {
        IdlType result = null;
       
        if (corbaTypeImpl instanceof Anonstring) {
            Anonstring as = (Anonstring)corbaTypeImpl;  
            Long lbound = as.getBound();
            int bound = lbound.intValue()
View Full Code Here

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

    }

    private IdlType createInterface(CorbaTypeImpl ctype, IdlScopeBase scope, String local)
        throws Exception {
   
        IdlType result = null;
       
        org.apache.schemas.yoko.bindings.corba.Object obj =
            (org.apache.schemas.yoko.bindings.corba.Object)ctype;
        QName bqname = obj.getBinding();       
View Full Code Here

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

        return result;
    }
   
    private IdlType createIdlException(CorbaTypeImpl ctype, IdlScopeBase scope,
                                       String local) throws Exception {
        IdlType result = null;
        org.apache.schemas.yoko.bindings.corba.Exception e =
            (org.apache.schemas.yoko.bindings.corba.Exception)ctype;

        Object obj = scope.lookup(local);

        if (obj != null && (obj instanceof IdlException)) {
            result = (IdlType)obj;
        } else {
            IdlException exc = IdlException.create(scope, local);
            scope.holdForScope(exc);

            Iterator it = e.getMember().iterator();

            while (it.hasNext()) {
                MemberType m = (MemberType)it.next();
                QName qname = m.getIdltype();
                IdlType type = findType(qname);               
                exc.addToScope(IdlField.create(exc, m.getName(), type));
            }

            result = exc;
            scope.promoteHeldToScope();
View Full Code Here

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

   
    private IdlType createUnion(CorbaTypeImpl ctype, IdlScopeBase scope,
                                String local) throws Exception {
        Union u = (Union)ctype;
        boolean undefinedCircular = false;
        IdlType disc = findType(u.getDiscriminator());
        IdlUnion union = IdlUnion.create(scope, local, disc);
        scope.holdForScope(union);

        Iterator it = u.getUnionbranch().iterator();
        while (it.hasNext()) {
            Unionbranch ub = (Unionbranch)it.next();
            QName qname = ub.getIdltype();
            IdlType bt = findType(qname);
            boolean isDefault = false;
            if (ub.isSetDefault()) {
                isDefault = ub.isDefault();
            }
            IdlUnionBranch b = IdlUnionBranch.create(union, ub.getName(), bt, isDefault);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.