Examples of createValue()


Examples of com.ojn.gexf4j.core.data.Attribute.createValue()

  }
 
  @Test
  public void getAttributeValues() {
    Attribute attrib = new AttributeImpl(AttributeType.STRING, "test", AttributeClass.EDGE);
    AttributeValue av = attrib.createValue("testing");
   
    int a = e.getAttributeValues().size();
    e.getAttributeValues().add(av);
    int b = e.getAttributeValues().size();
   
View Full Code Here

Examples of com.ojn.gexf4j.core.impl.data.AttributeImpl.createValue()

  }
 
  @Test
  public void getAttributeValues() {
    Attribute attrib = new AttributeImpl(AttributeType.STRING, "test", AttributeClass.EDGE);
    AttributeValue av = attrib.createValue("testing");
   
    int a = e.getAttributeValues().size();
    e.getAttributeValues().add(av);
    int b = e.getAttributeValues().size();
   
View Full Code Here

Examples of com.orientechnologies.orient.core.index.OIndexDefinition.createValue()

       }

       final OIndexDefinition indexDefinition = index.getDefinition();
       final Object key;
       if (indexDefinition != null)
         key = indexDefinition.createValue(urlParts[3]);
       else
         key = urlParts[3];

       if (key == null)
         throw new IllegalArgumentException("Invalid key value : " + urlParts[3]);
View Full Code Here

Examples of com.sonyericsson.hudson.plugins.metadata.model.definitions.MetadataDefinition.createValue()

                    for (int i = 0; i < formDefinitions.size(); i++) {
                        String name = (String)formDefinitions.names().get(i);
                        Object definition = formDefinitions.get(name);
                        MetadataDefinition foundDefinition = TreeStructureUtil.getLeaf(definitions, name.split("_"));
                        if (foundDefinition != null) {
                            MetadataValue value = foundDefinition.createValue(definition);
                            presetValues.add(createAncestry(foundDefinition, value));
                        }
                    }
                }
            }
View Full Code Here

Examples of com.sun.msv.datatype.xsd.XSDatatype.createValue()

                    boolean v = typeObj.isValid(values[i],DummyContextProvider.theInstance);
                    boolean d;
                   
                    boolean roundTripError = false;
                   
                    Object o = typeObj.createValue(
                        values[i],DummyContextProvider.theInstance);
                   
                    try {
                        if(o!=null) {
                            // should be able to convert it back.
View Full Code Here

Examples of com.sun.xacml.attr.AttributeFactory.createValue()

    try
    {
      final String textValue = currentValue.toString();
      if(textValue == null || textValue.length() == 0)
        {return null;}
      final AttributeValue value = factory.createValue(attribute.getType(), textValue);
      for(final AttributeHandler handler : attributeHandlers)
        handler.checkUserValue(value, attribute);
      return value;
    }
    catch(final UnknownIdentifierException e)
View Full Code Here

Examples of eu.planets_project.pp.plato.model.scales.Scale.createValue()

                        // This means that I am not entitled to evaluate this measurementInfo and therefore supposed to skip it:
                        continue;
                    }
                    if (ACTION_RETAIN_FILENAME.equals(propertyURI)) {
                        // for all wrapped minimee migrators the output filename can be determined by -o <filename> or something similar 
                        Value v = scale.createValue();
                        v.setComment("obtained from PCDL descriptor");
                        v.parse("Yes");
                        results.put(measurementInfoUri, v);
                    }
                   
View Full Code Here

Examples of eu.scape_project.planning.model.scales.Scale.createValue()

            Scale scale = null;
            Value value = null;

            if (MeasureConstants.BATCHPROCESSING_SUPPORTED.equals(measureId)) {
                scale = new BooleanScale();
                value = scale.createValue();
                if (!alternative.getAction().isEmulated() && alternative.getAction().isExecutable()) {
                    // this alternative is wrapped as service and therefore
                    // provides batch support
                    value.parse("Yes");
                    value.setComment("this alternative is wrapped as service and therefore provides batch support");
View Full Code Here

Examples of hudson.model.ParameterDefinition.createValue()

                String name = e.getKey();
                ParameterDefinition pd = pdp.getParameterDefinition(name);
                if (pd==null)
                    throw new AbortException(String.format("\'%s\' is not a valid parameter. Did you mean %s?",
                            name, EditDistance.findNearest(name, pdp.getParameterDefinitionNames())));
                values.add(pd.createValue(this,e.getValue()));
            }
           
            a = new ParametersAction(values);
        }
View Full Code Here

Examples of hudson.model.SimpleParameterDefinition.createValue()

      ParametersDefinitionProperty propDefs = project.getProperty(ParametersDefinitionProperty.class);
      for (ParameterDefinition pd : propDefs.getParameterDefinitions()) {
        if (pd.getName() != null && parsedParameters.containsKey(pd.getName())) {
            if (pd instanceof SimpleParameterDefinition) {
                SimpleParameterDefinition spd = (SimpleParameterDefinition) pd;
                parameters.add(spd.createValue(parsedParameters.get(pd.getName())));
            } else {
                commandReply.append("Unsupported parameter type " + pd.getClass().getSimpleName()
                        + " for parameter " + pd.getName() + "!\n");
            }
        } else {
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.