Examples of IdlType


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

        return findIdlType(local, corbaTypeImpl.getType(), corbaTypeImpl);               
    }
   
    private IdlType findIdlType(String local, QName ntype,
                                  CorbaTypeImpl corbatypeImpl) {
        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

        }
        return result;
    }

    private IdlType createIdlException(CorbaTypeImpl ctype, IdlScopeBase scope, String local) {
        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) {
        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

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

        Iterator it = s.getMember().iterator();
        while (it.hasNext()) {
            MemberType m = (MemberType)it.next();
            QName qname = m.getIdltype();
            IdlType type = findType(qname);           
           
            // Ensure that this struct will not be written until
            // all of its circular members are defined, unless
            // the undefined circular members are of sequence type.
View Full Code Here

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

       
        return struct;       
    }
   
    private IdlType createTypedef(CorbaTypeImpl ctype, IdlScopeBase scope, String local) {
        IdlType idlType = null;
        Alias a = (Alias)ctype;
        IdlType base = findType(a.getBasetype());       
       
        idlType = IdlTypedef.create(scope, local, base);
        scope.addToScope(idlType);
        return idlType;
    }
View Full Code Here

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

        scope.addToScope(idlType);
        return idlType;
    }
   
    private IdlType createSequence(CorbaTypeImpl ctype, IdlScopeBase scope, String local) {
        IdlType idlType = null;
        Sequence s = (Sequence)ctype;
        IdlType base = findType(s.getElemtype());       
        int bound = (int)s.getBound();
        idlType = IdlSequence.create(scope, local, base, bound);
        scope.addToScope(idlType);
        return idlType;
    }
View Full Code Here

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

        scope.addToScope(idlType);
        return idlType;
    }
   
    private IdlType createAnonSequence(CorbaTypeImpl ctype, IdlScopeBase scope, String local) {
        IdlType idlType = null;
        Anonsequence s = (Anonsequence)ctype;
        IdlType base = findType(s.getElemtype());       
        int bound = (int)s.getBound();
        idlType = IdlAnonSequence.create(scope, base, bound);
        scope.addToScope(idlType);
        return idlType;
    }
View Full Code Here

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

        scope.addToScope(idlType);
        return idlType;
    }
   
    private IdlType createArray(CorbaTypeImpl ctype, IdlScopeBase scope, String local) {
        IdlType idlType = null;
        Array s = (Array)ctype;
        IdlType base = findType(s.getElemtype());       
        int bound = (int)s.getBound();
        idlType = IdlArray.create(scope, local, base, bound);
        scope.addToScope(idlType);
        return idlType;
    }
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.