Examples of ValueConverter


Examples of org.pentaho.reporting.engine.classic.core.util.beans.ValueConverter

          }
          style.setStyleProperty(key, null);
        }
        else
        {
          final ValueConverter valueConverter = ConverterRegistry.getInstance().getValueConverter(key.getValueType());
          if (valueConverter != null)
          {
            // try to convert it ..
            final Object o = ConverterRegistry.toPropertyValue(String.valueOf(value), key.getValueType());
            style.setStyleProperty(key, o);
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.util.beans.ValueConverter

                propertyEditor.setAsText(String.valueOf(value));
                e.setAttribute(namespace, name, propertyEditor.getValue());
              }
              else
              {
                final ValueConverter valueConverter = instance.getValueConverter(type);
                if (type.isAssignableFrom(String.class))
                {
                  // the attribute would allow raw-string values, so copy the element ..
                  e.setAttribute(namespace, name, value);
                }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.util.beans.ValueConverter

        if (propertyEditor != null) {
          propertyEditor.setAsText(attributeValue);
          element.setAttribute(namespace, name, propertyEditor.getValue());
        } else {
          final ConverterRegistry instance = ConverterRegistry.getInstance();
          final ValueConverter valueConverter = instance.getValueConverter(type);
          if (valueConverter != null) {
            final Object o = ConverterRegistry.toPropertyValue(attributeValue, type);
            element.setAttribute(namespace, name, o);
          } else if (String.class.isAssignableFrom(type)) {
            // the attribute would allow raw-string values, so copy the element ..
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.util.beans.ValueConverter

      // This way, a mandatory parameter will not continue in case of eval-errors.
      return null;
    }
    else
    {
      final ValueConverter valueConverter = ConverterRegistry.getInstance().getValueConverter(entry.getValueType());
      if (valueConverter != null)
      {
        // try to convert it; if this conversion fails we resort to String.valueOf,
        // but it will take care of converting dates and number subtypes correctly  ..
        String textValue;
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.