Class NamedFeatureType

java.lang.Object
org.apache.sis.feature.NamedFeatureType
All Implemented Interfaces:
Serializable, FeatureType

final class NamedFeatureType extends Object implements FeatureType, Serializable
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

    Fields
    Modifier and Type
    Field
    Description
    private final org.opengis.util.GenericName
    The name of the feature type for which this NamedFeatureType is a placeholder.
    (package private) FeatureType
    The feature type to use instead of the NamedFeatureType.
    private static final long
    For cross-version compatibility.
  • Constructor Summary

    Constructors
    Constructor
    Description
    NamedFeatureType(org.opengis.util.GenericName name)
    Creates a new placeholder for a feature of the given name.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.opengis.util.GenericName
    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.
    Returns a string representation of this feature type.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      For cross-version compatibility.
      See Also:
    • name

      private final org.opengis.util.GenericName name
      The name of the feature type for which this NamedFeatureType is a placeholder.
    • resolved

      volatile FeatureType resolved
      The feature type to use instead of the NamedFeatureType. Initially null, then set to the "real" feature type after DefaultAssociationRole.resolve(DefaultFeatureType, Collection) has been able to create it. This information is stored in case the same NamedFeatureType instance has been used in more than one DefaultFeatureType.
  • 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 interface FeatureType
    • getProperties

      public Collection<AbstractIdentifiedType> getProperties(boolean includeSuperTypes)
      Returns an empty set since this feature has no declared property yet.
      Specified by:
      getProperties in interface FeatureType
    • isAssignableFrom

      public boolean isAssignableFrom(DefaultFeatureType type)
      This feature type is considered independent of all other feature types except itself.
      Specified by:
      isAssignableFrom in interface FeatureType
    • toString

      public String toString()
      Returns a string representation of this feature type.
      Overrides:
      toString in class Object