Package lupos.engine.operators.singleinput

Examples of lupos.engine.operators.singleinput.TypeErrorException


    }
    if (type == BigDecimal.class) {
      final BigDecimal bd = Helper.getBigDecimal(o);
      return bd.setScale(0, RoundingMode.FLOOR);
    }
    throw new TypeErrorException();
  }
View Full Code Here


    }
    if (type == BigDecimal.class) {
      final BigDecimal bd = Helper.getBigDecimal(o);
      return bd.setScale(0, RoundingMode.HALF_UP);
    }
    throw new TypeErrorException();
  }
View Full Code Here

        try {
          result = LiteralFactory.createTypedLiteral(
              concatenatedContent, ((TypedLiteral) result)
                  .getTypeLiteral());
        } catch (final URISyntaxException e) {
          throw new TypeErrorException();
        }
      } else if (result instanceof LanguageTaggedLiteral
          && child instanceof LanguageTaggedLiteral
          && ((LanguageTaggedLiteral) result).getLanguage()
              .compareTo(
View Full Code Here

      return null;
    }
    try {
      return Helper.quote(URLEncoder.encode(Helper.unquote(Helper.getContent(wholeString)), "UTF-8"));
    } catch (final UnsupportedEncodingException e) {
      throw new TypeErrorException(e.getMessage());
    }
  }
View Full Code Here

      return LiteralFactory.createTypedLiteral(Helper
          .getTimezoneAndTypeCheck(Helper.unlazy(node.jjtGetChild(0).accept(
              this, b, d))),
          "<http://www.w3.org/2001/XMLSchema#dayTimeDuration>");
    } catch (final URISyntaxException e) {
      throw new TypeErrorException();
    }
  }
View Full Code Here

  public Object evaluate(final ASTUUIDFuncNode node, final Bindings b, final Map<Node, Object> d)
      throws NotBoundException, TypeErrorException {
    try {
      return LiteralFactory.createURILiteral("<urn:uuid:"+ UUID.randomUUID().toString() + ">");
    } catch (final URISyntaxException e) {
      throw new TypeErrorException(e.getMessage());
    }
  }
View Full Code Here

  @Override
  public Object evaluate(final ASTStrReplaceFuncNode node, final Bindings b, final Map<Node, Object> d) throws NotBoundException, TypeErrorException {
    final Object o = Helper.unlazy(this.resultOfChildZero(node, b, d));
    if (o instanceof URILiteral || o instanceof AnonymousLiteral || Helper.isNumeric(o)) {
      throw new TypeErrorException();
    }
    final String cmp = Helper.unquote(Helper.getContent(o));
    String pattern = Helper.getString(this.resultOfChildOne(node, b, d));
    final String replacement = Helper.getString(this.resultOfChildTwo(node, b, d));
    String oldPattern;
View Full Code Here

            Geometry geo2 = GeoHelper.getGeoSPARQLGeometry(args[1]);
            return new Boolean(geo1.relate(geo2, "T*TFF*FF*"));
        }
        else
        {
            throw new TypeErrorException("Contains Function expects exactly 2 arguments: two geometry objects.");
        }
    }
View Full Code Here

            Geometry geo2 = GeoHelper.getGeoSPARQLGeometry(args[1]);
            return new Boolean(geo1.relate(geo2, "T*TFT*FF*"));
        }
        else
        {
            throw new TypeErrorException("Covers Function expects exactly 2 arguments: two geometry objects.");
        }
    }
View Full Code Here

            Geometry geo2 = GeoHelper.getGeoSPARQLGeometry(args[1]);
            return new Boolean(geo1.relate(geo2, "TFF*FFT**"));
        }
        else
        {
            throw new TypeErrorException("Inside Function expects exactly 2 arguments: two geometry objects.");
        }
    }
View Full Code Here

TOP

Related Classes of lupos.engine.operators.singleinput.TypeErrorException

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.