/** * Return a DataFormatType for the given name by either matching * a known type (ignoring case) or creating an unknown type. * * @param name name of the desired DataFormatType. * @return the named DataFormatType or null if given name is null. */ public static DataFormatType getType(String name) { if (name == null) return null; DataFormatType t = findType( name ); return t != null ? t : new DataFormatType( name, false); }
/** * Return a DataFormatType for the given name by either matching * a known type (ignoring case) or creating an unknown type. * * @param name name of the desired DataFormatType. * @return the named DataFormatType or null if given name is null. */ public static DataFormatType getType(String name) { if (name == null) return null; DataFormatType t = findType( name ); return t != null ? t : new DataFormatType( name, false); }
/** * Return a DataFormatType for the given name by either matching * a known type (ignoring case) or creating an unknown type. * * @param name name of the desired DataFormatType. * @return the named DataFormatType or null if given name is null. */ public static DataFormatType getType(String name) { if (name == null) return null; DataFormatType t = findType( name ); return t != null ? t : new DataFormatType( name, false); }