Package uk.org.ogsadai.activity.io

Examples of uk.org.ogsadai.activity.io.InvalidInputValueException


                int value = ((Number)block).intValue();
                if (value > 0) arraySize = value;
            }
            else
            {
                throw new InvalidInputValueException(INPUT_ARRAY_SIZE, block);
            }
        }
        return arraySize;
    }
View Full Code Here


            // make sure we have a list of binary data
            // BytesInputStream expects that the LIST_BEGIN has been read
            Object first = data.read();
            if (first != ControlBlock.LIST_BEGIN)
            {
                throw new InvalidInputValueException(INPUT_DATA, first);
            }
           
            BytesInputStream bytes = new BytesInputStream(INPUT_DATA, data);
            STypeInputStream input = new STypeInputStream(bytes);
           
View Full Code Here

          aggregates.add(tuple.getDouble(0));
          aggregates.add(tuple.getDouble(1));
      }
      catch(NumberFormatException exc)
      {
        throw new InvalidInputValueException(INPUT_AGGREGATES, Double.class, exc);
      }
      if(tuples.nextValue() != null)
        throw new ActivityUserException(new AggregatesListIncorrectException());
      return aggregates;
  }
View Full Code Here

    {
        return ((Number)block).intValue();
    }
    else
    {
        throw new InvalidInputValueException(
                INPUT_KEY_INDEX, Number.class, block.getClass());
    }
}
View Full Code Here

            imageMatrix[y][x] = wr.getSample(x, y, 0);

        // Write image as byte[] to the output
          mOutput.write(imageMatrix);
          } else {
              throw new InvalidInputValueException(
                  "input",        
                  BufferedImage.class,    
                  block.getClass());
          }
        }
View Full Code Here

          aggregates.add(tuple.getDouble(0));
          aggregates.add(tuple.getDouble(1));
      }
      catch(NumberFormatException exc)
      {
        throw new InvalidInputValueException(INPUT_AGGREGATES, Double.class, exc);
      }
      if(tuples.nextValue() != null)
        throw new ActivityUserException(new AggregatesListIncorrectException());
      return aggregates;
  }
View Full Code Here

    {
        return (String)value;
    }
    else
    {
      throw new InvalidInputValueException(inputName, value);
    }
  }
View Full Code Here

        options = null;
      else if(column instanceof String) {
        options = ((String)column);
      }
      else
        throw new InvalidInputValueException("Options", column);
      return options;
    }
View Full Code Here

        value = null;
      else if(column instanceof String) {
        value = ((String)column);
      }
      else
        throw new InvalidInputValueException("Algorithm name", inputName);
      return value;
    }
View Full Code Here

      Number n;
      if(column != null && column instanceof Number) {
        n = ((Number)column);
      }
      else
        throw new InvalidInputValueException(inputName, column);
      return n.intValue();
    }
View Full Code Here

TOP

Related Classes of uk.org.ogsadai.activity.io.InvalidInputValueException

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.