Package org.openquark.cal.filter

Examples of org.openquark.cal.filter.QualifiedNameBasedScopedEntityFilter


        // Include the include-only filter if specified
        if (includeOnlyScopedEntityFilterCheckBox.isSelected()) {
            Object includeOnlyScopedEntityFilterFieldValue = includeOnlyScopedEntityFilterField.getEditor().getItem();
            if (includeOnlyScopedEntityFilterFieldValue != null) {
                scopedEntityFilterList.add(
                    new QualifiedNameBasedScopedEntityFilter(
                        new RegExpBasedQualifiedNameFilter(includeOnlyScopedEntityFilterFieldValue.toString().trim(), false)));
            }
        }
       
        // Include the exclude filter if specified
        if (excludeScopedEntityFilterCheckBox.isSelected()) {
            Object excludeScopedEntityFilterFieldValue = excludeScopedEntityFilterField.getEditor().getItem();
            if (excludeScopedEntityFilterFieldValue != null) {
                scopedEntityFilterList.add(
                    new QualifiedNameBasedScopedEntityFilter(
                        new RegExpBasedQualifiedNameFilter(excludeScopedEntityFilterFieldValue.toString().trim(), true)));
            }
        }
       
        return CompositeScopedEntityFilter.make(scopedEntityFilterList);
View Full Code Here


                   
                    curPos++;
                    if (curPos < args.length) {
                        String regexp = args[curPos];
                        scopedEntityFilterList.add(
                            new QualifiedNameBasedScopedEntityFilter(
                                new RegExpBasedQualifiedNameFilter(regexp, false)));
                    } else {
                        throw new CommandLineException.MissingOptionArgument(curArg);
                    }
                   
                } else if (option.equalsIgnoreCase("excludeEntities")) {
                    // -excludeEntities <regexp>
                    // exclude the scoped entities matched by the regular expression
                    // 1 additional argument required
                   
                    curPos++;
                    if (curPos < args.length) {
                        String regexp = args[curPos];
                        scopedEntityFilterList.add(
                            new QualifiedNameBasedScopedEntityFilter(
                                new RegExpBasedQualifiedNameFilter(regexp, true)));
                    } else {
                        throw new CommandLineException.MissingOptionArgument(curArg);
                    }
                   
View Full Code Here

TOP

Related Classes of org.openquark.cal.filter.QualifiedNameBasedScopedEntityFilter

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.