Examples of Check


Examples of com.sun.enterprise.tools.common.validation.data.Check

        int noOfElements = validation.sizeElement();
        Element element = null;
        Validator validator = null;
  String elementName = null;
  String beanName = null;  
        Check check = null;
        String checkName = null;

        for(int i=0; i<noOfElements; i++) {
            element = validation.getElement(i);
            elementName = utils.getName(element.getName(),
View Full Code Here

Examples of common.model.Check

        String[] vs = new String[vars.size()];
        vars.toArray(vs);
        statements.add(new Assert(PredicateHelper.singleOne(vs)));
      }
    }
    statements.add(new Check());
    return statements;
  }
View Full Code Here

Examples of common.model.Check

        String[] vs = new String[vars.size()];
        vars.toArray(vs);
        statements.add(new Assert(PredicateHelper.singleOne(vs)));
      }
    }
    statements.add(new Check());
    return statements;
  }
View Full Code Here

Examples of common.model.Check

                      sqrtranslate(i, k)))))));
        }
      }
    }

    result.add(new Check());
    return result;
  }
View Full Code Here

Examples of halfpipe.consul.model.Check

        Service service = new Service();
        service.setId("test1id");
        service.setName("test1Name");
        service.setPort(9999);
        service.setTags(Lists.newArrayList("test1tag1", "test1tag2"));
        Check check = new Check();
        check.setScript("/usr/local/bin/gtrue");
        check.setInterval(60);
        service.setCheck(check);
        client.register(service);
    }
View Full Code Here

Examples of hu.sztaki.ilab.longneck.process.block.Check

        Case c1 = new Case();
        c1.setSourceInfo(new SourceInfo("file:///dummy.xml", null, 3, 3, 0));
        far.put(c1);
       
        // Case 1 check
        Check c1check = new Check();
        c1check.setSourceInfo(new SourceInfo("file:///dummy.xml", null, 4, 4, 0));
        far.put(c1check);
       
        EqualsConstraint c1equals = new EqualsConstraint();
        c1equals.setApplyTo("a");
        c1equals.setValue("aaa");
        c1check.setConstraints(Arrays.asList(new Constraint[] { c1equals }));
       
        // Case 1 block
        Set c1set = new Set();
        c1set.setSourceInfo(new SourceInfo("file:///dummy.xml", null, 5, 5, 0));
        far.put(c1set);
        c1set.setApplyTo("b");
        c1set.setValue("case1");       
       
        Set c1set2 = new Set();
        c1set2.setSourceInfo(new SourceInfo("file:///dummy.xml", null, 6, 6, 0));
        far.put(c1set2);
        c1set2.setApplyTo("c1");
        c1set2.setValue("case1");
       
        c1.setBlocks(Arrays.asList(new Block[] { c1check, c1set, c1set2 }));
       
       
        // Case 2
        Case c2 = new Case();
        c2.setSourceInfo(new SourceInfo("file:///dummy.xml", null, 7, 7, 0));
        far.put(c2);
       
        // Case 2 check
        Check c2check = new Check();
        c2check.setSourceInfo(new SourceInfo("file:///dummy.xml", null, 8, 8, 0));
        far.put(c2check);
       
        EqualsConstraint c2equals = new EqualsConstraint();
        c2equals.setApplyTo("a");
        c2equals.setValue("bbb");
        c2check.setConstraints(Arrays.asList(new Constraint[] { c2equals }));
       
        // Case 2 block
        Set c2set = new Set();
        c2set.setSourceInfo(new SourceInfo("file:///dummy.xml", null, 9, 9, 0));
        far.put(c2set);
        c2set.setApplyTo("b");
        c2set.setValue("case2");
       
        Set c2set2 = new Set();
        c2set2.setSourceInfo(new SourceInfo("file:///dummy.xml", null, 10, 10, 0));
        far.put(c2set2);
        c2set2.setApplyTo("c2");
        c2set2.setValue("case2");
       
        c2.setBlocks(Arrays.asList(new Block[] { c2check, c2set, c2set2 }));

       
        // Case 3
        Case c3 = new Case();
        c3.setSourceInfo(new SourceInfo("file:///dummy.xml", null, 11, 11, 0));
        far.put(c1);
       
        // Case 3 check
        Check c3check = new Check();
        c3check.setSourceInfo(new SourceInfo("file:///dummy.xml", null, 12, 12, 0));
        far.put(c3check);
       
        EqualsConstraint c3equals = new EqualsConstraint();
        c3equals.setApplyTo("a");
        c3equals.setValue("ccc");
        c3check.setConstraints(Arrays.asList(new Constraint[] { c3equals }));
       
        // Case 3 block
        Set c3set = new Set();
        c3set.setSourceInfo(new SourceInfo("file:///dummy.xml", null, 13, 13, 0));
        far.put(c3set);
View Full Code Here

Examples of it.eng.spagobi.behaviouralmodel.check.bo.Check

            BIObjectParameter aBIObjectParameter = (BIObjectParameter)it.next();
            List checks = aBIObjectParameter.getParameter().getChecks();
            if (checks != null && !checks.isEmpty()) {
              Iterator checksIt = checks.iterator();
              while (checksIt.hasNext()) {
                Check check = (Check) checksIt.next();
                if (check.getValueTypeCd().equalsIgnoreCase("MANDATORY")) {
                  isMandatory = true;
                  break;
                }
              }
            }
View Full Code Here

Examples of lcmc.cluster.ui.widget.Check

        final DefaultMutableTreeNode thisNode = getNode();
        final List<String> changed = new ArrayList<String>();
        final List<String> incorrect = new ArrayList<String>();
        if (thisNode == null) {
            incorrect.add("missing node");
            return new Check(incorrect, changed);
        }

        boolean cor = false;
        for (final Host host : getBrowser().getClusterHosts()) {
            if (!definedOnHostComboBoxHash.containsKey(host.getName())) {
                continue;
            }
            final Widget hostWi = definedOnHostComboBoxHash.get(host.getName());
            final Widget wizardHostWi = definedOnHostComboBoxHash.get(WIZARD_HOST_PREFIX + host.getName());
            final Value value = hostWi.getValue();
            final VmsXml vmsXml = getBrowser().getVmsXml(host);
            final Value savedValue;
            if (vmsXml != null && vmsXml.getDomainNames().contains(getDomainName())) {
                savedValue = DEFINED_ON_HOST_TRUE;
            } else {
                savedValue = DEFINED_ON_HOST_FALSE;
            }
            hostWi.setBackground(value, savedValue, false);
            if (wizardHostWi != null) {
                wizardHostWi.setBackground(value, savedValue, false);
            }
            if (DEFINED_ON_HOST_TRUE.equals(value)) {
                cor = true; /* at least one */
            }

            if ((vmsXml == null
                 || (!getResource().isNew() && !vmsXml.getDomainNames().contains(getDomainName())))
                && DEFINED_ON_HOST_TRUE.equals(value)) {
                changed.add("host");
            } else if (vmsXml != null
                       && vmsXml.getDomainNames().contains(getDomainName())
                       && DEFINED_ON_HOST_FALSE.equals(value)) {
                changed.add("host");
            }
        }
        if (!cor) {
            for (final String key : definedOnHostComboBoxHash.keySet()) {
                definedOnHostComboBoxHash.get(key).wrongValue();
            }
            incorrect.add("no host");
        }
        @SuppressWarnings("unchecked")
        final Check check = new Check(incorrect, changed);
        check.addCheck(super.checkResourceFields(param, params));
        for (final Info info : treeMenuController.nodesToInfos(thisNode.children())) {
            final HardwareInfo hardwareInfo = (HardwareInfo) info;
            check.addCheck(hardwareInfo.checkResourceFields(null, hardwareInfo.getRealParametersFromXML(), true));
        }
        return check;
    }
View Full Code Here

Examples of net.sf.parteg.base.testsuiteexport.Check

    handleOCLExpression(in_oTransitionInstance,
        in_oCondition, oFO);
    String sExp = oFO.getStringBuffer().toString();
   
    if(!sExp.isEmpty()) {
      Check oCheck = TestsuiteexportFactory.eINSTANCE.createCheck();
      oCheck.setSimpleExp(sExp);
      m_oCurrentTestCase.getAction().add(oCheck);
    }
  }
View Full Code Here

Examples of net.sf.parteg.base.testsuiteexport.Check

   
    String sExp = oFO.getStringBuffer().toString().split(
        System.getProperty("line.separator"))[0];

    if(!sExp.isEmpty()) {
      Check oCheck = TestsuiteexportFactory.eINSTANCE.createCheck();
      oCheck.setSimpleExp(sExp);
      m_oCurrentTestCase.getAction().add(oCheck);
    }
  }
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.