public class TLcdS57ObjectClassDescriptionMap extends Object implements ILcdS57ObjectClassDescriptionMap
ILcdS57ObjectClassDescriptionMap
, retrieving its contents
from a ResourceBundle
.
The resource bundle should be structured as follows:
ACRONYM.name=Object class name ...
Constructor and Description |
---|
TLcdS57ObjectClassDescriptionMap(String aSource)
Creates a new
TLcdS57ObjectClassDescriptionMap , initialized with the given
resource
bundle. |
Modifier and Type | Method and Description |
---|---|
String |
getName(String aAcronym)
Returns a textual description for the object class specified by the given acronym, or
null
if no description is available for the specified object class. |
public TLcdS57ObjectClassDescriptionMap(String aSource)
TLcdS57ObjectClassDescriptionMap
, initialized with the given
resource
bundle.aSource
- the name of the resource bundle, containing textual descriptions of object
classes.NullPointerException
- if aSource
is null
MissingResourceException
- if no resource bundle for the specified base name can
be
foundpublic String getName(String aAcronym)
ILcdS57ObjectClassDescriptionMap
null
if no description is available for the specified object class.getName
in interface ILcdS57ObjectClassDescriptionMap
aAcronym
- the six-digit acronym identifying the object class.