Package uk.m0nom.adifproc.callsign
Class CallsignUtils
java.lang.Object
uk.m0nom.adifproc.callsign.CallsignUtils
Utilities to deal with callsigns
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancontainsCallsign(List<Callsign> variants, String callsign) static booleandoesCallsignHaveNonStandardSuffix(String callsign) getCallsignVariants(String callsign) Determine all the variants that could possibly be the base callsign for the callsign supplied.static CallsignSuffixgetUkCallsignVariants(String callsign) static booleanstatic StringstripCountryPrefix(String callsign) static StringstripNonStandardSuffix(String callsign) static StringstripSuffix(String callsign) static StringswapSuffixToPrefix(String callsign)
-
Field Details
-
SUFFIXES
-
-
Constructor Details
-
CallsignUtils
public CallsignUtils()
-
-
Method Details
-
doesCallsignHaveNonStandardSuffix
-
swapSuffixToPrefix
-
getUkCallsignVariants
-
getCallsignVariants
Determine all the variants that could possibly be the base callsign for the callsign supplied. So this could be a /A, it could be an English operator working in Wales, it could be a Swiss operator activating a summit in Iceland. The list is ordered, so the 'best guess' callsigns are the top of the list, going back to the fixed station data for the operator in their own country as the worst guess.- Parameters:
callsign- to check- Returns:
- variants
-
containsCallsign
-
stripSuffix
-
stripNonStandardSuffix
-
getSuffix
-
isAbroad
-
stripCountryPrefix
-