Examples of checkValue()


Examples of at.riemers.zero.base.model.PermissionTemplate.checkValue()

                if (permission != null) {
                    PermissionTemplate permissionTemplate = getModuleManager().getPermissionTemplate(permissionKey);
                    if (permissionTemplate != null) {
                        String value = roleForm.getValues().get(permissionKey);
                        if (permissionTemplate.isValuePermission()) {
                            if (permissionTemplate.checkValue(value)) {
                                permission.setValue(value);
                            } else {
                                if (permissionTemplate.getValueRangeMessage() != null) {
                                    view.setMessage(permissionTemplate.getValueRangeMessage());
                                    error = true;
View Full Code Here

Examples of net.sf.gluebooster.java.booster.essentials.meta.ObjectDescription.checkValue()

      throw new ParseException(ex.getLocalizedMessage()
          + "\nOptions were " + Arrays.asList(parameters) + "\n"
          + getOptionsHelp());
    }

    if (!configuration.checkValue()) {
      throw new ParseException(configuration.toString());
    }

    return configuration;
  }
View Full Code Here

Examples of net.sf.gluebooster.java.booster.essentials.meta.ObjectDescription.checkValue()

    String[] parameters = (String[]) parameterArray;
    ObjectFactory exec = getExecutor();
    Object parameter;
    if (exec instanceof Configurable) {
      ObjectDescription optionDescription = getCommandFromParameters((String[]) parameters);
      if (!optionDescription.checkValue()) {
        throw new InvalidParameterException(
            optionDescription.toString());
      }
      parameter = optionDescription;
View Full Code Here

Examples of net.sf.mzmine.parameters.parametertypes.PeakListsParameter.checkValue()

          }
        }
        if (p instanceof PeakListsParameter) {
          PeakListsParameter plp = (PeakListsParameter) p;
          plp.setValue(selectedPeakLists);
          boolean checkOK = plp.checkValue(errorMessages);
          if (!checkOK) {
            allParametersOK = false;
          }
        }
      }
View Full Code Here

Examples of net.sf.mzmine.parameters.parametertypes.RawDataFilesParameter.checkValue()

      LinkedList<String> errorMessages = new LinkedList<String>();
      for (Parameter p : moduleParameters.getParameters()) {
        if (p instanceof RawDataFilesParameter) {
          RawDataFilesParameter rdp = (RawDataFilesParameter) p;
          rdp.setValue(selectedFiles);
          boolean checkOK = rdp.checkValue(errorMessages);
          if (!checkOK) {
            allParametersOK = false;
          }
        }
        if (p instanceof PeakListsParameter) {
View Full Code Here

Examples of org.apache.empire.db.DBTableColumn.checkValue()

   
    DBRecord rec = getRecord();
    DBTableColumn col = (DBTableColumn) rec.getDBColumn(rec
        .getFieldIndex(getAttributes().get("column").toString()));
    try {
      col.checkValue(inputComponent.getValue());
    } catch (Exception e) {
      FacesContext.getCurrentInstance().addMessage(getClientId(), new FacesMessage(e.getLocalizedMessage()));
      this.setValid(false);
    }
    super.validate(context);
View Full Code Here

Examples of org.rioproject.impl.system.measurable.cpu.CPU.checkValue()

    }
    @Test
    public void createAndVerifyCPUClassWithSigar() {
        CPU cpu = new CPU(EmptyConfiguration.INSTANCE);
        cpu.start();
        cpu.checkValue();
        MeasuredResource mRes = cpu.getMeasuredResource();
        Assert.assertTrue("MeasuredResource should not be null", mRes!=null);
        Assert.assertTrue("MeasuredResource should be a CPUUtilization", mRes instanceof CpuUtilization);
        double utilization = cpu.getUtilization();
        Assert.assertTrue("Utilization should be > 0", utilization>0);
View Full Code Here

Examples of org.rioproject.impl.system.measurable.cpu.CPU.checkValue()

        CPU cpu = new CPU(EmptyConfiguration.INSTANCE);
        ThresholdValues tVals = new ThresholdValues(0.30, 0.90);
        cpu.setThresholdValues(tVals);
        SimpleThresholdListener l = new SimpleThresholdListener();
        cpu.start();
        cpu.checkValue();
        double utilization = cpu.getUtilization();
        Assert.assertTrue("Utilization should be > 0", utilization>0);
        Assert.assertTrue(l.getType()== null);
    }
View Full Code Here

Examples of org.rioproject.impl.system.measurable.cpu.CPU.checkValue()

    @Test
    public void createAndVerifyCPUClassWithSigar() {
        CPU cpu = new CPU(EmptyConfiguration.INSTANCE);
        Assert.assertTrue(SigarHelper.sigarAvailable());
        cpu.start();
        cpu.checkValue();
        MeasuredResource mRes = cpu.getMeasuredResource();
        Assert.assertTrue("MeasuredResource should not be null", mRes!=null);
        Assert.assertTrue("MeasuredResource should be a CPUUtilization", mRes instanceof CpuUtilization);
        double utilization = cpu.getUtilization();
        Assert.assertTrue("Utilization should be > 0", utilization>0);
View Full Code Here

Examples of org.rioproject.impl.system.measurable.cpu.CPU.checkValue()

        CPU cpu = new CPU(EmptyConfiguration.INSTANCE);
        ThresholdValues tVals = new ThresholdValues(0.00, 0.05);
        cpu.setThresholdValues(tVals);
        SimpleThresholdListener l = new SimpleThresholdListener();
        cpu.start();
        cpu.checkValue();
        double utilization = cpu.getUtilization();
        Assert.assertTrue("Utilization should be > 0", utilization>0);
        Assert.assertTrue(l.getType()==null);
    }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.