Class FeaturePointsTableImpl
java.lang.Object
cz.fidentis.analyst.data.landmarks.impl.FeaturePointsTableImpl
- All Implemented Interfaces:
FeaturePointsTable
A singleton data access object providing information about standard anthropometric feature points.
-
Method Summary
Modifier and TypeMethodDescriptiongetFpCode
(int id) Returns standard code of the feature point.getFpDescription
(int id) Returns description of the feature point.getFpName
(int id) Returns name of the feature point.int
getIdFromCode
(String code) Return ID of the feature point based on a known FP code.int
getIdFromName
(String name) Return ID of the feature point based on a known FP code.getIDs()
Returns IDs of all known feature pointsstatic FeaturePointsTableImpl
Returns singleton's instance.
-
Method Details
-
getInstance
Returns singleton's instance.- Returns:
- object's instance
-
getIDs
Description copied from interface:FeaturePointsTable
Returns IDs of all known feature points- Specified by:
getIDs
in interfaceFeaturePointsTable
- Returns:
- IDs of all known feature points
-
getFpName
Description copied from interface:FeaturePointsTable
Returns name of the feature point.- Specified by:
getFpName
in interfaceFeaturePointsTable
- Parameters:
id
- ID aka type- Returns:
- the name of the feature point,
null
if the FP does not exist
-
getFpDescription
Description copied from interface:FeaturePointsTable
Returns description of the feature point.- Specified by:
getFpDescription
in interfaceFeaturePointsTable
- Parameters:
id
- ID aka type- Returns:
- description of the feature point,
null
if the FP does not exist
-
getFpCode
Description copied from interface:FeaturePointsTable
Returns standard code of the feature point.- Specified by:
getFpCode
in interfaceFeaturePointsTable
- Parameters:
id
- ID aka type- Returns:
- standard code of the feature point,
null
if the FP does not exist
-
getIdFromCode
Description copied from interface:FeaturePointsTable
Return ID of the feature point based on a known FP code.- Specified by:
getIdFromCode
in interfaceFeaturePointsTable
- Parameters:
code
- FP code- Returns:
- ID of the feature point,
-1
if FP with such code does not exist
-
getIdFromName
Description copied from interface:FeaturePointsTable
Return ID of the feature point based on a known FP code.- Specified by:
getIdFromName
in interfaceFeaturePointsTable
- Parameters:
name
- FP name- Returns:
- ID of the feature point,
-1
if FP with such code does not exist
-