Class TLcdASDIMappedString


public class TLcdASDIMappedString extends Object
Represents a String value with an additional description.

ASDI messages sometimes use String codes to choose from a list of possibilities, for example for ILcdASDIFlightPlanMessageFeatures.RT_FLIGHT_STATUS_SF it specifies:

  • N -> None
  • S -> Scheduled
  • L -> Controlled
  • F -> Filed
  • ...

These types of features are modeled using a TLcdASDIMappedString, so ILcdFeatured.getFeature(int) returns an object of this class. The method stringValue() returns the String value, and getValueDescription() and toString() return the description.

Please refer to ALcdASDIModelDescriptor for more information about features.

  • Constructor Details

    • TLcdASDIMappedString

      public TLcdASDIMappedString(String aValue, String aValueDescription)
      Constructs a new TLcdASDIMappedString with a String value and a String describing that value.
      aValue - The value.
      aValueDescription - The human readable description for that value.
  • Method Details

    • getValueDescription

      public String getValueDescription()
      Returns the String that represents the description of the object.
      The String that represents the description of the object.
    • toString

      public String toString()
      toString in class Object
    • stringValue

      public String stringValue()
      Returns the String value of the object.
      The String value of the object.
    • equals

      public boolean equals(Object obj)
      equals in class Object
    • hashCode

      public int hashCode()
      hashCode in class Object