Class TLcdAliasNames

java.lang.Object
com.luciad.util.TLcdAliasNames

public class TLcdAliasNames extends Object
This class provides a set of methods for creating, editing, and retrieving information from a list of names with associated aliases.
  • Constructor Details

    • TLcdAliasNames

      public TLcdAliasNames()
      Creates a new empty TLcdAliasNames.
    • TLcdAliasNames

      public TLcdAliasNames(String[] aNames, String[][] aAliasNames)
      Creates a new TLcdAliasNames with the given names and aliases.
      Parameters:
      aNames - the list of names.
      aAliasNames - the corresponding list of aliases. The length of aAliasNames must be the same as the length of aNames, but the number of aliases may vary.
  • Method Details

    • getCount

      public int getCount()
      Returns:
      the number of defined names.
    • getNames

      public String[] getNames()
      Returns:
      the list of defined names.
    • setNames

      public void setNames(String[] aNames)
      Sets the list of names.
    • getAliasNames

      public String[][] getAliasNames()
      Returns:
      the list of alias names.
    • setAliasNames

      public void setAliasNames(String[][] aAliasNames)
      Sets the list of alias names.
    • findName

      public String findName(int aIndex)
      Finds the name at the given index in the list of names.
      Parameters:
      aIndex - the valid index in the list of names.
    • findID

      public int findID(String aName)
      Finds the index in the list of names for which the name or an alias matches with a given name. The case is ignored in the comparisons.
      Parameters:
      aName - the name to look up.
      Returns:
      the index of the name, or -1 if there is no matching name or alias.