Class ALcdISO19103CodeList

java.lang.Object
com.luciad.util.iso19103.ALcdISO19103CodeList
All Implemented Interfaces:
ILcdISO19103CodeList

public abstract class ALcdISO19103CodeList extends Object implements ILcdISO19103CodeList
Abstract implementation of a code list. This is a utility class that uses a Vector to store the codes in a list.
  • Constructor Details

    • ALcdISO19103CodeList

      public ALcdISO19103CodeList()
  • Method Details

    • getCodeCount

      public int getCodeCount()
      Description copied from interface: ILcdISO19103CodeList
      Returns the number of codes in the code list.
      Specified by:
      getCodeCount in interface ILcdISO19103CodeList
      Returns:
      the number of codes in the code list.
    • getCode

      public ILcdISO19103Code getCode(int aIndex)
      Description copied from interface: ILcdISO19103CodeList
      Returns the code at the given index.
      Specified by:
      getCode in interface ILcdISO19103CodeList
      Returns:
      the code at the given index.
      See Also:
    • getCode

      public ILcdISO19103Code getCode(String aName)
      Checks whether a code with the given name is in the list. The name is checked on ignoring the case.
      Specified by:
      getCode in interface ILcdISO19103CodeList
      Parameters:
      aName - the name of the code to retrieve.
      Returns:
      the code with the given name if it is in the list, null otherwise.
    • addCode

      protected void addCode(ILcdISO19103Code aCode)
      Adds a code with the given name. If a code with the given name (ignoring the case) already exists a IllegalArgumentException is thrown.
      Parameters:
      aCode - the code to add