Package deltix.qsrv.solgen
Class SolgenUtils
- java.lang.Object
-
- deltix.qsrv.solgen.SolgenUtils
-
public final class SolgenUtils extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
collectDocForLanguage(Language language)
static java.lang.String
collectDocs()
static java.util.Map<java.lang.String,java.util.List<Property>>
collectProjectProperties(Language language)
static java.util.Map<java.lang.String,Property>
collectProperties()
static java.util.Map<java.lang.String,java.util.List<Property>>
collectSampleProperties(Language language)
static java.lang.String
convertLineSeparators(java.lang.String str, java.lang.String sep)
static void
copyFromClassPath(java.lang.Package pkg, java.lang.String name, java.nio.file.Path target)
static java.util.List<Property>
getCommonProperties(Language language)
static java.nio.file.Path
getDefaultSamplesDirectory()
static java.lang.String
getEscapedName(java.lang.String name)
static boolean
isValidName(java.lang.String s)
static boolean
isValidPath(java.lang.String path)
static boolean
isValidUrl(java.lang.String url)
static void
main(java.lang.String[] args)
static java.lang.String
readFromClassPath(java.lang.Package pkg, java.lang.String name)
static java.lang.String
readTemplateFromClassPath(java.lang.Package pkg, java.lang.String name, java.util.Map<java.lang.String,java.lang.String> params)
static void
unzip(java.lang.Package pkg, java.lang.String name, java.nio.file.Path targetDir)
static void
unzip(java.lang.String path, java.nio.file.Path targetDir)
-
-
-
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)
-
collectProperties
public static java.util.Map<java.lang.String,Property> collectProperties()
-
main
public static void main(java.lang.String[] args)
-
-