Package com.luciad.util.iso19103
Class ALcdISO19103CodeList
java.lang.Object
com.luciad.util.iso19103.ALcdISO19103CodeList
- All Implemented Interfaces:
ILcdISO19103CodeList
Abstract implementation of a code list.
This is a utility class that uses a Vector to store the codes in a list.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addCode
(ILcdISO19103Code aCode) Adds a code with the given name.getCode
(int aIndex) Returns the code at the given index.Checks whether a code with the given name is in the list.int
Returns the number of codes in the code list.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.luciad.util.iso19103.ILcdISO19103CodeList
getName
-
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 interfaceILcdISO19103CodeList
- Returns:
- the number of codes in the code list.
-
getCode
Description copied from interface:ILcdISO19103CodeList
Returns the code at the given index.- Specified by:
getCode
in interfaceILcdISO19103CodeList
- Returns:
- the code at the given index.
- See Also:
-
getCode
Checks whether a code with the given name is in the list. The name is checked on ignoring the case.- Specified by:
getCode
in interfaceILcdISO19103CodeList
- 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
Adds a code with the given name. If a code with the given name (ignoring the case) already exists aIllegalArgumentException
is thrown.- Parameters:
aCode
- the code to add
-