/** * Add the passed in configuration to the list of configurations for the specified type name * * @param typeName - name of type which will get an added configuration * @param config - configuration to be added */ public void addConfigurations(String typeName, final SimpleFeatureUserDataConfiguration config) { getConfigurationsForType(typeName).add(config); }
/** * Constructor<br> Creates a new SimpleFeatureUserDataConfigurationSet configured using the passed * in SimpleFeature type and adding the passed in configurations. Will be accessed using the type * name. * * @param type * @param configurations */ public SimpleFeatureUserDataConfigurationSet( final SimpleFeatureType type, final List<SimpleFeatureUserDataConfiguration> configurations) { super(); getConfigurationsForType(type.getTypeName()).addAll(configurations); configureFromType(type); }
/** * Constructor<br> Creates a new SimpleFeatureUserDataConfigurationSet configured using the passed * in SimpleFeature type. Will be accessed using the type name. * * @param type - SFT to be configured */ public SimpleFeatureUserDataConfigurationSet(final SimpleFeatureType type) { List<SimpleFeatureUserDataConfiguration> sfudc = getConfigurationsForType(type.getTypeName()); for (final SimpleFeatureUserDataConfiguration configuration : sfudc) { configuration.configureFromType(type); } }
/** * Updates the SFT with the entire list of SimpleFeatureUserDataConfiguration(s) * * @param type - SF type to be updated */ public void updateType(final SimpleFeatureType type) { List<SimpleFeatureUserDataConfiguration> sfudc = getConfigurationsForType(type.getTypeName()); // Go through list of SFUD configurations and update each one in the // passed in SF type for (final SimpleFeatureUserDataConfiguration configuration : sfudc) { configuration.updateType(type); } }
/** * Updates the entire list of SimpleFeatureUserDataConfiguration(s) with information from the * passed in SF type * * @param type - SF type to be updated */ public void configureFromType(final SimpleFeatureType type) { List<SimpleFeatureUserDataConfiguration> sfudc = getConfigurationsForType(type.getTypeName()); // Go through list of SFUD configurations and update each one with // information from the // passed in SF type for (final SimpleFeatureUserDataConfiguration configuration : sfudc) { configuration.configureFromType(type); } }