public class TLcdS57AttributeClassDescriptionMap extends Object implements ILcdS57AttributeClassDescriptionMap
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 and Description |
---|
TLcdS57AttributeClassDescriptionMap(String aSource)
Creates a new
TLcdS57AttributeClassDescriptionMap , initialized with the given
resource
bundle. |
Modifier and Type | Method and Description |
---|---|
String |
getName(String aAcronym)
Returns a textual description for the attribute specified by the given acronym, or
null
if no description is available for the specified atttribute. |
String |
getValueName(String aAcronym,
Object aValue)
Returns a textual description for the attribute value, specified by the given
(attribute acronym, attribute value) combination, or
null
if no description is available for the specified atttribute value. |
public TLcdS57AttributeClassDescriptionMap(String aSource)
TLcdS57AttributeClassDescriptionMap
, initialized with the given
resource
bundle.aSource
- the name of the resource bundle, containing textual descriptions of attributes
and their values.NullPointerException
- if aSource
is null
MissingResourceException
- if no resource bundle for the specified base name can
be
foundpublic String getName(String aAcronym)
ILcdS57AttributeClassDescriptionMap
null
if no description is available for the specified atttribute.getName
in interface ILcdS57AttributeClassDescriptionMap
aAcronym
- the six-digit acronym identifying the attribute.public String getValueName(String aAcronym, Object aValue)
ILcdS57AttributeClassDescriptionMap
null
if no description is available for the specified atttribute value.getValueName
in interface ILcdS57AttributeClassDescriptionMap
aAcronym
- the six-digit acronym identifying the attribute.aValue
- the value of the attribute.