Forge - Parent 1.4.2-SNAPSHOT

org.jboss.forge.scaffoldx
Interface TemplateStrategy


public interface TemplateStrategy

A strategy defining the manner in which template resources interact with generated resources.

Author:
Lincoln Baxter, III

Method Summary
 boolean compatibleWith(Resource<?> template)
          Return true if this TemplateStrategy is compatible with the given template Resource.
 Resource<?> getDefaultTemplate()
          Return the default template to be used when generating resource, or null if none should be used.
 String getReferencePath(Resource<?> template)
          Return the path by which the given Resource template should be referenced when constructing generated resources.
 

Method Detail

compatibleWith

boolean compatibleWith(Resource<?> template)
Return true if this TemplateStrategy is compatible with the given template Resource.


getReferencePath

String getReferencePath(Resource<?> template)
Return the path by which the given Resource template should be referenced when constructing generated resources.


getDefaultTemplate

Resource<?> getDefaultTemplate()
Return the default template to be used when generating resource, or null if none should be used.


Forge - Parent 1.4.2-SNAPSHOT

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.