Package org.kie.api.builder
Interface KieFileSystem
public interface KieFileSystem
KieFileSystem is an in memory file system used to programmatically define
the resources composing a KieModule
-
Method Summary
Modifier and TypeMethodDescriptionvoidRemoves the files in the given paths from this KieFileSystemgenerateAndWritePomXML(ReleaseId releaseId) Generates a basic maven pom file with the given ReleaseId (groupId, artifactId and version) and adds it to this KieFileSystembyte[]Returns the content of the file in the specified path as a byte[]Adds the given content to this KieFileSystem in the specified pathAdds the given content to this KieFileSystem in the specified pathAdds the given Resource to this KieFileSystem in the specified pathAdds the given Resource to this KieFileSystemwriteKModuleXML(byte[] content) Adds the given kmodule.xml file to this KieFileSystemwriteKModuleXML(String content) Adds the given kmodule.xml file to this KieFileSystemwritePomXML(byte[] content) Adds the given pom.xml file to this KieFileSystemwritePomXML(String content) Adds the given pom.xml file to this KieFileSystem
-
Method Details
-
generateAndWritePomXML
Generates a basic maven pom file with the given ReleaseId (groupId, artifactId and version) and adds it to this KieFileSystem -
writePomXML
Adds the given pom.xml file to this KieFileSystem -
writePomXML
Adds the given pom.xml file to this KieFileSystem -
writeKModuleXML
Adds the given kmodule.xml file to this KieFileSystem -
writeKModuleXML
Adds the given kmodule.xml file to this KieFileSystem -
write
Adds the given content to this KieFileSystem in the specified path -
write
Adds the given content to this KieFileSystem in the specified path -
write
Adds the given Resource to this KieFileSystem in the specified path -
write
Adds the given Resource to this KieFileSystem -
delete
Removes the files in the given paths from this KieFileSystem -
read
Returns the content of the file in the specified path as a byte[]
-