Examples of OperationType


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

        EasyMock.expect(message.getExchange()).andReturn(exchange);     
        EasyMock.expect(destination.getAddress()).andReturn(etype);
        EasyMock.expect(opInfo.getInput()).andReturn(mInfo);
        exchange.setInMessage(message);
        EasyMock.expectLastCall();       
        OperationType opType = control.createMock(OperationType.class);
        List<ParamType> paramTypes = control.createMock(List.class);
        EasyMock.expect(opType.getParam()).andReturn(paramTypes);
        EasyMock.expect(paramTypes.size()).andReturn(0);
       
        control.replay();
        inInterceptor.prepareArguments(message, destination, info, opType, qname);
        control.verify();   
View Full Code Here

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

        }
       
        QName name = new QName("http://schemas.apache.org/idl/except", "review_data", "");
        BindingInfo bInfo = destination.getBindingInfo();
        BindingOperationInfo bopInfo = bInfo.getOperation(name);       
        OperationType opType = bopInfo.getExtensor(OperationType.class);
        List<ParamType> paramTypes = opType.getParam();
                       
        inInterceptor.setOrb(orb);               
        CorbaStreamable[] streamables = new CorbaStreamable[1];   
        NVList nvlist = inInterceptor.prepareDIIArgsList(message, streamables, paramTypes, typeMaps);
        assertNotNull("NVList should not be null", nvlist != null);       
View Full Code Here

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

        }
    }

    public void close(Message message) throws IOException {
        BindingOperationInfo boi = message.getExchange().get(BindingOperationInfo.class);
        OperationType opType = boi.getExtensor(OperationType.class);
       
        try {
            buildRequest((CorbaMessage)message, opType);           
            message.getContent(OutputStream.class).close();
        } catch (Exception ex) {
View Full Code Here

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

       
        // generate corba return param
        ArgType corbaReturn = generateCorbaReturnParam(typeNode);
       
        // generate corba operation
        OperationType corbaOp = generateCorbaOperation(op, null, corbaReturn);
       
        // generate binding
        BindingOperation corbaBindingOp = generateCorbaBindingOperation(binding, op, corbaOp);
    }
View Full Code Here

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

       
        // generate corba return param
        ParamType corbaParam = generateCorbaParam(typeNode);
       
        // generate corba operation
        OperationType corbaOp = generateCorbaOperation(op, corbaParam, null);
       
        // generate binding
        BindingOperation corbaBindingOp = generateCorbaBindingOperation(binding, op, corbaOp);
    }
View Full Code Here

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

     * @param param is the corba parameter, none if null.
     * @param arg is the corba return parameter, none if null.
     * @return the generated corba:operation.
     */
    private OperationType generateCorbaOperation(Operation op, ParamType param, ArgType arg) {
        OperationType operation = new OperationType();
        try {
            operation = (OperationType)extReg.createExtension(BindingOperation.class,
                                                              CorbaConstants.NE_CORBA_OPERATION);
        } catch (WSDLException ex) {
            throw new RuntimeException(ex);
        }
        operation.setName(op.getName());
  
        if (param != null) {
            operation.getParam().add(param);
        }
       
        if (arg != null) {
            operation.setReturn(arg);
        }
       
        return operation;
    }
View Full Code Here

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

    private void checkSequenceType(BindingOperation bindingOperation, TypeMappingType mapType) {
        Iterator bOp = bindingOperation.getExtensibilityElements().iterator();
        while (bOp.hasNext()) {
            ExtensibilityElement extElement = (ExtensibilityElement)bOp.next();
            if (extElement.getElementType().getLocalPart().equals("operation")) {
                OperationType corbaOpType = (OperationType)extElement;
                assertEquals(corbaOpType.getName(), "op_h");
                assertEquals(3, corbaOpType.getParam().size());
                assertEquals("Y.H", corbaOpType.getParam().get(0).getIdltype().getLocalPart());
                assertEquals("Y.H", corbaOpType.getReturn().getIdltype().getLocalPart());
                Sequence seq = (Sequence)mapType.getStructOrExceptionOrUnion().get(4);
                assertEquals("ElementType is incorrect for Sequence Type", "fixed_1", seq.getElemtype()
                    .getLocalPart());
            }
View Full Code Here

Examples of org.apache.tuscany.sca.binding.ejb.java2idl.OperationType

        });
        Iterator i = idlNames.entrySet().iterator();
        while (i.hasNext()) {
            Map.Entry entry = (Map.Entry)i.next();
            Method method = (Method)entry.getKey();
            OperationType operationType = (OperationType)entry.getValue();
            MethodInfo methodInfo = new MethodInfo(method);
            methodInfo.setIDLName(operationType.getIDLName());
            methods.put(method.getName(), methodInfo);
        }
    }
View Full Code Here

Examples of org.broadleafcommerce.common.presentation.client.OperationType

                .getInspectType());
    }

    @Override
    public Boolean canHandleFetch(PersistencePackage persistencePackage) {
        OperationType fetchType = persistencePackage.getPersistencePerspective().getOperationTypes().getFetchType();
        return canHandle(persistencePackage, fetchType);
    }
View Full Code Here

Examples of org.geotools.data.ows.OperationType

        GeneralEnvelope envelope = wms.getEnvelope(layer, crs);
        assertFalse(envelope.isEmpty() || envelope.isNull() || envelope.isInfinite());
        assertNotNull("Envelope "+CRS.toSRS(crs), envelope);

        GetMapRequest getMap = wms.createGetMapRequest();
        OperationType operationType = wms.getCapabilities().getRequest().getGetMap();

        getMap.addLayer(layer);
        String version = wms.getCapabilities().getVersion();
       
        getMap.setBBox(envelope);
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.