| java.lang.Object com.metaboss.util.TemplateUtil
TemplateUtil | public class TemplateUtil (Code) | | Utility class. Provides template resolving mechanism, which may be useful in many places.
Template is any string. Processor helps to "render" this string by scanning it
detecting the expressions in form ${ any text } and using ExpressionResolver to resolve it to string
|
Inner Class :public static class UnexpectedSyntaxException extends Exception | |
Inner Class :public static class ResolutionException extends Exception | |
Inner Class :public interface ExpressionResolver | |
Method Summary | |
public static String | processTemplate(String pTemplate, ExpressionResolver pResolver) This method helps to resolve ant / velocity style templates expressions. |
processTemplate | public static String processTemplate(String pTemplate, ExpressionResolver pResolver) throws UnexpectedSyntaxException, ResolutionException(Code) | | This method helps to resolve ant / velocity style templates expressions.
These expresions are text strings whith zero or more macro expressions in form "${expr}"
It takes care of all string parsing and uses callback interface to resolve expressions
|
|
|