Interface SourceService<T>
-
- All Known Implementing Classes:
BaseSourceService,DRLBaseSourceService
public interface SourceService<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanaccepts(org.uberfire.java.nio.file.Path path)StringgetPattern()StringgetSource(org.uberfire.java.nio.file.Path path)StringgetSource(org.uberfire.java.nio.file.Path path, T model)
-
-
-
Method Detail
-
accepts
boolean accepts(org.uberfire.java.nio.file.Path path)
-
getSource
String getSource(org.uberfire.java.nio.file.Path path, T model) throws SourceGenerationFailedException
- Parameters:
path- path to the filemodel- the current model. Originally loaded from the file, but the content might have changed.- Returns:
- Source generated from the model, not from the file that the path points to.
- Throws:
SourceGenerationFailedException
-
getSource
String getSource(org.uberfire.java.nio.file.Path path) throws SourceGenerationFailedException
- Parameters:
path- path to the file- Returns:
- Source generated from the model, that the path points to.
- Throws:
SourceGenerationFailedException
-
getPattern
String getPattern()
-
-