Package org.geotools.util

Examples of org.geotools.util.Converter


        }
       
        public Object convertToObject(String value, Locale locale) {
            for ( ConverterFactory factory : factories ) {
                try {
                    Converter converter = factory.createConverter( String.class, target, null );
                    if ( converter != null ) {
                        Object converted = converter.convert( value, target );
                        if ( converted != null ) {
                            return converted;
                        }
                    }
                }
View Full Code Here


        public String convertToString(Object value, Locale locale) {
            Set<ConverterFactory> rconverters =
                (Set<ConverterFactory>) Converters.getConverterFactories( target, String.class );
            for ( ConverterFactory cf : rconverters ) {
                try {
                    Converter converter = cf.createConverter(value.getClass(), String.class,null);
                    if ( converter == null ) {
                        continue;
                    }
                   
                    String converted = converter.convert(value, String.class);
                    if ( converted != null ) {
                        return converted;
                    }
                }
                catch (Exception e) {
View Full Code Here

TOP

Related Classes of org.geotools.util.Converter

Copyright © 2018 www.massapicom. 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.