org.deegree.services.wfs.configuration
Interface FeatureType

All Known Implementing Classes:
FeatureType_Impl

public interface FeatureType

describes the mapping of a feature type to one or more tables of a datasource

---------------------------------------------------------------------

Version:
$Revision: 1.10 $ $Date: 2003/10/21 08:10:10 $
Author:
Andreas Poth

Field Summary
static int GEOMETRY
           
static int UNKNOWN
           
 
Method Summary
 java.lang.String[] getAlias(java.lang.String propetry)
          returns the alieas names of the datastore fields assigned to a property
 java.lang.String getCRS()
          returns the name of the coordinated reference system the geo spatial data are stored.
 java.lang.String[] getDatastoreField(java.lang.String property)
          returns the names of the datastore fields a property of the feature type will be mapped to
 int getDatastoreFieldType(java.lang.String datastoreField)
          returns the type of a named datastore fields The types are encoded like defined at java.sql.types
 java.lang.String getInternalCRS()
          returns the name of the coordinated reference system as it is used within the data source.
 java.util.HashMap getMappings()
          returns all mappings with property names as keys
 MasterTable getMasterTable()
          returns the description of the datastores master table
 java.lang.String getName()
          returns the name of the feature type
 OutputFormat[] getOutputFormat()
          returns an array of objects that describes the output formatting for the feature type. at least one
 OutputFormat getOutputFormat(java.lang.String name)
          returns a named output format. if no output format with the submitted name is known null will be returned
 TableDescription[] getPath(java.lang.String property)
          returns the list (in correct order) of tables that are used to reach the submitted property
 java.lang.String getProperty(java.lang.String datastoreField)
          returns the names of the property a datastore field will be mapped to
 java.lang.String getPropertyFromAlias(java.lang.String alias)
          returns the names of the property a datastore field (alias) will be mapped to
 int getPropertyType(java.lang.String property)
          returns the type of the property a datastore field will be mapped to
 java.lang.String getReferencedBy(java.lang.String name)
          returns the name of the table where the submitted table (name) is referenced by.
 RelatedTable[] getRelatedTables()
          returns a description of all tables that are related direct or indirect to the master table. if no related tables are defined the method returns a zero length array
 TableDescription getTableByName(java.lang.String name)
          returns a description object for the table identified by the submitted name.
 boolean isPropertyKnown(java.lang.String property)
          Checks if a Property (XPath-expression or mapping) is known to the datastore.
 

Field Detail

GEOMETRY

public static final int GEOMETRY
See Also:
Constant Field Values

UNKNOWN

public static final int UNKNOWN
See Also:
Constant Field Values
Method Detail

getName

public java.lang.String getName()
returns the name of the feature type


getOutputFormat

public OutputFormat[] getOutputFormat()
returns an array of objects that describes the output formatting for the feature type. at least one


getOutputFormat

public OutputFormat getOutputFormat(java.lang.String name)
returns a named output format. if no output format with the submitted name is known null will be returned


getMappings

public java.util.HashMap getMappings()
returns all mappings with property names as keys


getDatastoreField

public java.lang.String[] getDatastoreField(java.lang.String property)
returns the names of the datastore fields a property of the feature type will be mapped to


getAlias

public java.lang.String[] getAlias(java.lang.String propetry)
returns the alieas names of the datastore fields assigned to a property


getPropertyFromAlias

public java.lang.String getPropertyFromAlias(java.lang.String alias)
returns the names of the property a datastore field (alias) will be mapped to


getProperty

public java.lang.String getProperty(java.lang.String datastoreField)
returns the names of the property a datastore field will be mapped to


getDatastoreFieldType

public int getDatastoreFieldType(java.lang.String datastoreField)
returns the type of a named datastore fields The types are encoded like defined at java.sql.types


isPropertyKnown

public boolean isPropertyKnown(java.lang.String property)
Checks if a Property (XPath-expression or mapping) is known to the datastore. XPath expressions (e.g. "/TABLE/FIELD") are only valid, if no mappings are defined at all. Properties may be used if they are explicitly defined in the datastore configuration.

Parameters:
property - Property to be looked up
Returns:
true, if it is known, else false

getPropertyType

public int getPropertyType(java.lang.String property)
returns the type of the property a datastore field will be mapped to


getMasterTable

public MasterTable getMasterTable()
returns the description of the datastores master table


getRelatedTables

public RelatedTable[] getRelatedTables()
returns a description of all tables that are related direct or indirect to the master table. if no related tables are defined the method returns a zero length array


getReferencedBy

public java.lang.String getReferencedBy(java.lang.String name)
returns the name of the table where the submitted table (name) is referenced by. If the name of the master table is submitted, null will be returned because it isn't referenced by a related table.


getTableByName

public TableDescription getTableByName(java.lang.String name)
returns a description object for the table identified by the submitted name. if no table with the submitted can be found null will be returned.


getCRS

public java.lang.String getCRS()
returns the name of the coordinated reference system the geo spatial data are stored.


getInternalCRS

public java.lang.String getInternalCRS()
returns the name of the coordinated reference system as it is used within the data source. This code may differs from the EPSG code stored in element


getPath

public TableDescription[] getPath(java.lang.String property)
returns the list (in correct order) of tables that are used to reach the submitted property