/** * @param format the format for which extensions are desired * @return common extensions list. Empty list if no matching type is found. */ public static Iterable<String> getCommonExtensions(Class<? extends OWLDocumentFormat> format) { for (Extensions e : values()) { if (e.documentFormat.equals(format)) { return e.getCommonExtensions(); } } return Collections.emptyList(); }
/** * @param format the format for which extensions are desired * @return common extensions list. Empty list if no matching type is found. */ public static Iterable<String> getCommonExtensions(Class<? extends OWLDocumentFormat> format) { for (Extensions e : values()) { if (e.documentFormat.equals(format)) { return e.getCommonExtensions(); } } return Collections.emptyList(); }
/** * @param format the format for which extensions are desired * @return common extensions list. Empty list if no matching type is found. */ public static Iterable<String> getCommonExtensions(Class<? extends OWLDocumentFormat> format) { for (Extensions e : values()) { if (e.documentFormat.equals(format)) { return e.getCommonExtensions(); } } return Collections.emptyList(); }