|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Experiment land, these changes will be made to FeatureFactory interface unless any can think of a reason against.
This method is expected to pass on any hints provided via a Map passed to the Constructor, in the event a only a no argument constructor is found FeatureFactory will log a warning, in the Geotools 2.2 timeframe this will be upgraded to an error.
Method Summary | |
Feature |
create(FeatureType schema,
AttributeType[] type,
java.lang.Object[] value)
AttributeType typesafe Feature creations. |
Feature |
create(FeatureType flatSchema,
java.lang.Object[] values)
Convience method for FlatFeatureType for feature creation. |
Method Detail |
public Feature create(FeatureType schema, AttributeType[] type, java.lang.Object[] value)
This is option one, it works for both FeatureType and FlatFeatureType. Duplicate AttributeType are of course allowed (as long as the provided FeatureType supports this).
type
- List of AttributeType in creation ordervalue
- List of attribute value in creation order
public Feature create(FeatureType flatSchema, java.lang.Object[] values)
This is a convience method to ease the transition phase for developers making use of a FlatFeatureType.
The use of this method should be considered to be *exactly* the same as:
factory.create( flatSchema, flatSchema.getAttributeTypes(), values );
A you can see this is only valid for FlatFeature schema in which the
results of getAttributeTypes() describes all the parameters required
for creation. For most shape and database base content this is a valid
assumption.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |