Class FeatureRef<T extends IFeature>

Type Parameters:
T - Target Feature Type
All Implemented Interfaces:
IFeature, IXlinkReference<T>, IResource
Direct Known Subclasses:
ObservationRef, ProcedureRef

public class FeatureRef<T extends IFeature> extends CachedReference<T> implements IFeature

Wrapper class for use when an IFeature object is or can be included by reference. This enables fetching and instantiating the target object lazily.

Since:
Sep 28, 2012
  • Constructor Details

    • FeatureRef

      public FeatureRef()
    • FeatureRef

      public FeatureRef(String href)
  • Method Details

    • getUniqueIdentifier

      public String getUniqueIdentifier()
      Specified by:
      getUniqueIdentifier in interface IFeature
      Returns:
      the globally unique identifier that can be used to identify the same feature across contexts (e.g. across repositories)
    • getId

      public String getId()
      Specified by:
      getId in interface IFeature
      Returns:
      the local/internal ID of the feature (often automatically assigned by the feature repository)
    • getName

      public String getName()
      Specified by:
      getName in interface IResource
      Returns:
      The resource name
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface IResource
      Returns:
      A short description of the resource
    • getGeometry

      public AbstractGeometry getGeometry()
      Specified by:
      getGeometry in interface IFeature
      Returns:
      the geometry/location (or null if feature has no geometry)
    • getValidTime

      public TimeExtent getValidTime()
      Specified by:
      getValidTime in interface IFeature
      Returns:
      feature validity period (or null if always valid)
    • getProperties

      public Map<QName,Object> getProperties()
      Specified by:
      getProperties in interface IFeature
      Returns:
      the property list