Package org.structr.core.converter

Examples of org.structr.core.converter.PropertyConverter.convert()


      final PropertyKey key                  = keys.get(i);
      final PropertyConverter inputConverter = key.inputConverter(securityContext);

      if (inputConverter != null) {

        key.setProperty(securityContext, obj, inputConverter.convert(values[i]));

      } else {

        key.setProperty(securityContext, obj, values[i]);
      }
View Full Code Here


        for (String part : requestParameter.split("[,;]+")) {
          sources.add(part);
        }
      }

      return (List<S>)inputConverter.convert(sources);
    }

    return null;
  }
View Full Code Here

      PropertyConverter converter = key.inputConverter(securityContext);
      if (converter != null) {
       
        try {
          Object convertedValue = converter.convert(value);
          destination.setProperty(key, convertedValue);
         
        } catch(FrameworkException fex) {
         
          logger.log(Level.WARNING, "Unable to convert grouped property {0} on type {1}: {2}", new Object[] {
View Full Code Here

      PropertyConverter inputConverter = propertyKey.inputConverter(securityContext);
      if (inputConverter != null) {

        for (String part : requestParameter.split("[,;]+")) {

          list.add((T)inputConverter.convert(part));
        }

      } else {

        for (String part : requestParameter.split("[,;]+")) {
View Full Code Here

        // transform search values using input convert of notion property
        for (T searchValue : searchValues) {

          if (inputConverter != null) {

            transformedValues.add(inputConverter.convert(searchValue));
          } else {

            transformedValues.add(searchValue);
          }
        }
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.