Package com.luciad.format.s57
Class TLcdS57AttributeClassDescriptionMap
java.lang.Object
com.luciad.format.s57.TLcdS57AttributeClassDescriptionMap
- All Implemented Interfaces:
ILcdS57AttributeClassDescriptionMap
public class TLcdS57AttributeClassDescriptionMap
extends Object
implements ILcdS57AttributeClassDescriptionMap
Default implementation of
ILcdS57AttributeClassDescriptionMap, retrieving its
contents
from a ResourceBundle.
The resource bundle should be structured as follows:
ACRONYM.name=Attribute class name ACRONYM.value.1.name=Name for attribute value '1' ACRONYM.value.2.name=Name for attribute value '2' ...
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a newTLcdS57AttributeClassDescriptionMap, initialized with the given resource bundle. -
Method Summary
Modifier and TypeMethodDescriptionReturns a textual description for the attribute specified by the given acronym, ornullif no description is available for the specified atttribute.getValueName(String aAcronym, Object aValue) Returns a textual description for the attribute value, specified by the given (attribute acronym, attribute value) combination, ornullif no description is available for the specified atttribute value.
-
Constructor Details
-
TLcdS57AttributeClassDescriptionMap
Creates a newTLcdS57AttributeClassDescriptionMap, initialized with the given resource bundle.- Parameters:
aSource- the name of the resource bundle, containing textual descriptions of attributes and their values.- Throws:
NullPointerException- ifaSourceisnullMissingResourceException- if no resource bundle for the specified base name can be found
-
-
Method Details
-
getName
Description copied from interface:ILcdS57AttributeClassDescriptionMapReturns a textual description for the attribute specified by the given acronym, ornullif no description is available for the specified atttribute.- Specified by:
getNamein interfaceILcdS57AttributeClassDescriptionMap- Parameters:
aAcronym- the six-digit acronym identifying the attribute.- Returns:
- a textual description for the specified attribute.
-
getValueName
Description copied from interface:ILcdS57AttributeClassDescriptionMapReturns a textual description for the attribute value, specified by the given (attribute acronym, attribute value) combination, ornullif no description is available for the specified atttribute value.- Specified by:
getValueNamein interfaceILcdS57AttributeClassDescriptionMap- Parameters:
aAcronym- the six-digit acronym identifying the attribute.aValue- the value of the attribute.- Returns:
- a textual description for the specified attribute value.
-