Examples of Value


Examples of org.newdawn.slick.particles.ConfigurableEmitter.Value

  public void valueUpdated(ValuePanel source) {
    if (emitter == null) {
      return;
    }
   
    Value value = (Value) controlToData.get(source);
    if (value != null) {
      if( value instanceof SimpleValue)
        ((SimpleValue)value).setValue( source.getValue());
      else if( value instanceof RandomValue )
        ((RandomValue)value).setValue( source.getValue());
View Full Code Here

Examples of org.nlpcn.commons.lang.tire.domain.Value

      while ((temp = reader.readLine()) != null) {
        strs = temp.trim().split("\t");
        if (strs.length != 2) {
          throw new RuntimeException("error arg by init " + dicName + "\t" + strs.length);
        }
        Library.insertWord(forest, new Value(strs[1], strs[0]));
      }
      return forest;
    } catch (UnsupportedEncodingException e) {
      e.printStackTrace();
    } catch (IOException e) {
View Full Code Here

Examples of org.objectweb.asm.tree.analysis.Value

    Frame[] frames = a.getFrames();
    AbstractInsnNode[] insns = mn.instructions.toArray();
    for (int i = 0; i < insns.length; ++i) {
      AbstractInsnNode insn = insns[i];
      if (frames[i] != null) {
        Value v = getTarget(insn, frames[i]);
        if (v == IsNullInterpreter.NULL
            || v == IsNullInterpreter.MAYBENULL) {
          result.add(insn);
        }
      }
View Full Code Here

Examples of org.ofbiz.sql.Value

        } else if (value instanceof FunctionCall) {
            FunctionCall fc = (FunctionCall) value;
            String name = fc.getName().toLowerCase();
            Iterator<Value> it = fc.iterator();
            if (it.hasNext()) {
                Value firstValue = it.next();
                if (!it.hasNext()) {
                    if (firstValue instanceof FieldValue) {
                        addFieldDef(dve, groupBy, alias, (FieldValue) firstValue, name);
                        return;
                    }
View Full Code Here

Examples of org.openiaml.model.model.Value

  public Value generatedValue(GeneratesElements by, ContainsValues container) throws InferenceException {
    return generatedValue(by, container, ModelPackage.eINSTANCE.getContainsValues_Values() );
  }
 
  public Value generatedValue(GeneratesElements by, ContainsValues container, EReference reference) throws InferenceException {
    Value fieldValue = (Value) createElement( container, ModelPackage.eINSTANCE.getValue(), reference );
    setGeneratedBy(fieldValue, by);
    return fieldValue;
  }
View Full Code Here

Examples of org.openrdf.model.Value

      assertTrue(con.size() > 0);
      TupleQuery qry = con.prepareTupleQuery(SPARQL, query);
      TupleResult result = qry.evaluate();
      try {
        while (result.hasNext()) {
          Value value = result.next().getValue(name);
          if (value == null) {
            labels.add(null);
          } else {
            labels.add(value.stringValue());
          }
        }
      }
      finally {
        result.close();
View Full Code Here

Examples of org.overturetool.vdmj.values.Value

  public static ValueInfo digForVariable(List<String> varName,
      NameValuePairList list) throws RemoteSimulationException,
      ValueException
  {
    Value value = null;
    if (list.size() > 0)
    {
      String namePart = varName.get(0);
      for (NameValuePair p : list)
      {
View Full Code Here

Examples of org.pdf4j.saxon.value.Value

        operand0 = visitor.typeCheck(operand0, contextItemType);
        operand1 = visitor.typeCheck(operand1, contextItemType);
        // if both operands are known, pre-evaluate the expression
        try {
            if ((operand0 instanceof Literal) && (operand1 instanceof Literal)) {
                Value v = Value.asValue(evaluateItem(visitor.getStaticContext().makeEarlyEvaluationContext()));
                return Literal.makeLiteral(v);
            }
        } catch (XPathException err) {
            // if early evaluation fails, suppress the error: the value might
            // not be needed at run-time
View Full Code Here

Examples of org.polyglotted.xpathstax.data.Value

    public void testParse() {
        XPathStaxParser parser = new XPathStaxParser();
        parser.addHandler(new XPathRequest("/catalog/book[@id='bk101']/price"), new NodeHandler() {
            @Override
            public void processNode(XmlNode xmlNode) {
                Value count = xmlNode.getText();
                assertEquals(44.95, count.asDouble(), 0.001);            }

            @Override
            public void elementStart(String elementName) {
                assertEquals("price", elementName);
            }
View Full Code Here

Examples of org.rhq.modules.plugins.jbossas7.ModuleOptionsComponent.Value

                assert false;
            }

            //populate the Value component complete with module Options.
            List<Value> moduleTypeValue = populateSecurityDomainModuleOptions(result, loadModuleOptionType(attribute));
            Value moduleOptionType = moduleTypeValue.get(0);
            //Ex. retrieve the acl-modules component and assert values.
            //always test 'code'
            assert moduleOptionType.getCode().equals(code) : "Module Option 'code' value is not correct. Expected '"
                + code + "' but was '" + moduleOptionType.getCode() + "'";
            if (attribute.equals(ModuleOptionType.Mapping.getAttribute())) {
                assert moduleOptionType.getType().equals(type) : "Mapping Module 'type' value is not correct. Expected '"
                    + type + "' but was '" + moduleOptionType.getType() + "'";
            } else if (!attribute.equals(ModuleOptionType.Audit.getAttribute())) {//Audit has no second parameter
                assert moduleOptionType.getFlag().equals(flag) : "Provider Module 'flag' value is not correct. Expected '"
                    + flag + "' but was '" + moduleOptionType.getFlag() + "'";
            }

            //Retrieve Module Options and test
            //Ex. Module Options  for (Acl Modules - Profile)
            Resource moduleOptionsResource = getModuleOptionsResource(moduleOptionsTypeResource, attribute);
            //assert non-zero id returned
            assert moduleOptionsResource.getId() != 0 : "The resource was not properly initialized. Expected id != 0";
            //fetch configuration for module options
            //Now request the resource complete with resource config
            Configuration loadedOptionsConfiguration = testConfigurationManager
                .loadResourceConfiguration(moduleOptionsResource.getId());
            for (String key : loadedOptionsConfiguration.getAllProperties().keySet()) {
                //retrieve the open map of Module Options
                PropertyMap map = ((PropertyMap) loadedOptionsConfiguration.getAllProperties().get(key));
                LinkedHashMap<String, Object> options = moduleOptionType.getOptions();
                for (String optionKey : map.getMap().keySet()) {
                    PropertySimple property = (PropertySimple) map.getMap().get(optionKey);
                    //test the key
                    assert options.containsKey(optionKey) : "Unable to find expected option key '" + optionKey
                        + "'. Check hierarchy.";
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.