Class ProjectContext
java.lang.Object
io.freefair.gradle.codegenerator.api.ProjectContext
- All Implemented Interfaces:
Serializable
public class ProjectContext extends Object implements Serializable
- See Also:
- Serialized Form
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description booleanconfigurationExists(String key)List<ProjectFile>getAllFiles()ObjectgetConfigurationValue(String key)<T> TgetConfigurationValueAs(String key, Class<T> clazz)FilegetInputDir()StringgetNamespaceFromFile(File file)FilegetOutputDir()FilegetRootDir()StringreadFile(String namespace, String filename)StringreadFile(String namespace, String filename, String encoding)byte[]readFileToByteArray(String namespace, String filename)voidwriteOutputFile(String namespace, String filename, byte[] content)voidwriteOutputFile(String namespace, String filename, String content)
-
Constructor Details
-
Method Details
-
getNamespaceFromFile
-
getAllFiles
-
readFileToByteArray
- Throws:
IOException
-
readFile
- Throws:
IOException
-
readFile
- Throws:
IOException
-
writeOutputFile
- Throws:
IOException
-
writeOutputFile
- Throws:
IOException
-
configurationExists
-
getConfigurationValue
-
getConfigurationValueAs
-
getRootDir
-
getInputDir
-
getOutputDir
-