public class SimpleFeatureUserDataConfigurationSet extends Object implements Serializable, Persistable
Modifier and Type | Field and Description |
---|---|
static String |
SIMPLE_FEATURE_CONFIG_FILE_PROP |
Constructor and Description |
---|
SimpleFeatureUserDataConfigurationSet()
Default Constructor
|
SimpleFeatureUserDataConfigurationSet(org.opengis.feature.simple.SimpleFeatureType type)
Constructor
Creates a new SimpleFeatureUserDataConfigurationSet configured using the passed in SimpleFeature type. |
SimpleFeatureUserDataConfigurationSet(org.opengis.feature.simple.SimpleFeatureType type,
List<SimpleFeatureUserDataConfiguration> configurations)
Constructor
Creates a new SimpleFeatureUserDataConfigurationSet configured using the passed in SimpleFeature type and adding the passed in configurations. |
Modifier and Type | Method and Description |
---|---|
void |
addConfigurations(String typeName,
SimpleFeatureUserDataConfiguration config)
Add the passed in configuration to the list of configurations for the specified type name
|
void |
configureFromType(org.opengis.feature.simple.SimpleFeatureType type)
Updates the entire list of SimpleFeatureUserDataConfiguration(s) with information from the
passed in SF type
|
static org.opengis.feature.simple.SimpleFeatureType |
configureType(org.opengis.feature.simple.SimpleFeatureType type)
Method that reads user data configuration information from
"SIMPLE_FEATURE_CONFIG_FILE" and updates the passed in SFT.
|
void |
fromBinary(byte[] bytes)
Convert a stream of binary bytes to fields and data within an object.
|
Map<String,List<SimpleFeatureUserDataConfiguration>> |
getConfigurations() |
List<SimpleFeatureUserDataConfiguration> |
getConfigurationsForType(String typeName)
Gets a List of all the SimpleFeatureUserDataConfigurations for the SFT specified by the
'typeName' string
|
byte[] |
toBinary()
Convert fields and data within an object to binary form for transmission or storage.
|
void |
updateType(org.opengis.feature.simple.SimpleFeatureType type)
Updates the SFT with the entire list of SimpleFeatureUserDataConfiguration(s)
|
public static final String SIMPLE_FEATURE_CONFIG_FILE_PROP
public SimpleFeatureUserDataConfigurationSet()
public SimpleFeatureUserDataConfigurationSet(org.opengis.feature.simple.SimpleFeatureType type)
type
- - SFT to be configuredpublic SimpleFeatureUserDataConfigurationSet(org.opengis.feature.simple.SimpleFeatureType type, List<SimpleFeatureUserDataConfiguration> configurations)
type
- configurations
- public Map<String,List<SimpleFeatureUserDataConfiguration>> getConfigurations()
public List<SimpleFeatureUserDataConfiguration> getConfigurationsForType(String typeName)
typeName
- - SFT configuration desiredpublic void addConfigurations(String typeName, SimpleFeatureUserDataConfiguration config)
typeName
- - name of type which will get an added configurationconfig
- - configuration to be addedpublic void configureFromType(org.opengis.feature.simple.SimpleFeatureType type)
type
- - SF type to be updatedpublic void updateType(org.opengis.feature.simple.SimpleFeatureType type)
type
- - SF type to be updatedpublic static org.opengis.feature.simple.SimpleFeatureType configureType(org.opengis.feature.simple.SimpleFeatureType type)
type
- - SFT to be updatedpublic byte[] toBinary()
Persistable
toBinary
in interface Persistable
public void fromBinary(byte[] bytes)
Persistable
fromBinary
in interface Persistable
Copyright © 2013–2022. All rights reserved.