/** * 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); } }