Package com.luciad.util
Class TLcdAliasNames
java.lang.Object
com.luciad.util.TLcdAliasNames
This class provides a set of methods for creating, editing, and retrieving
information from a list of names with associated aliases.
-
Constructor Summary
ConstructorDescriptionCreates a new empty TLcdAliasNames.TLcdAliasNames
(String[] aNames, String[][] aAliasNames) Creates a new TLcdAliasNames with the given names and aliases. -
Method Summary
Modifier and TypeMethodDescriptionint
Finds the index in the list of names for which the name or an alias matches with a given name.findName
(int aIndex) Finds the name at the given index in the list of names.String[][]
int
getCount()
String[]
getNames()
void
setAliasNames
(String[][] aAliasNames) Sets the list of alias names.void
Sets the list of names.
-
Constructor Details
-
TLcdAliasNames
public TLcdAliasNames()Creates a new empty TLcdAliasNames. -
TLcdAliasNames
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
- Returns:
- the list of defined names.
-
setNames
Sets the list of names. -
getAliasNames
- Returns:
- the list of alias names.
-
setAliasNames
Sets the list of alias names. -
findName
Finds the name at the given index in the list of names.- Parameters:
aIndex
- the valid index in the list of names.
-
findID
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.
-