Package org.apache.sis.feature
Class NamedFeatureType
java.lang.Object
org.apache.sis.feature.NamedFeatureType
- All Implemented Interfaces:
Serializable,FeatureType
A feature type identified only by its name. Instances of
NamedFeatureType shall be used only as placeholder
while building a cyclic graphs of DefaultFeatureType. Instances of NamedFeatureType will be replaced
by instances of the actual feature type when the latter become known.- Since:
- 0.5
- Version:
- 0.8
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.opengis.util.GenericNameThe name of the feature type for which thisNamedFeatureTypeis a placeholder.(package private) FeatureTypeThe feature type to use instead of theNamedFeatureType.private static final longFor cross-version compatibility. -
Constructor Summary
ConstructorsConstructorDescriptionNamedFeatureType(org.opengis.util.GenericName name) Creates a new placeholder for a feature of the given name. -
Method Summary
Modifier and TypeMethodDescriptionorg.opengis.util.GenericNamegetName()Returns the name of this feature.getProperties(boolean includeSuperTypes) Returns an empty set since this feature has no declared property yet.booleanThis feature type is considered independent of all other feature types except itself.toString()Returns a string representation of this feature type.
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDFor cross-version compatibility.- See Also:
-
name
private final org.opengis.util.GenericName nameThe name of the feature type for which thisNamedFeatureTypeis a placeholder. -
resolved
The feature type to use instead of theNamedFeatureType. Initially null, then set to the "real" feature type afterDefaultAssociationRole.resolve(DefaultFeatureType, Collection)has been able to create it. This information is stored in case the sameNamedFeatureTypeinstance has been used in more than oneDefaultFeatureType.
-
-
Constructor Details
-
NamedFeatureType
NamedFeatureType(org.opengis.util.GenericName name) Creates a new placeholder for a feature of the given name.
-
-
Method Details
-
getName
public org.opengis.util.GenericName getName()Returns the name of this feature.- Specified by:
getNamein interfaceFeatureType
-
getProperties
Returns an empty set since this feature has no declared property yet.- Specified by:
getPropertiesin interfaceFeatureType
-
isAssignableFrom
This feature type is considered independent of all other feature types except itself.- Specified by:
isAssignableFromin interfaceFeatureType
-
toString
Returns a string representation of this feature type.
-