public class TLcdS57AttributeClassDescriptionMap extends java.lang.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(java.lang.String aSource)
Creates a new
TLcdS57AttributeClassDescriptionMap , initialized with the given
resource
bundle. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName(java.lang.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. |
java.lang.String |
getValueName(java.lang.String aAcronym,
java.lang.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(java.lang.String aSource)
TLcdS57AttributeClassDescriptionMap
, initialized with the given
resource
bundle.aSource
- the name of the resource bundle, containing textual descriptions of attributes
and their values.java.lang.NullPointerException
- if aSource
is null
java.util.MissingResourceException
- if no resource bundle for the specified base name can
be
foundpublic java.lang.String getName(java.lang.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 java.lang.String getValueName(java.lang.String aAcronym, java.lang.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.