Package org.apache.schemas.yoko.bindings.corba

Examples of org.apache.schemas.yoko.bindings.corba.RaisesType


        }
       
        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.";
View Full Code Here


                }
                corbaBinding.unmarshal(mc, objectCtx, callback);
            } else if (ex instanceof UnknownUserException) {
                UnknownUserException userEx = (UnknownUserException)ex;
                Any exAny = userEx.except;
                RaisesType raisesExType = exceptions.get(exAny.type());
               
                CorbaStreamable streamableEx = createStreamableException(exAny, raisesExType);
                mc.getMessage().setStreamableException(streamableEx);
                corbaBinding.unmarshalFault(mc, objectCtx, callback);
            } else {
View Full Code Here

        Map<TypeCode, RaisesType> exceptions = new HashMap<TypeCode, RaisesType>();
        List<RaisesType> exList = operation.getRaises();

        for (Iterator<RaisesType> iter = exList.iterator(); iter.hasNext();) {
            RaisesType ex = iter.next();
            TypeCode tc = CorbaUtils.getTypeCode(orb, ex.getException(), corbaBinding.getCorbaTypeMaps());
            exceptions.put(tc, ex);
        }

        return exceptions;
    }
View Full Code Here

                        ret.setIdltype(getIdlTypeName(def, retAttrNode, currentNode));
                    }
                }
                opType.setReturn(ret);
            } else if (currentNode.getNodeName().equals("corba:raises")) {
                RaisesType raises = new RaisesType();
                NamedNodeMap raiseAttributes = currentNode.getAttributes();

                for (int j = 0; j < raiseAttributes.getLength(); ++j) {
                    Node raiseAttrNode = raiseAttributes.item(j);
                    if (raiseAttrNode.getNodeName().equals("exception")) {
                        raises.setException(getIdlTypeName(def, raiseAttrNode, currentNode));
                    }
                }
                opType.getRaises().add(raises);
            }
            // anything else we are not interested in at the moment
View Full Code Here

TOP

Related Classes of org.apache.schemas.yoko.bindings.corba.RaisesType

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.