Class CallsignUtils

java.lang.Object
uk.m0nom.adifproc.callsign.CallsignUtils

public class CallsignUtils extends Object
Utilities to deal with callsigns
  • Field Details

  • Constructor Details

    • CallsignUtils

      public CallsignUtils()
  • Method Details

    • doesCallsignHaveNonStandardSuffix

      public static boolean doesCallsignHaveNonStandardSuffix(String callsign)
    • swapSuffixToPrefix

      public static String swapSuffixToPrefix(String callsign)
    • getUkCallsignVariants

      public static List<Callsign> getUkCallsignVariants(String callsign)
    • getCallsignVariants

      public static List<Callsign> getCallsignVariants(String callsign)
      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

      public static boolean containsCallsign(List<Callsign> variants, String callsign)
    • stripSuffix

      public static String stripSuffix(String callsign)
    • stripNonStandardSuffix

      public static String stripNonStandardSuffix(String callsign)
    • getSuffix

      public static CallsignSuffix getSuffix(String callsign)
    • isAbroad

      public static boolean isAbroad(String callsign)
    • stripCountryPrefix

      public static String stripCountryPrefix(String callsign)