|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FeatureType
This interface provides all the information that describes the structure of a type of feature, methods for managing it and also offers a variety of utility methods for simplicity's sake.
The relevant information that compounds a FeatureType includes:
FeatureAttributeDescriptor
(s)
FeatureRule
(s)
Methods for management include:
Utility methods include:
Method Summary | |
---|---|
boolean |
allowAutomaticValues()
Incicates if attibutes with automatic values are allowed in the source |
Object |
get(int index)
Returns an attribute descriptor given its index |
Object |
get(String name)
Returns an attribute descriptor given its name. |
FeatureAttributeDescriptor |
getAttributeDescriptor(int index)
Returns a FeatureAttributeDescriptor given the attribute index. |
FeatureAttributeDescriptor |
getAttributeDescriptor(String name)
Returns a FeatureAttributeDescriptor given the attribute name. |
FeatureAttributeDescriptor[] |
getAttributeDescriptors()
Returns an Array of the FeatureAttributeDescriptor |
FeatureType |
getCopy()
Returns a new copy of this FeatureType |
FeatureAttributeDescriptor |
getDefaultGeometryAttribute()
Returns the default geometry FeatureAttributeDescriptor. |
int |
getDefaultGeometryAttributeIndex()
Returns the index of the attribute that will be used as default geometry attribute. |
String |
getDefaultGeometryAttributeName()
Returns the name of the attribute that will be used as default geometry attribute for those processes that require a geometry (for instance rendering). |
org.cresques.cts.IProjection |
getDefaultSRS()
Returns the SRS in which the default geometry attribute is expressed. |
FeatureAttributeDescriptor |
getDefaultTimeAttribute()
Returns the default time FeatureAttributeDescriptor. |
EditableFeatureType |
getEditable()
Returns an editable instance of this FeatureType. |
String |
getId()
Returns this FeatureType identifier. |
int |
getIndex(String name)
Given the name of an attribute, this method returns its position in this FeatureType. |
FeatureAttributeDescriptor[] |
getPrimaryKey()
Returns an Array of the FeatureAttributeDescriptor that compounds the primary key |
FeatureRules |
getRules()
Returns a FeatureRules containing
all rules applicable to features of this type. |
List |
getSRSs()
Returns a list with the SRSs in which this FeatureType geometries are expressed. |
boolean |
hasEvaluators()
Indicates whether this FeatureType has any assigned Evaluator (s). |
boolean |
hasOID()
Indicates whether Feature (s) of this FeatureType have an OID defined. |
Iterator |
iterator()
Returns an iterator over this FeatureType's attributes. |
int |
size()
Returns this FeatureType size. |
Methods inherited from interface org.gvsig.tools.dynobject.DynClass |
---|
addDynMethod, getDeclaredDynMethod, getDeclaredDynMethods, getDynMethod, getDynMethod, getDynMethods, getSuperDynClasses, removeDynMethod |
Method Detail |
---|
FeatureType getCopy()
FeatureRules getRules()
FeatureRules
containing
all rules applicable to features of this type.
FeatureRules
containing all rules
applicable to features of this type.EditableFeatureType getEditable()
EditableFeatureType
int getIndex(String name)
name
- of the attribute
Object get(String name)
name
- of the attribute
FeatureAttributeDescriptor
.Object get(int index)
index
- of the attribute
FeatureAttributeDescriptor
FeatureAttributeDescriptor getAttributeDescriptor(String name)
FeatureAttributeDescriptor
given the attribute name.
name
- of the attribute
FeatureAttributeDescriptor
FeatureAttributeDescriptor getAttributeDescriptor(int index)
FeatureAttributeDescriptor
given the attribute index.
index
- of the attribute
FeatureAttributeDescriptor
Iterator iterator()
FeatureAttributeDescriptor
.
FeatureAttributeDescriptor
s.int size()
String getId()
String getDefaultGeometryAttributeName()
int getDefaultGeometryAttributeIndex()
List getSRSs()
Geometry
.
org.cresques.cts.IProjection getDefaultSRS()
boolean hasEvaluators()
Evaluator
(s).
Evaluators are used to obtain the values for calculated
attributes.
Evaluator
(s).boolean hasOID()
Feature
(s) of this FeatureType have an OID defined.
An OID is the Feature unique identifier.
Some stores provide their own OIDs which are always unique
(such as Postgre) while others don't support this concept and
then it is the library who creates runtime ad-hoc OIDs as
it see fits, but then integrity of this OIDs among different
work sessions cannot be guaranteed (this is the case for shape
files).
boolean allowAutomaticValues()
FeatureAttributeDescriptor[] getAttributeDescriptors()
FeatureAttributeDescriptor[] getPrimaryKey()
FeatureAttributeDescriptor getDefaultGeometryAttribute()
FeatureAttributeDescriptor getDefaultTimeAttribute()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |