Examples of NumberFormatTransform


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

Examples of org.geoserver.importer.transform.NumberFormatTransform

        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
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.