/** * Reloads the packages. Note that this should not be performed * after and messages have been parsed or otherwise generated, * as undetermined behaviour may result. */ public static void reloadPackages() { packages.clear(); ourVersions = new ArrayList<String>(); for (Version v : Version.values()) { try { String[] versionPackages = loadPackages(v.getVersion()); if (versionPackages.length > 0) { ourVersions.add(v.getVersion()); } packages.put(v.getVersion(), versionPackages); } catch (HL7Exception e) { throw new Error("Version \"" + v.getVersion() + "\" is invalid. This is a programming error: ", e); } } }
/** * Reloads the packages. Note that this should not be performed * after and messages have been parsed or otherwise generated, * as undetermined behaviour may result. */ public static void reloadPackages() { packages.clear(); ourVersions = new ArrayList<String>(); for (Version v : Version.values()) { try { String[] versionPackages = loadPackages(v.getVersion()); if (versionPackages.length > 0) { ourVersions.add(v.getVersion()); } packages.put(v.getVersion(), versionPackages); } catch (HL7Exception e) { throw new Error("Version \"" + v.getVersion() + "\" is invalid. This is a programming error: ", e); } } }