|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FeatureAttributeType
A FeatureType aware Feature AttributeType.
While we could use a plain AttributeType to capture a Feature instance we would miss out one one important aspect: the schema.
By definition the schema of a Feature is not defined by java interface alone, this interface allows access the the assocaited FeatureType.
Suggestion: we can look at having this class extend ListFeatureType and exactly specifying how delegation to the getSchema() should occur. (the alternative is to make FeatureType extend ListAttributeType). Something should be done as they have 90% the same API.
modules/library/legacy (gt-legacy.jar)
Method Summary | |
---|---|
Object |
createDefaultValue()
Method should delegate responsibility to a FeatureFactory. |
Object |
duplicate(Object src)
Method should return getSchema().duplicate( feature ) Exampe implementation:
return getSchema().duplicate( (Feature) getValue() );
It is understood that FeatureType.duplicate
|
Class |
getBinding()
Method must return type Feature.class. |
Filter |
getRestriction()
Filter must indicate value is required to be a member of getSchema(). |
FeatureType |
getSchema()
Retrieve the schema for this FeatureType |
boolean |
isGeometry()
Deprecated. repalce with: type instanceof
GeometryAttributeType |
Method Detail |
---|
Object createDefaultValue()
createDefaultValue
in interface AttributeType
AttributeType.createDefaultValue()
Object duplicate(Object src) throws IllegalAttributeException
Exampe implementation:
return getSchema().duplicate( (Feature) getValue() );
It is understood that FeatureType.duplicate
duplicate
in interface AttributeType
src
- The Object to duplicate.
IllegalAttributeException
- If the src Object is not the correct
type.AttributeType.duplicate(java.lang.Object)
Class getBinding()
Exampe implementation:
return Feature.class;
getBinding
in interface AttributeType
AttributeType.getBinding()
FeatureType getSchema()
boolean isGeometry()
type instanceof
GeometryAttributeType
false
.
org.geotools.feature.AttributeType#isGeometry()
Filter getRestriction()
TODO: We need a Filter code snipit describing how to enforce the indicated relationship.
getRestriction
in interface AttributeType
getRestriction
in interface PrimativeAttributeType
AttributeType.getRestriction()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |