Kie Workbench - Common - Services API 6.2.0.CR2

org.kie.workbench.common.services.backend.source
Interface SourceService<T>

All Known Implementing Classes:
BaseSourceService, DRLBaseSourceService

public interface SourceService<T>


Method Summary
 boolean accepts(org.uberfire.java.nio.file.Path path)
           
 String getPattern()
           
 String getSource(org.uberfire.java.nio.file.Path path)
           
 String getSource(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)
Parameters:
path - path to the file
model - 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.

getSource

String getSource(org.uberfire.java.nio.file.Path path)
Parameters:
path - path to the file
Returns:
Source generated from the model, that the path points to.

getPattern

String getPattern()

Kie Workbench - Common - Services API 6.2.0.CR2

Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.