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

    Constructors
    Constructor
    Description
    Creates a new TLcdS57AttributeClassDescriptionMap, initialized with the given resource bundle.
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TLcdS57AttributeClassDescriptionMap

      public TLcdS57AttributeClassDescriptionMap(String aSource)
      Creates a new TLcdS57AttributeClassDescriptionMap, initialized with the given resource bundle.
      Parameters:
      aSource - the name of the resource bundle, containing textual descriptions of attributes and their values.
      Throws:
      NullPointerException - if aSource is null
      MissingResourceException - if no resource bundle for the specified base name can be found
  • Method Details

    • getName

      public String getName(String aAcronym)
      Description copied from interface: ILcdS57AttributeClassDescriptionMap
      Returns a textual description for the attribute specified by the given acronym, or null if no description is available for the specified atttribute.
      Specified by:
      getName in interface ILcdS57AttributeClassDescriptionMap
      Parameters:
      aAcronym - the six-digit acronym identifying the attribute.
      Returns:
      a textual description for the specified attribute.
    • getValueName

      public String getValueName(String aAcronym, Object aValue)
      Description copied from interface: ILcdS57AttributeClassDescriptionMap
      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.
      Specified by:
      getValueName in interface ILcdS57AttributeClassDescriptionMap
      Parameters:
      aAcronym - the six-digit acronym identifying the attribute.
      aValue - the value of the attribute.
      Returns:
      a textual description for the specified attribute value.