Package com.esri.gpt.catalog.discovery

Examples of com.esri.gpt.catalog.discovery.DiscoveryException


    comparisonField = storeable.getComparisonField();
    if (comparisonField == null) {
      String sErr = "Storeable.name \""+storeable.getName()+"\" ";
      sErr += "has no associated comparison field. ";
      sErr += propertyClause.getClass().getSimpleName()+" cannot be executed.";
      throw new DiscoveryException(sErr);
    }
  }
View Full Code Here


        comparisonField = storeable.getComparisonField();
        if (comparisonField == null) {
          String sErr = "Storeable.name \""+storeable.getName()+"\" ";
          sErr += "has no associated terms or comparison field. ";
          sErr += propertyClause.getClass().getSimpleName()+" cannot be executed.";
          throw new DiscoveryException(sErr);
        }
      }
    }

    // TODO the expression may need to be escaped,
View Full Code Here

    Double dUpper = null;
    if (literalLowerValue.length() > 0) {
      try {
        dLower = (Double)valueType.evaluate(literalLowerValue);
      } catch (NumberFormatException e) {
        throw new DiscoveryException("Invalid Double: "+literalLowerValue);
      }
    }
    if (literalUpperValue.length() > 0) {
      try {
        dUpper = (Double)valueType.evaluate(literalUpperValue);
      } catch (NumberFormatException e) {
        throw new DiscoveryException("Invalid Double: "+literalUpperValue);
      }
    }
    if ((dLower == null) && (dUpper == null)) {
      throw new DiscoveryException("No range values were supplied.");
    }
    return NumericRangeQuery.newDoubleRange(
        this.getName(),dLower,dUpper,lowerBoundaryIsInclusive,upperBoundaryIsInclusive);
  }
View Full Code Here

    try {
      PropertyValueType valueType = PropertyValueType.DOUBLE;
      Double dValue = (Double)valueType.evaluate(value);
      return NumericUtils.doubleToPrefixCoded(dValue);
    } catch (NumberFormatException e) {
      throw new DiscoveryException("Invalid Double: "+value);
    }
  }
View Full Code Here

    Long lUpper = null;
    if (literalLowerValue.length() > 0) {
      try {
        lLower = (Long)valueType.evaluate(literalLowerValue);
      } catch (NumberFormatException e) {
        throw new DiscoveryException("Invalid Long: "+literalLowerValue);
      }
    }
    if (literalUpperValue.length() > 0) {
      try {
        lUpper = (Long)valueType.evaluate(literalUpperValue);
      } catch (NumberFormatException e) {
        throw new DiscoveryException("Invalid Long: "+literalUpperValue);
      }
    }
    if ((lLower == null) && (lUpper == null)) {
      throw new DiscoveryException("No range values were supplied.");
    }
    return NumericRangeQuery.newLongRange(
        this.getName(),lLower,lUpper,lowerBoundaryIsInclusive,upperBoundaryIsInclusive);
  }
View Full Code Here

    try {
      PropertyValueType valueType = PropertyValueType.LONG;
      Long lValue = (Long)valueType.evaluate(value);
      return NumericUtils.longToPrefixCoded(lValue);
    } catch (NumberFormatException e) {
      throw new DiscoveryException("Invalid Long: "+value);
    }
  }
View Full Code Here

TOP

Related Classes of com.esri.gpt.catalog.discovery.DiscoveryException

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.