@Test public void getBaseFileNameTest() { assertEquals("MyClass", resourceUtils.getBaseFileName(getPath("MyClass.java"))); assertEquals("MyClass.txt", resourceUtils.getBaseFileName(getPath("MyClass.txt.java"))); }
public String getBaseFileName(final Path path) { final ClientResourceType resourceType = classifier.findResourceType(path); final String baseName = Utils.getBaseFileName(path.getFileName(), resourceType.getSuffix()); return baseName; }
ResourceUtils { public String getBaseFileName(final Path path) { final ClientResourceType resourceType = classifier.findResourceType(path); final String baseName = Utils.getBaseFileName(path.getFileName(), resourceType.getSuffix()); return baseName; } }
ResourceUtils { public String getBaseFileName(final Path path) { final ClientResourceType resourceType = classifier.findResourceType(path); final String baseName = Utils.getBaseFileName(path.getFileName(), resourceType.getSuffix()); return baseName; } @Inject  ResourceUtils(final Classifier classifier,
                         final ManagedInstance<NewResourceHandler> newResourceHandlers); }
ResourceUtils { public String getBaseFileName(final Path path) { final ClientResourceType resourceType = classifier.findResourceType(path); final String baseName = Utils.getBaseFileName(path.getFileName(), resourceType.getSuffix()); return baseName; } @Inject  ResourceUtils(final Classifier classifier,
                         final ManagedInstance<NewResourceHandler> newResourceHandlers); String getBaseFileName(final Path path); static boolean isProjectHandler(final NewResourceHandler handler); static boolean isDefaultProjectHandler(final NewResourceHandler handler); static boolean isPackageHandler(final NewResourceHandler handler); static boolean isUploadHandler(final NewResourceHandler handler); List<NewResourceHandler> getOrderedNewResourceHandlers(); List<NewResourceHandler> getAlphabeticallyOrderedNewResourceHandlers(); }
ResourceUtils { public String getBaseFileName(final Path path) { final ClientResourceType resourceType = classifier.findResourceType(path); final String baseName = Utils.getBaseFileName(path.getFileName(), resourceType.getSuffix()); return baseName; } @Inject  ResourceUtils(final Classifier classifier,
                         final ManagedInstance<NewResourceHandler> newResourceHandlers); String getBaseFileName(final Path path); static boolean isProjectHandler(final NewResourceHandler handler); static boolean isDefaultProjectHandler(final NewResourceHandler handler); static boolean isPackageHandler(final NewResourceHandler handler); static boolean isUploadHandler(final NewResourceHandler handler); List<NewResourceHandler> getOrderedNewResourceHandlers(); List<NewResourceHandler> getAlphabeticallyOrderedNewResourceHandlers(); static final Comparator<NewResourceHandler> NEW_RESOURCE_HANDLER_COMPARATOR_BY_ORDER; static final Comparator<NewResourceHandler> NEW_RESOURCE_HANDLER_COMPARATOR_BY_ALPHABETICAL_ORDER; }