Package de.fuberlin.wiwiss.d2rq.mapgen

Examples of de.fuberlin.wiwiss.d2rq.mapgen.FilterParser$ParseException


    try {
      Collection<Filter> includes = new ArrayList<Filter>();
      Collection<Filter> excludes = new ArrayList<Filter>();
      if (cmd.contains(schemasArg)) {
        String spec = withIndirection(cmd.getArg(schemasArg).getValue());
        includes.add(new FilterParser(spec).parseSchemaFilter());
      }
      if (cmd.contains(tablesArg)) {
        String spec = withIndirection(cmd.getArg(tablesArg).getValue());
        includes.add(new FilterParser(spec).parseTableFilter(true));
      }
      if (cmd.contains(columnsArg)) {
        String spec = withIndirection(cmd.getArg(columnsArg).getValue());
        includes.add(new FilterParser(spec).parseColumnFilter(true));
      }
      if (cmd.contains(skipSchemasArg)) {
        String spec = withIndirection(cmd.getArg(skipSchemasArg).getValue());
        excludes.add(new FilterParser(spec).parseSchemaFilter());
      }
      if (cmd.contains(skipTablesArg)) {
        String spec = withIndirection(cmd.getArg(skipTablesArg).getValue());
        excludes.add(new FilterParser(spec).parseTableFilter(false));
      }
      if (cmd.contains(skipColumnsArg)) {
        String spec = withIndirection(cmd.getArg(skipColumnsArg).getValue());
        excludes.add(new FilterParser(spec).parseColumnFilter(false));
      }
      if (!includes.isEmpty() || !excludes.isEmpty()) {
        loader.setFilter(new FilterIncludeExclude(
            includes.isEmpty() ? Filter.ALL : FilterMatchAny.create(includes),
                FilterMatchAny.create(excludes)));
View Full Code Here


      if (mode == EvaluationMode.DEMO) {
        this.enableOrDisableButtons(queryOrRif);
      }
      return true;
    } else if (e instanceof ParseException) {
      final ParseException pe = (ParseException) e;
      this.displayErrorMessage(pe.getMessage(), false, queryOrRif);

      int line;
      int column;

      // get precise line and column...
      if (pe.currentToken.next == null) {
        line = pe.currentToken.beginLine;
        column = pe.currentToken.beginColumn;
      } else {
        line = pe.currentToken.next.beginLine;
        column = pe.currentToken.next.beginColumn;
      }

      this.setErrorPosition(line, column, queryOrRif);
      if (mode == EvaluationMode.DEMO) {
        this.enableOrDisableButtons(queryOrRif);
      }
      return true;
    } else if(e instanceof lupos.rif.generated.parser.ParseException){
      final lupos.rif.generated.parser.ParseException pe = (lupos.rif.generated.parser.ParseException) e;
      this.displayErrorMessage(pe.getMessage(), false, queryOrRif);

      int line;
      int column;

      // get precise line and column...
View Full Code Here

  public void handleParseError(Throwable t) throws ModificationException {
    int line = 0;
    int column = 0;

    if(t instanceof ParseException) {
      ParseException pe = (ParseException) t;

      // get precise line and column...
      if(pe.currentToken.next == null) {
        line = pe.currentToken.beginLine;
        column = pe.currentToken.beginColumn;
View Full Code Here

TOP

Related Classes of de.fuberlin.wiwiss.d2rq.mapgen.FilterParser$ParseException

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.