Class ReportingNameHelper
java.lang.Object
de.monticore.generating.templateengine.reporting.artifacts.ReportingNameHelper
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor for de.monticore.generating.templateengine.reporting.artifacts.ReportingNameHelper. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetFileextension(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.tmpstatic Stringstatic StringgetFullName(String simpleName, String extension) static Stringstatic Pathstatic StringgetQualifiedName(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"static StringgetSimpleName(String qn) static String
-
Constructor Details
-
ReportingNameHelper
protected ReportingNameHelper()Constructor for de.monticore.generating.templateengine.reporting.artifacts.ReportingNameHelper.
-
-
Method Details
-
getPath
-
getPath
- Parameters:
qn- QualifiedName (without fileExtesion) or FullQualifiedName (with fileExtesion)- Returns:
-
getSimpleName
- Parameters:
qn- QualifiedName (without fileExtension)- Returns:
-
getFullName
- Parameters:
simpleName-extension- fileExtension- Returns:
-
getFirstPathPart
- Parameters:
qn- any qualifiedName- Returns:
- first part of the qualifiedName
-
removeFirstPathPart
- Parameters:
qn- any qualifiedName- Returns:
- qn without the first part
-
getQualifiedName
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
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:
-