Java Code Examples for org.kie.api.io.ResourceType#matchesExtension()
The following examples show how to use
org.kie.api.io.ResourceType#matchesExtension() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: KieContainerImpl.java From kogito-runtimes with Apache License 2.0 | 5 votes |
private boolean includeIfUnchanged( String file ) { for (ResourceType type : TYPES_TO_BE_INCLUDED ) { if (type.matchesExtension( file )) { return true; } } return false; }
Example 2
Source File: IncrementalRuleCodegen.java From kogito-runtimes with Apache License 2.0 | 5 votes |
private static ResourceType typeOf(FileSystemResource r) { for (ResourceType rt : resourceTypes) { if (rt.matchesExtension(r.getFile().getName())) { return rt; } } return null; }
Example 3
Source File: DeclaredTypeCodegen.java From kogito-runtimes with Apache License 2.0 | 5 votes |
private static ResourceType typeOf(FileSystemResource r) { for (ResourceType rt : resourceTypes) { if (rt.matchesExtension(r.getFile().getName())) { return rt; } } return null; }