/** * are we a valid format string for some type * @param format the format string * @return true if we're valid of some type, false otherwise */ public static boolean isFormatString(String format){ format = clean(format); for (VCFHeaderVersion hv : VCFHeaderVersion.values()) if (hv.formatString.equals(format)) return true; return false; }
/** * are we a valid format string for some type * @param format the format string * @return true if we're valid of some type, false otherwise */ public static boolean isFormatString(String format){ format = clean(format); for (VCFHeaderVersion hv : VCFHeaderVersion.values()) if (hv.formatString.equals(format)) return true; return false; }
/** * get the header version * @param version the version string * @return a VCFHeaderVersion object */ public static VCFHeaderVersion toHeaderVersion(String version) { version = clean(version); for (VCFHeaderVersion hv : VCFHeaderVersion.values()) if (hv.versionString.equals(version)) return hv; return null; }
/** * are we a valid format string for some type * @param format the format string * @return true if we're valid of some type, false otherwise */ public static boolean isFormatString(String format){ format = clean(format); for (VCFHeaderVersion hv : VCFHeaderVersion.values()) if (hv.formatString.equals(format)) return true; return false; }
/** * get the header version * @param version the version string * @return a VCFHeaderVersion object */ public static VCFHeaderVersion toHeaderVersion(String version) { version = clean(version); for (VCFHeaderVersion hv : VCFHeaderVersion.values()) if (hv.versionString.equals(version)) return hv; return null; }
/** * get the header version * @param version the version string * @return a VCFHeaderVersion object */ public static VCFHeaderVersion toHeaderVersion(String version) { version = clean(version); for (VCFHeaderVersion hv : VCFHeaderVersion.values()) if (hv.versionString.equals(version)) return hv; return null; }