public abstract class AbstractFeatureTypeMapper extends Object implements FeatureTypeMapper
Modifier and Type | Field and Description |
---|---|
protected CoordinateReferenceSystem |
coordinateReferenceSystem
the coordinateReferenceSystem for the geometry
|
protected List<Definition> |
definitions
The list of
Definition object defining the mapping |
protected Map<Name,Definition> |
definitionsMapping
The mapping between an attributeName and its definition
|
protected SimpleFeatureType |
mappedFeatureType
The oracle specific featureType
|
protected String |
mappedName
The mapped typeName (UPPERCASE and less than 30 chars)
|
protected int |
maxLength |
protected Name |
originalName
The original typeName
|
protected SimpleFeatureSource |
simpleFeatureSource
The
SimpleFeatureSource available for that type |
protected SimpleFeatureType |
wrappedFeatureType
The original feature type
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractFeatureTypeMapper(SimpleFeatureType featureType,
int maxLength) |
Modifier and Type | Method and Description |
---|---|
CoordinateReferenceSystem |
getCoordinateReferenceSystem()
Get the coordinate Reference System
|
List<Definition> |
getDefinitions()
Get the definitions list
|
SimpleFeatureType |
getMappedFeatureType()
Get the remapped FeatureType
|
String |
getMappedName()
Get the remapped name
|
Name |
getName()
Get the original name
|
SimpleFeatureSource |
getSimpleFeatureSource() |
SimpleFeatureType |
getWrappedFeatureType()
Get the original FeatureType
|
String |
remap(String name)
define the mapping rule
|
protected String |
remap(String name,
int maxLength) |
protected void |
remapFeatureType()
Remap the original featureType on top of the available definitions to create the database
specific featureType
|
protected void |
remapGeometryAttribute(SimpleFeatureTypeBuilder tb,
Definition definition,
AttributeDescriptor descriptor,
AttributeType type)
Remap the original GeomtryType on top of the available definitions to create the database
specific featureType
|
void |
setSimpleFeatureSource(SimpleFeatureSource simpleFeatureSource) |
protected Name originalName
protected String mappedName
protected CoordinateReferenceSystem coordinateReferenceSystem
protected List<Definition> definitions
Definition
object defining the mappingprotected SimpleFeatureType wrappedFeatureType
protected SimpleFeatureType mappedFeatureType
protected Map<Name,Definition> definitionsMapping
protected SimpleFeatureSource simpleFeatureSource
SimpleFeatureSource
available for that typeprotected int maxLength
protected AbstractFeatureTypeMapper(SimpleFeatureType featureType, int maxLength) throws CQLException
CQLException
public Name getName()
FeatureTypeMapper
getName
in interface FeatureTypeMapper
public String getMappedName()
FeatureTypeMapper
getMappedName
in interface FeatureTypeMapper
public List<Definition> getDefinitions()
FeatureTypeMapper
getDefinitions
in interface FeatureTypeMapper
public CoordinateReferenceSystem getCoordinateReferenceSystem()
FeatureTypeMapper
getCoordinateReferenceSystem
in interface FeatureTypeMapper
public SimpleFeatureType getMappedFeatureType()
FeatureTypeMapper
getMappedFeatureType
in interface FeatureTypeMapper
public SimpleFeatureType getWrappedFeatureType()
FeatureTypeMapper
getWrappedFeatureType
in interface FeatureTypeMapper
public SimpleFeatureSource getSimpleFeatureSource()
getSimpleFeatureSource
in interface FeatureTypeMapper
public String remap(String name)
FeatureTypeMapper
remap
in interface FeatureTypeMapper
public void setSimpleFeatureSource(SimpleFeatureSource simpleFeatureSource)
protected void remapFeatureType()
protected void remapGeometryAttribute(SimpleFeatureTypeBuilder tb, Definition definition, AttributeDescriptor descriptor, AttributeType type)
Copyright © 1996–2022 Geotools. All rights reserved.