| Returns >-1 if the editor has specified a FeatureType declaration that matches the Feature
passed in as a parameter. Each inaccuracy increases the count by 1. a 0 is a perfect match,
using the featureType name and namespace. 1 would be all the attributeTypes have a name and
type and there are no extra attributes in the feature's feature type.
The matching is done as follows:
- If the object is not a feature false is returned.
- If namespace is not null then the matching is done by matching the namespace and name of
the featureType
- Otherwise the attributes used to match. Two passes are made through the attributes
declared in then extension:
- First all attributes that are declared and have names associated are processed. There
must be an exact match between the declared attribute and one of the attributeTypes in the
feature
- Second all the attributes without declared names are processed. only the type is used to
find a match and each attributeType may be matched only once
Parameters: element - true if the editor has specified a FeatureType declaration that matches the Featurepassed in as a parameter. |