Examples of ResultType


Examples of com.linkedin.parseq.trace.ResultType

  {
    for (JsonNode traceNode : getField(rootNode, JsonTraceCodec.TRACES))
    {
      final int traceId = getIntField(traceNode, JsonTraceCodec.TRACE_ID);
      final String name = getTextField(traceNode, JsonTraceCodec.TRACE_NAME);
      final ResultType resultType = ResultType.valueOf(getTextField(traceNode, JsonTraceCodec.TRACE_RESULT_TYPE));
      final ShallowTraceBuilder shallowBuilder = new ShallowTraceBuilder(name, resultType);

      if (traceNode.get(JsonTraceCodec.TRACE_HIDDEN) != null)
        shallowBuilder.setHidden(getBooleanField(traceNode, JsonTraceCodec.TRACE_HIDDEN));
View Full Code Here

Examples of com.philmander.jstest.JsTestResult.ResultType

             
        message.append(line + "\n");
       
        if(line.startsWith(PASS_PREFIX) || line.startsWith(FAIL_PREFIX) || line.startsWith(ERROR_PREFIX)) {
                 
          ResultType result;
          if(line.startsWith(PASS_PREFIX)) {
            result = ResultType.PASS;           
          } else if(line.startsWith(FAIL_PREFIX)) {           
            result = ResultType.FAIL;         
          } else {
View Full Code Here

Examples of com.sun.enterprise.deployment.annotation.ResultType

                if (dependencies!=null) {
                    AnnotatedElement ae = element.getAnnotatedElement();
                    for (Class<? extends Annotation> annotationType : dependencies) {
                        Annotation depAnnotation = ae.getAnnotation(annotationType);
                        if (depAnnotation!=null) {                       
                            ResultType resultType = result.processedAnnotations().get(annotationType);
                            if (resultType==null || resultType==ResultType.UNPROCESSED){
                                // annotation is present, process it.
                                AnnotationInfo info = new AnnotationInfo(ctx, ae, depAnnotation, getTopElementType());
                                process(ctx, info, result);
                            }
View Full Code Here

Examples of fr.soleil.salsa.entity.IScanResult.ResultType

            devicesList.add(sensor.getName());
        }
        for (IActuator actuator : scanResult.getActuatorsXList()) {
            devicesList.add(actuator.getName());
        }
        ResultType resultType = scanResult.getResultType();
        if (resultType.equals(ResultType.RESULT_2D)) {
            for (IActuator actuator : ((IScanResult2D) scanResult).getActuatorsYList()) {
                devicesList.add(actuator.getName());
            }
        }
        return devicesList;
View Full Code Here

Examples of fr.soleil.salsa.entity.IScanResult.ResultType

     * Init selected axis.
     *
     * @param type
     */
    public List<Data> initSelectedAxis() {
        ResultType resultType = scanResult.getResultType();
        List<Data> datas = new ArrayList<Data>();
        boolean scanResultReady;

        try {
            scanResultReady = ScanApi.isScanResultReady(ModelPreferences.getInstance()
                    .getScanServer());
            if (scanResultReady) {
                Data timeStampData = new Data();
                timeStampData.setName("sensors timestamps");
                datas.add(timeStampData);
            }
        }
        catch (SalsaDeviceException e) {
            if (e.isConsoleDisplay()) {
                e.printStackTrace();
            }
            scanResultReady = false;
        }

        if (config == null || config.getScanAddOn() == null
                || config.getScanAddOn().getDisplay() == null
                || config.getScanAddOn().getDisplay().getAxisList() == null
                || config.getScanAddOn().getDisplay().getAxisList().size() == 0) {

            // If no display is recorded, this is the default behavior.
            if (scanResult.getSensorsList().size() != 0) {
                Data tempData = new Data();
                tempData.setName(scanResult.getSensorsList().get(0).getName());
                if (resultType.equals(ResultType.RESULT_1D)) {
                    tempData.setDefaultAxis1D(Axis.Y1);
                }
                datas.add(tempData);
            }

            for (int i = 1; i < scanResult.getSensorsList().size(); i++) {
                Data tempData = new Data();
                tempData.setName(scanResult.getSensorsList().get(i).getName());
                if (resultType.equals(ResultType.RESULT_1D)) {
                    tempData.setDefaultAxis1D(Axis.Y2);
                }
                datas.add(tempData);
            }

            for (int i = 0; i < scanResult.getActuatorsXList().size(); i++) {
                Data tempData = new Data();
                tempData.setName(scanResult.getActuatorsXList().get(i).getName());
                datas.add(tempData);
            }

            if (resultType.equals(ResultType.RESULT_2D)) {
                for (int i = 0; i < ((ScanResult2DImpl) scanResult).getActuatorsYList().size(); i++) {
                    Data tempData = new Data();
                    tempData.setName(((ScanResult2DImpl) scanResult).getActuatorsYList().get(i)
                            .getName());
                    datas.add(tempData);
                }

                for (Data data : datas) {
                    if (data.getName().equals(scanResult.getSensorsList().get(0).getName())) {
                        data.setDefaultAxis2D(Axis.Z);
                        break;
                    }
                }
            }

            if (resultType.equals(ResultType.RESULT_1D)) {
                if (scanResult.getActuatorsXList().size() > 0) {
                    for (Data data : datas) {
                        if (data.getName().equals(scanResult.getActuatorsXList().get(0).getName())) {
                            data.setDefaultAxis1D(Axis.X);
                            break;
View Full Code Here

Examples of jnr.ffi.provider.ResultType

        FromNativeContext resultContext = new MethodResultContext(runtime, closureMethod);
        SignatureType signatureType = DefaultSignatureType.create(closureMethod.getReturnType(), resultContext);
        jnr.ffi.mapper.FromNativeType fromNativeType = typeMapper.getFromNativeType(signatureType, resultContext);
        FromNativeConverter fromNativeConverter = fromNativeType != null ? fromNativeType.getFromNativeConverter() : null;
        ResultType resultType = getResultType(runtime, closureMethod.getReturnType(),
                resultContext.getAnnotations(), fromNativeConverter, resultContext);

        ParameterType[] parameterTypes = getParameterTypes(runtime, typeMapper, closureMethod);

        // Allow individual methods to set the calling convention to stdcall
        CallingConvention callingConvention = closureClass.isAnnotationPresent(StdCall.class)
                ? CallingConvention.STDCALL : CallingConvention.DEFAULT;
        CallContext callContext = getCallContext(resultType, parameterTypes, callingConvention, true);
        LocalVariableAllocator localVariableAllocator = new LocalVariableAllocator(parameterTypes);


        Class[] javaParameterTypes = new Class[parameterTypes.length];
        for (int i = 0; i < parameterTypes.length; i++) {
            javaParameterTypes[i] = parameterTypes[i].getDeclaredType();
        }

        SkinnyMethodAdapter mv = new SkinnyMethodAdapter(builder.getClassVisitor(), ACC_PUBLIC | ACC_FINAL,
                closureMethod.getName(),
                sig(resultType.getDeclaredType(), javaParameterTypes), null, null);
        mv.start();
        // Retrieve the static 'ffi' Invoker instance
        mv.getstatic(p(AbstractClosurePointer.class), "ffi", ci(com.kenai.jffi.Invoker.class));

        // retrieve the call context and function address
View Full Code Here

Examples of mfinder.annotation.ResultType

     * @param obj 方法所在的对象。
     *
     * @return ResultType代理对象。
     */
    private ResultTypeProxy createResultTypeProxy(Method method, Object obj) {
        ResultType type = method.getAnnotation(ResultType.class);
        Class[] params = method.getParameterTypes();

        boolean requireAction = false;
        //ResultType代理的方法无参数或参数仅为ActionInvocation或其子类
        if (params.length == 0) {
            requireAction = false;
        } else if (isProxyMethod(params)) {
            requireAction = true;
        } else {
            throw new IllegalArgumentException("Illegal arguments in ResultType : " + method);
        }

        return new ResultTypeProxy(type.type().trim(), method, obj, requireAction);
    }
View Full Code Here

Examples of net.opengis.cat.csw20.ResultType

     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public ResultType createResultTypeFromString(EDataType eDataType, String initialValue) {
        ResultType result = ResultType.get(initialValue);
        if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
        return result;
    }
View Full Code Here

Examples of org.apache.cxf.xkms.model.xkms.ResultType

    /**
     * @param request Request to generate response for
     * @return Returns response for provided request, with SUCCESS as default major result.
     */
    public static ResultType createResponse(RequestAbstractType request) {
        return createResponse(request, new ResultType());
    }
View Full Code Here

Examples of org.apache.cxf.xkms.model.xkms.ResultType

    @Override
    public ResultType pending(PendingRequestType request) {
        validateRequest(request);

        return ExceptionMapper.toResponse(new UnsupportedOperationException("XKMS request is currently not supported"),
                XKMSResponseFactory.createResponse(request, new ResultType()));
    }
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.