@Test public void testGetAllExtensions() throws Exception { final ResourceType BPMN2 = ResourceType.getResourceType("BPMN2"); final List<String> extensionsBPMN2 = BPMN2.getAllExtensions(); assertEquals(3, extensionsBPMN2.size()); assertTrue(extensionsBPMN2.contains("bpmn")); assertTrue(extensionsBPMN2.contains("bpmn2")); assertTrue(extensionsBPMN2.contains("bpmn-cm")); assertFalse(extensionsBPMN2.contains("bpmn2-cm")); final ResourceType DRL = ResourceType.getResourceType("DRL"); final List<String> extensionsDRL = DRL.getAllExtensions(); assertEquals(1, extensionsDRL.size()); assertTrue(extensionsDRL.contains("drl")); }
public List<String> getAllExtensions() { final List<String> extensions = new LinkedList<>(); extensions.add(defaultExtension); extensions.addAll(Arrays.asList(otherExtensions)); return Collections.unmodifiableList(extensions); }
ResourceType implements
        Serializable { public List<String> getAllExtensions() { final List<String> extensions = new LinkedList<>(); extensions.add(defaultExtension); extensions.addAll(Arrays.asList(otherExtensions)); return Collections.unmodifiableList(extensions); } }
ResourceType implements
        Serializable { public List<String> getAllExtensions() { final List<String> extensions = new LinkedList<>(); extensions.add(defaultExtension); extensions.addAll(Arrays.asList(otherExtensions)); return Collections.unmodifiableList(extensions); } ResourceType(String name,
                        boolean fullyCoveredByExecModel,
                        String description,
                        String defaultPath,
                        String defaultExtension,
                        String... otherExtensions); }
ResourceType implements
        Serializable { public List<String> getAllExtensions() { final List<String> extensions = new LinkedList<>(); extensions.add(defaultExtension); extensions.addAll(Arrays.asList(otherExtensions)); return Collections.unmodifiableList(extensions); } ResourceType(String name,
                        boolean fullyCoveredByExecModel,
                        String description,
                        String defaultPath,
                        String defaultExtension,
                        String... otherExtensions); static ResourceType addResourceTypeToRegistry(final String resourceType,
                                                         final String description,
                                                         final String defaultPath,
                                                         final String defaultExtension,
                                                         final String... otherExtensions); static ResourceType addResourceTypeToRegistry(final String resourceType,
                                                         boolean isNative,
                                                         final String description,
                                                         final String defaultPath,
                                                         final String defaultExtension,
                                                         final String... otherExtensions); static ResourceType getResourceType(final String resourceType); static ResourceType determineResourceType(final String resourceName); boolean matchesExtension(String resourceName); boolean isFullyCoveredByExecModel(); String getDefaultPath(); String getDefaultExtension(); List<String> getAllExtensions(); String getDescription(); String getName(); String toString(); @Override int hashCode(); @Override boolean equals(Object obj); }
ResourceType implements
        Serializable { public List<String> getAllExtensions() { final List<String> extensions = new LinkedList<>(); extensions.add(defaultExtension); extensions.addAll(Arrays.asList(otherExtensions)); return Collections.unmodifiableList(extensions); } ResourceType(String name,
                        boolean fullyCoveredByExecModel,
                        String description,
                        String defaultPath,
                        String defaultExtension,
                        String... otherExtensions); static ResourceType addResourceTypeToRegistry(final String resourceType,
                                                         final String description,
                                                         final String defaultPath,
                                                         final String defaultExtension,
                                                         final String... otherExtensions); static ResourceType addResourceTypeToRegistry(final String resourceType,
                                                         boolean isNative,
                                                         final String description,
                                                         final String defaultPath,
                                                         final String defaultExtension,
                                                         final String... otherExtensions); static ResourceType getResourceType(final String resourceType); static ResourceType determineResourceType(final String resourceName); boolean matchesExtension(String resourceName); boolean isFullyCoveredByExecModel(); String getDefaultPath(); String getDefaultExtension(); List<String> getAllExtensions(); String getDescription(); String getName(); String toString(); @Override int hashCode(); @Override boolean equals(Object obj); static final ResourceType DRL; static final ResourceType GDRL; static final ResourceType RDRL; static final ResourceType XDRL; static final ResourceType DSL; static final ResourceType DSLR; static final ResourceType RDSLR; static final ResourceType DRF; static final ResourceType BPMN2; static final ResourceType CMMN; static final ResourceType DTABLE; static final ResourceType PKG; static final ResourceType BRL; static final ResourceType CHANGE_SET; static final ResourceType XSD; static final ResourceType PMML; static final ResourceType DESCR; static final ResourceType JAVA; static final ResourceType PROPERTIES; static final ResourceType SCARD; static final ResourceType BAYES; static final ResourceType TDRL; static final ResourceType TEMPLATE; static final ResourceType DRT; static final ResourceType GDST; static final ResourceType SCGD; static final ResourceType SOLVER; static final ResourceType DMN; static final ResourceType FEEL; static final ResourceType NOOP; }