Package org.kie.api.builder
Interface KieFileSystem
- 
 public interface KieFileSystemKieFileSystem is an in memory file system used to programmatically define the resources composing a KieModule
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddelete(String... paths)Removes the files in the given paths from this KieFileSystemKieFileSystemgenerateAndWritePomXML(ReleaseId releaseId)Generates a basic maven pom file with the given ReleaseId (groupId, artifactId and version) and adds it to this KieFileSystembyte[]read(String path)Returns the content of the file in the specified path as a byte[]KieFileSystemwrite(String path, byte[] content)Adds the given content to this KieFileSystem in the specified pathKieFileSystemwrite(String path, String content)Adds the given content to this KieFileSystem in the specified pathKieFileSystemwrite(String path, Resource resource)Adds the given Resource to this KieFileSystem in the specified pathKieFileSystemwrite(Resource resource)Adds the given Resource to this KieFileSystemKieFileSystemwriteKModuleXML(byte[] content)Adds the given kmodule.xml file to this KieFileSystemKieFileSystemwriteKModuleXML(String content)Adds the given kmodule.xml file to this KieFileSystemKieFileSystemwritePomXML(byte[] content)Adds the given pom.xml file to this KieFileSystemKieFileSystemwritePomXML(String content)Adds the given pom.xml file to this KieFileSystem
 
- 
- 
- 
Method Detail- 
generateAndWritePomXMLKieFileSystem generateAndWritePomXML(ReleaseId releaseId) Generates a basic maven pom file with the given ReleaseId (groupId, artifactId and version) and adds it to this KieFileSystem
 - 
writePomXMLKieFileSystem writePomXML(byte[] content) Adds the given pom.xml file to this KieFileSystem
 - 
writePomXMLKieFileSystem writePomXML(String content) Adds the given pom.xml file to this KieFileSystem
 - 
writeKModuleXMLKieFileSystem writeKModuleXML(byte[] content) Adds the given kmodule.xml file to this KieFileSystem
 - 
writeKModuleXMLKieFileSystem writeKModuleXML(String content) Adds the given kmodule.xml file to this KieFileSystem
 - 
writeKieFileSystem write(String path, byte[] content) Adds the given content to this KieFileSystem in the specified path
 - 
writeKieFileSystem write(String path, String content) Adds the given content to this KieFileSystem in the specified path
 - 
writeKieFileSystem write(String path, Resource resource) Adds the given Resource to this KieFileSystem in the specified path
 - 
writeKieFileSystem write(Resource resource) Adds the given Resource to this KieFileSystem
 - 
deletevoid delete(String... paths) Removes the files in the given paths from this KieFileSystem
 - 
readbyte[] read(String path) Returns the content of the file in the specified path as a byte[]
 
- 
 
-