/** * Returns the package name for model elements of the given version - e.g. * "ca.uhn.hl7v2.model.v24.". This method * is identical to <code>getVersionPackagePath(...)</code> except that path * separators are replaced with dots. * * @param ver HL7 version * @return package name of the version * @throws HL7Exception if the HL7 version is unknown */ public static String getVersionPackageName(String ver) throws HL7Exception { String path = DefaultModelClassFactory.getVersionPackagePath(ver); String packg = path.replace('/', '.'); packg = packg.replace('\\', '.'); return packg; }
/** * Returns the package name for model elements of the given version - e.g. * "ca.uhn.hl7v2.model.v24.". This method * is identical to <code>getVersionPackagePath(...)</code> except that path * separators are replaced with dots. * * @param ver HL7 version * @return package name of the version * @throws HL7Exception if the HL7 version is unknown */ public static String getVersionPackageName(String ver) throws HL7Exception { String path = DefaultModelClassFactory.getVersionPackagePath(ver); String packg = path.replace('/', '.'); packg = packg.replace('\\', '.'); return packg; }