| java.lang.Object com.xoetrope.template.XTemplateEngine com.xoetrope.carousel.catalog.XCustomJavaTemplateEngine
XCustomJavaTemplateEngine | public class XCustomJavaTemplateEngine extends XTemplateEngine (Code) | | author: kingsley.elmes |
XCustomJavaTemplateEngine | public XCustomJavaTemplateEngine(XProject proj, String source, String target)(Code) | | Creates a new instance of XCustomTemplateEngine
Parameters: proj - XProject instance passed to this class Parameters: source - String Parameters: target - String |
addInclude | public void addInclude(String s, boolean b)(Code) | | Set whether a code block is to be included or not
Parameters: s - String specifying the tag name Parameters: b - boolean specifying whether the code bloask is to be included or not |
getContent | public String getContent(String elementName)(Code) | | Returns content to be included in the template based on a key
Parameters: elementName - String specifying the key |
includes | public boolean includes(String elementName)(Code) | | Check whether an code block is to be included in the java class
Parameters: elementName - String specifying the element name or tag boolean specifying whether the code bloack is to be included |
setImportName1 | public void setImportName1(String s)(Code) | | Sets an import name in the java class being processed
Parameters: s - String specifying the import name |
setPackageName | public void setPackageName(String s)(Code) | | Sets the package name of the java class being processed
Parameters: s - String specifying the package name |
useSampleProducts | public void useSampleProducts(int a)(Code) | | Sets how many sample products are to be used within the catalogue
Parameters: a - int specifying the amount of products to be included |
|
|