Java File Name Get getFileName(String template, String className, String packageName)

Here you can find the source of getFileName(String template, String className, String packageName)

Description

get File Name

License

Apache License

Declaration

private static String getFileName(String template, String className, String packageName) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.io.File;

public class Main {
    private static String getFileName(String template, String className, String packageName) {
        String packagePath = packageName.replace(".", File.separator) + File.separator;
        if (template.contains("Entity.java.vm")) {
            return packagePath + "entity" + File.separator + className + "Entity.java";
        }/*from   ww w . j  a  va  2  s . co m*/
        return null;
    }
}

Related

  1. getFilename(String path)
  2. getFileName(String path)
  3. getFileName(String s)
  4. getFileName(String s)
  5. getFileName(String s)
  6. getFileName(String url, String basePath)
  7. getFileNameAndExt(String s)
  8. getFileNameArrayFromDirectory(String directoryLocation)
  9. getFileNameFilter(final String endsWith)