Class TLcdASDIMappedString

java.lang.Object
com.luciad.format.asdi.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.
      Parameters:
      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.
      Returns:
      The String that represents the description of the object.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • stringValue

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

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

      public int hashCode()
      Overrides:
      hashCode in class Object