Class SolgenUtils


  • public final class SolgenUtils
    extends java.lang.Object
    • Method Detail

      • unzip

        public static void unzip​(java.lang.String path,
                                 java.nio.file.Path targetDir)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • unzip

        public static void unzip​(java.lang.Package pkg,
                                 java.lang.String name,
                                 java.nio.file.Path targetDir)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • readFromClassPath

        public static java.lang.String readFromClassPath​(java.lang.Package pkg,
                                                         java.lang.String name)
      • readTemplateFromClassPath

        public static java.lang.String readTemplateFromClassPath​(java.lang.Package pkg,
                                                                 java.lang.String name,
                                                                 java.util.Map<java.lang.String,​java.lang.String> params)
      • copyFromClassPath

        public static void copyFromClassPath​(java.lang.Package pkg,
                                             java.lang.String name,
                                             java.nio.file.Path target)
                                      throws java.io.FileNotFoundException
        Throws:
        java.io.FileNotFoundException
      • getDefaultSamplesDirectory

        public static java.nio.file.Path getDefaultSamplesDirectory()
      • getEscapedName

        public static java.lang.String getEscapedName​(java.lang.String name)
      • isValidPath

        public static boolean isValidPath​(java.lang.String path)
      • isValidUrl

        public static boolean isValidUrl​(java.lang.String url)
      • isValidName

        public static boolean isValidName​(java.lang.String s)
      • convertLineSeparators

        public static java.lang.String convertLineSeparators​(java.lang.String str,
                                                             java.lang.String sep)
      • collectDocs

        public static java.lang.String collectDocs()
      • collectDocForLanguage

        public static java.lang.String collectDocForLanguage​(Language language)
      • collectProjectProperties

        public static java.util.Map<java.lang.String,​java.util.List<Property>> collectProjectProperties​(Language language)
      • collectSampleProperties

        public static java.util.Map<java.lang.String,​java.util.List<Property>> collectSampleProperties​(Language language)
      • getCommonProperties

        public static java.util.List<Property> getCommonProperties​(Language language)
      • collectProperties

        public static java.util.Map<java.lang.String,​Property> collectProperties()
      • main

        public static void main​(java.lang.String[] args)