Package org.apache.velocity.convert
Class WebMacro
- java.lang.Object
-
- org.apache.velocity.convert.WebMacro
-
public class WebMacro extends java.lang.Object
Deprecated.Obsolete and outdated.This is deprecated without replacement.- Version:
- $Id: WebMacro.java 898028 2010-01-11 19:36:31Z nbubna $
- Author:
- Jason van Zyl, Daniel Rall
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String[]
perLineREs
Deprecated.The regexes to use for line by line substition.protected static java.lang.String
VM_EXT
Deprecated.protected static java.lang.String
WM_EXT
Deprecated.
-
Constructor Summary
Constructors Constructor Description WebMacro()
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
convert(java.lang.String target)
Deprecated.Iterate through the set of find/replace regexes that will convert a given WM template to a VM templatejava.lang.String
convertTemplate(java.lang.String template)
Deprecated.Apply find/replace regexes to our WM templatestatic void
main(java.lang.String[] args)
Deprecated.Main hook for the conversion process.
-
-
-
Field Detail
-
VM_EXT
protected static final java.lang.String VM_EXT
Deprecated.- See Also:
- Constant Field Values
-
WM_EXT
protected static final java.lang.String WM_EXT
Deprecated.- See Also:
- Constant Field Values
-
perLineREs
protected static java.lang.String[] perLineREs
Deprecated.The regexes to use for line by line substition. The regexes come in pairs. The first is the string to match, the second is the substitution to make.
-
-
Method Detail
-
convert
public void convert(java.lang.String target)
Deprecated.Iterate through the set of find/replace regexes that will convert a given WM template to a VM template- Parameters:
target
-
-
convertTemplate
public java.lang.String convertTemplate(java.lang.String template)
Deprecated.Apply find/replace regexes to our WM template- Parameters:
template
-- Returns:
- Returns the template with all regexprs applied.
-
main
public static void main(java.lang.String[] args)
Deprecated.Main hook for the conversion process.- Parameters:
args
-
-
-