Examples of converter()


Examples of com.opensymphony.xwork2.conversion.annotations.TypeConversion.converter()

                                        ) {
                                    mapping.put(key, createTypeConverter(tc.converter()));
                                }
                                //for keys of Maps
                                else if (tc.rule().toString().equals(ConversionRule.KEY.toString())) {
                                    Class converterClass = Thread.currentThread().getContextClassLoader().loadClass(tc.converter());
                                    if (LOG.isDebugEnabled()) {
                                        LOG.debug("Converter class: " + converterClass);
                                    }
                                    //check if the converter is a type converter if it is one
                                    //then just put it in the map as is. Otherwise
View Full Code Here

Examples of com.opensymphony.xwork2.conversion.annotations.TypeConversion.converter()

                                    }
                                    //check if the converter is a type converter if it is one
                                    //then just put it in the map as is. Otherwise
                                    //put a value in for the type converter of the class
                                    if (converterClass.isAssignableFrom(TypeConverter.class)) {
                                        mapping.put(key, createTypeConverter(tc.converter()));
                                    } else {
                                        mapping.put(key, converterClass);
                                        if (LOG.isDebugEnabled()) {
                                            LOG.debug("Object placed in mapping for key "
                                                    + key
View Full Code Here

Examples of com.opensymphony.xwork2.conversion.annotations.TypeConversion.converter()

                                    }

                                }
                                //elements(values) of maps / lists
                                else {
                                    mapping.put(key, Thread.currentThread().getContextClassLoader().loadClass(tc.converter()));
                                }
                            }
                        } catch (Exception e) {
                        }
                    }
View Full Code Here

Examples of de.dfki.util.xmlrpc.annotation.XmlRpc.converter()

        XmlRpc xmlRpcAnno = AnnotationUtils.getAnnotationForClass( apiParameterClass, XmlRpc.class );
        if( xmlRpcAnno != null )
        {
            xmlRpcType = xmlRpcAnno.type();
            convertableCls = xmlRpcAnno.concrete();
            separateConverterCls = xmlRpcAnno.converter();
           
            //usesConvertable = a concete class != parameter class does conversion
            boolean usesConvertable = !convertableCls.equals( NoParameterBoundConverter.class );
           
            //usesConverter = a seperate converter does conversion
View Full Code Here

Examples of javax.persistence.Convert.converter()

    if ( canBeConverted ) {
      // @Convert annotations take precedence
      final Convert convertAnnotation = locateConvertAnnotation( property );
      if ( convertAnnotation != null ) {
        if ( ! convertAnnotation.disableConversion() ) {
          attributeConverterDefinition = mappings.locateAttributeConverter( convertAnnotation.converter() );
        }
      }
      else {
        attributeConverterDefinition = locateAutoApplyAttributeConverter( property );
      }
View Full Code Here

Examples of net.sourceforge.stripes.validation.ValidationMetadata.converter()

                }
                if (label != null)
                    fieldInfo.append(fieldInfo.length() > 0 ? "," : "").append("label:").append(
                            JavaScriptBuilder.quote(label));
               
                typeConverterClass = data.converter();
            }

            // If we couldn't get the converter from the validation annotation
            // try to get it from the TypeConverterFactory
            if (typeConverterClass == null) {
View Full Code Here

Examples of org.codehaus.preon.annotation.BoundString.converter()

                    expr = Expressions.createInteger(context, settings.size());
                    return (Codec<T>) new FixedLengthStringCodec(
              charset, //Note that this is a Charset, not an Encoding
              expr,
              settings.match(),
              settings.converter().newInstance());
                } else {
                    return (Codec<T>) new NullTerminatedStringCodec(
              charset, //Note that this is a Charset, not an Encoding
              settings.match(),
              settings.converter().newInstance());
View Full Code Here

Examples of org.infinispan.iteration.EntryIterable.converter()

      public long getTotalSize() {
         long totalSize = 0;
         EntryIterable entryIterator = null;
         try {
            entryIterator = cache.filterEntries(AllFilter.INSTANCE);
            CloseableIterable ci = entryIterator.converter(NullConverter.INSTANCE);
            Iterator iter = ci.iterator();
            while (iter.hasNext()) {
               iter.next();
               totalSize++;
            }
View Full Code Here

Examples of org.jboss.aesh.cl.Arguments.converter()

                    ParameterizedType listType = (ParameterizedType) field.getGenericType();
                    type = (Class) listType.getActualTypeArguments()[0];
                }
                processedCommand.setArgument(
                        new ProcessedOption('\u0000',"", a.description(), "", false, a.valueSeparator(),
                                a.defaultValue(), type, field.getName(), OptionType.ARGUMENT, a.converter(),
                                a.completer(), a.validator(), null, null));
            }
        }

        return new CommandLineParserBuilder().parameter(processedCommand).generateParser();
View Full Code Here

Examples of org.jboss.aesh.cl.Arguments.converter()

                    ParameterizedType listType = (ParameterizedType) field.getGenericType();
                    type = (Class) listType.getActualTypeArguments()[0];
                }
                processedCommand.setArgument(
                        new ProcessedOption('\u0000',"", a.description(), "", false, a.valueSeparator(),
                                a.defaultValue(), type, field.getName(), OptionType.ARGUMENT, a.converter(),
                                a.completer(), a.validator(), null, null));
            }
        }

        return new CommandLineParserBuilder().parameter(processedCommand).generateParser();
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.