Package uk.ac.uea.threadr.threadrtest

Examples of uk.ac.uea.threadr.threadrtest.StringTest$ResultType


                String id = ruleType.getId();
                ActiveRule activeRule = rules.get(id);
                if (activeRule == null) {
                    LOGGER.warn("Cannot resolve activeRule for id '{}'.", id);
                } else {
                    ResultType result = ruleType.getResult();
                    boolean hasRows = result != null && result.getRows().getCount() > 0;
                    if (ruleType instanceof ConceptType && createEmptyConceptIssue && !hasRows) {
                        createIssue(project, null, "The concept did not return a result.", activeRule, sensorContext);
                    } else if (ruleType instanceof ConstraintType && hasRows) {
                        for (RowType rowType : result.getRows().getRow()) {
                            StringBuilder message = new StringBuilder();
                            Resource<?> resource = null;
                            Integer lineNumber = null;
                            for (ColumnType column : rowType.getColumn()) {
                                String name = column.getName();
View Full Code Here


     * <!-- 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

     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void setResultType(ResultType newResultType) {
        ResultType oldResultType = resultType;
        resultType = newResultType == null ? RESULT_TYPE_EDEFAULT : newResultType;
        boolean oldResultTypeESet = resultTypeESet;
        resultTypeESet = true;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET, Csw20Package.GET_RECORDS_TYPE__RESULT_TYPE, oldResultType, resultType, !oldResultTypeESet));
View Full Code Here

     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void unsetResultType() {
        ResultType oldResultType = resultType;
        boolean oldResultTypeESet = resultTypeESet;
        resultType = RESULT_TYPE_EDEFAULT;
        resultTypeESet = false;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.UNSET, Csw20Package.GET_RECORDS_TYPE__RESULT_TYPE, oldResultType, RESULT_TYPE_EDEFAULT, oldResultTypeESet));
View Full Code Here

            if(offset < 0) {
                throw new ServiceException("startPosition must be a positive number", ServiceException.INVALID_PARAMETER_VALUE, "startPosition");
            }
           
            // and check what kind of result is desired
            ResultType resultType = request.getResultType();
            if(maxRecords == 0 && resultType == ResultType.RESULTS) {
                resultType = ResultType.HITS;
            }
           
            // compute the number of records matched (in validate mode this is also a quick way
View Full Code Here

        if (responseMechanisms == null || responseMechanisms.length == 0) {
            // Sync process
            XKMSServiceExecutor xkmsServiceExecutor = XKMSServiceExecutorManager
                    .get(qName.getLocalPart());
            ResultType result = xkmsServiceExecutor.execute(requestData, inMsgCtx);
            return getAsOMElement(result, fac);

        }

        throw new UnsupportedOperationException("TODO ");
View Full Code Here

    public ResultType execute(XKMSRequestData data,
            MessageContext messageContext) throws XKMSException, AxisFault {

        createXKMSServerCrypto(data);
        ResultType result = crypto.process(data);
        return result;
    }
View Full Code Here

TOP

Related Classes of uk.ac.uea.threadr.threadrtest.StringTest$ResultType

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.