Examples of createValue()


Examples of org.gwtnode.dev.debug.message.ValueType.createValue()

        return ret;
    }
   
    public <T> Value<T> readValue() {
        ValueType type = ValueType.getValueType(this);
        return type.createValue(this);
    }
   
    @SuppressWarnings("serial")
    public static class StreamIndexOutOfBoundsException extends IndexOutOfBoundsException {
       
View Full Code Here

Examples of org.jboss.beans.metadata.spi.builder.BeanMetaDataBuilder.createValue()

      BeanMetaDataBuilder builder = BeanMetaDataBuilder.createBuilder(beanName, IntermediateWeldBootstrapBean.class.getName());
      builder.addPropertyMetaData("bootstrapBean", builder.createInject(DeployersUtils.getBootstrapBeanName(unit), null, ControllerState.CONFIGURED, ControllerState.CREATE));
      builder.addPropertyMetaData("beanMetaDataHolder", new BeanMetaDataPropertyHolder(beanMetaData));
      builder.addPropertyMetaData("context", builder.createFromContextInject(FromContext.CONTEXT));
      builder.addPropertyMetaData("deployment", builder.createInject(DeployersUtils.getDeploymentBeanName(unit.getTopLevel())));
      builder.addPropertyMetaData("creator", builder.createValue(this));
      KernelControllerContext ctx = new AbstractKernelControllerContext(null, builder.getBeanMetaData(), null);
     
      intermediateBeans.put(beanMetaData.getName(), beanName);
     
      return ctx;
View Full Code Here

Examples of org.jboss.security.xacml.sunxacml.attr.AttributeFactory.createValue()

             * if (value != null)
               throw new ParsingException("Too many values in Attribute");
             */
            // now get the value
            try {
               value = attrFactory.createValue(node, type);
            } catch (UnknownIdentifierException uie) {
               throw new ParsingException("Unknown AttributeId", uie);
            }
            if(valueSet == null)
               valueSet = new HashSet<AttributeValue>();
View Full Code Here

Examples of org.jfree.layouting.input.style.parser.CSSValueReadHandler.createValue()

      for (int i = 0; i < entries.length; i++)
      {
        final Map.Entry entry = entries[i];
        final CSSValueReadHandler valueReadHandler = (CSSValueReadHandler) entry.getValue();
        final StyleKey key = (StyleKey) entry.getKey();
        final CSSValue value = valueReadHandler.createValue(key, unit);
        if (value != null)
        {
          map.put(key, value);
          break;
        }
View Full Code Here

Examples of org.mapfish.print.attribute.ScalebarAttribute.createValue()

    public void testGetSize() {
        // horizontal
        ScalebarAttribute attribute = new ScalebarAttribute();
        attribute.setWidth(180);
        attribute.setHeight(40);
        ScalebarAttributeValues params = attribute.createValue(null);
        params.labelDistance = 3;
        params.barSize = 8;
        ScaleBarRenderSettings settings = new ScaleBarRenderSettings();
        settings.setParams(params);
        settings.setDpiRatio(1.0);
View Full Code Here

Examples of org.mapfish.print.attribute.map.MapAttribute.createValue()

                if (map == null) {
                    throw new UnsupportedOperationException("Template '" + name + "' contains "
                                                            + "no map configuration.");
                }
               
                MapAttributeValues mapValues = map.createValue(template);
                json.key("map");
                json.object();
                {
                    json.key("width").value(mapValues.getMapSize().width);
                    json.key("height").value(mapValues.getMapSize().height);
View Full Code Here

Examples of org.modeshape.jcr.JcrValueFactory.createValue()

    protected LiteralValue literal( TypeSystem typeSystem,
                                    Object value ) throws ValueFormatException {
        JcrValueFactory factory = ((JcrTypeSystem)typeSystem).getValueFactory();
        Value jcrValue = null;
        if (value instanceof String) {
            jcrValue = factory.createValue((String)value);
        } else if (value instanceof Boolean) {
            jcrValue = factory.createValue(((Boolean)value).booleanValue());
        } else if (value instanceof Binary) {
            jcrValue = factory.createValue((Binary)value);
        } else if (value instanceof DateTime) {
View Full Code Here

Examples of org.opengis.parameter.GeneralParameterDescriptor.createValue()

                 * Contains sub-group - invokes 'copy' recursively.
                 */
                final GeneralParameterDescriptor descriptor;
                descriptor = copy.getDescriptor().descriptor(name);
                if (descriptor instanceof ParameterDescriptorGroup) {
                    final ParameterValueGroup groups = (ParameterValueGroup) descriptor.createValue();
                    copy((ParameterValueGroup) value, groups);
                    values.groups(name).add(groups);
                    continue;
                } else {
                    throw new InvalidParameterNameException(Errors.format(
View Full Code Here

Examples of org.opengis.parameter.ParameterDescriptor.createValue()

                 * the type is not the same: JAI operations typically expect a RenderedImage
                 * source, while coverage operations typically expect a GridCoverage source.
                 * The value will be stored separatly, and the coverage framework will need
                 * to handle it itself.
                 */
                value = d.createValue();
            }
            values[i] = value;
        }
        /*
         * Checks for name clashes.
View Full Code Here

Examples of org.opengis.parameter.ParameterDescriptorGroup.createValue()

         * responsability to know about alias (e.g. OGC, EPSG, ESRI), while the user will
         * probably use the name from only one authority. With a copy, we gives a chances to
         * the provider-supplied parameters to uses its alias for understanding the user
         * parameter names.
         */
        final ParameterValueGroup copy = parameters.createValue();
        copy(values, copy);
        return copy;
    }

    /**
 
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.