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.GenericName
The name of the feature type for which thisNamedFeatureType
is a placeholder.(package private) FeatureType
The feature type to use instead of theNamedFeatureType
.private static final long
For 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.GenericName
getName()
Returns the name of this feature.getProperties
(boolean includeSuperTypes) Returns an empty set since this feature has no declared property yet.boolean
This 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 thisNamedFeatureType
is 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 sameNamedFeatureType
instance 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:
getName
in interfaceFeatureType
-
getProperties
Returns an empty set since this feature has no declared property yet.- Specified by:
getProperties
in interfaceFeatureType
-
isAssignableFrom
This feature type is considered independent of all other feature types except itself.- Specified by:
isAssignableFrom
in interfaceFeatureType
-
toString
Returns a string representation of this feature type.
-