Class FeaturePointsTableImpl

java.lang.Object
cz.fidentis.analyst.data.landmarks.impl.FeaturePointsTableImpl
All Implemented Interfaces:
FeaturePointsTable

public final class FeaturePointsTableImpl extends Object implements FeaturePointsTable
A singleton data access object providing information about standard anthropometric feature points.
  • Method Details

    • getInstance

      public static FeaturePointsTableImpl getInstance()
      Returns singleton's instance.
      Returns:
      object's instance
    • getIDs

      public Set<Integer> getIDs()
      Description copied from interface: FeaturePointsTable
      Returns IDs of all known feature points
      Specified by:
      getIDs in interface FeaturePointsTable
      Returns:
      IDs of all known feature points
    • getFpName

      public String getFpName(int id)
      Description copied from interface: FeaturePointsTable
      Returns name of the feature point.
      Specified by:
      getFpName in interface FeaturePointsTable
      Parameters:
      id - ID aka type
      Returns:
      the name of the feature point, null if the FP does not exist
    • getFpDescription

      public String getFpDescription(int id)
      Description copied from interface: FeaturePointsTable
      Returns description of the feature point.
      Specified by:
      getFpDescription in interface FeaturePointsTable
      Parameters:
      id - ID aka type
      Returns:
      description of the feature point, null if the FP does not exist
    • getFpCode

      public String getFpCode(int id)
      Description copied from interface: FeaturePointsTable
      Returns standard code of the feature point.
      Specified by:
      getFpCode in interface FeaturePointsTable
      Parameters:
      id - ID aka type
      Returns:
      standard code of the feature point, null if the FP does not exist
    • getIdFromCode

      public int getIdFromCode(String code)
      Description copied from interface: FeaturePointsTable
      Return ID of the feature point based on a known FP code.
      Specified by:
      getIdFromCode in interface FeaturePointsTable
      Parameters:
      code - FP code
      Returns:
      ID of the feature point, -1 if FP with such code does not exist
    • getIdFromName

      public int getIdFromName(String name)
      Description copied from interface: FeaturePointsTable
      Return ID of the feature point based on a known FP code.
      Specified by:
      getIdFromName in interface FeaturePointsTable
      Parameters:
      name - FP name
      Returns:
      ID of the feature point, -1 if FP with such code does not exist