java.lang.Object
de.monticore.generating.templateengine.reporting.artifacts.ReportingNameHelper

public class ReportingNameHelper extends Object
  • Constructor Details

    • ReportingNameHelper

      protected ReportingNameHelper()
      Constructor for de.monticore.generating.templateengine.reporting.artifacts.ReportingNameHelper.
  • Method Details

    • getPath

      public static Path getPath(String outputDir, String qualifiedFilename, String fileextension)
    • getPath

      public static String getPath(String qn)
      Parameters:
      qn - QualifiedName (without fileExtesion) or FullQualifiedName (with fileExtesion)
      Returns:
    • getSimpleName

      public static String getSimpleName(String qn)
      Parameters:
      qn - QualifiedName (without fileExtension)
      Returns:
    • getFullName

      public static String getFullName(String simpleName, String extension)
      Parameters:
      simpleName -
      extension - fileExtension
      Returns:
    • getFirstPathPart

      public static String getFirstPathPart(String qn)
      Parameters:
      qn - any qualifiedName
      Returns:
      first part of the qualifiedName
    • removeFirstPathPart

      public static String removeFirstPathPart(String qn)
      Parameters:
      qn - any qualifiedName
      Returns:
      qn without the first part
    • getQualifiedName

      public static String getQualifiedName(String outputDir, Path path)
      Returns a dot separated name of the file represented by the given path without its fileextension Example: outputdir is /a/b and path represents /a/b/c/d/e.txt returns "c.d.e"
      Parameters:
      outputDir -
      path -
      Returns:
    • getFileextension

      public static String getFileextension(Path path)
      Returns the fileextension of the file represented by the given path Example: outputdir is /a/b and path represents /a/b/c/d/e.txt.tmp returns txt.tmp
      Parameters:
      path -
      Returns: