| java.lang.Object org.drools.decisiontable.model.SnippetBuilder
SnippetBuilder | public class SnippetBuilder (Code) | | author: Michael Neale author: This utility class exists to convert rule script snippets to actual code. The author: snippets contain place holders for values to be substituted into. See the author: test case for how it really works ! author: Snippet template example: "something.getBlah($param)" $param is the "place author: holder". This will get replaced with the "cellValue" that is passed in. author: 12-Oct-2005 change: moved from regex to using simple character based interpolation. author: Regex was overkill and couldn't not quite get it right. |
Constructor Summary | |
public | SnippetBuilder(String snippetTemplate) Parameters: snippetTemplate - The snippet including the "place holder" for a parameter. |
Method Summary | |
public String | build(String cellValue) Parameters: cellValue - The value from the cell to populate the snippet with. |
SnippetBuilder | public SnippetBuilder(String snippetTemplate)(Code) | | Parameters: snippetTemplate - The snippet including the "place holder" for a parameter. Ifno "place holder" is present, |
build | public String build(String cellValue)(Code) | | Parameters: cellValue - The value from the cell to populate the snippet with. If noplace holder exists, will just return the snippet. The final snippet. |
|
|