Package org.geoserver.importer.transform

Examples of org.geoserver.importer.transform.NumberFormatTransform


                                    dateFormat = null;
                                }
                                item.setModelObject(new DateFormatTransform(field, dateFormat));
                            }
                            else if (Number.class.isAssignableFrom(type)) {
                                item.setModelObject(new NumberFormatTransform(field, type));
                            }
                           
                            target.addComponent(remapContainer);
                        }
                    }.setDefaultFormProcessing(false));
View Full Code Here


        assertEquals(1, context.getTasks().size());
       
        context.setTargetStore(store);

        ImportTask task = context.getTasks().get(0);
        task.getTransform().add(new NumberFormatTransform("cat", Integer.class));
        importer.run(context);

        assertEquals(ImportContext.State.COMPLETE, context.getState());

        FeatureTypeInfo ft = cat.getFeatureTypeByDataStore(store, "restricted");
View Full Code Here

TOP

Related Classes of org.geoserver.importer.transform.NumberFormatTransform

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.