public class TLcdDAFIFTNavaidRecordFilter extends Object implements ILcdDAFIFTRecordFilter
ILcdDAFIFTRecordFilter
that allows to filter
DAFIFT records on a list of Navaid keys. A Navaid key is a combination
of an identifier, a type, a country code and a key code.Constructor and Description |
---|
TLcdDAFIFTNavaidRecordFilter() |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(String[] aRecord,
String aFileName)
Tests if a given record of type
String[] passes the filter or not. |
void |
addNavaid(String aIdentifier,
String aType,
String aCountryCode,
String aKeyCode)
Add a Navaid key which needs to be accepted by this filter instance.
|
public boolean accept(String[] aRecord, String aFileName)
ILcdDAFIFTRecordFilter
String[]
passes the filter or not.
The actual test condition is specified by the implementation of this interface.accept
in interface ILcdDAFIFTRecordFilter
aRecord
- The String[] to be tested by the filter.aFileName
- The file name which contains the given record.true
if the String[]
passes the filter,
false
otherwise.public void addNavaid(String aIdentifier, String aType, String aCountryCode, String aKeyCode)
aIdentifier
- The navaid identifier of the Navaid (key).aType
- The navaid type of the Navaid (key).aCountryCode
- The navaid country code of the Navaid (key).aKeyCode
- The navaid key code of the Navaid (key).