| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.velocity.convert.WebMacro
public class WebMacro
This class will convert a WebMacro template to a Velocity template. Uses the ORO Regexp package to do the rewrites. Note, it isn't 100% perfect, but will definitely get you about 99.99% of the way to a converted system. Please see the website documentation for more information on how to use this class.
| Field Summary | |
|---|---|
| protected static String[] | perLineREsThe regexes to use for line by line substition. | 
| protected static String | VM_EXT | 
| protected static String | WM_EXT | 
| Constructor Summary | |
|---|---|
| WebMacro() | |
| Method Summary | |
|---|---|
|  void | convert(String target)Iterate through the set of find/replace regexes that will convert a given WM template to a VM template | 
|  String | convertTemplate(String template)Apply find/replace regexes to our WM template | 
| static void | main(String[] args)Main hook for the conversion process. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected static final String VM_EXT
protected static final String WM_EXT
protected static String[] perLineREs
| Constructor Detail | 
|---|
public WebMacro()
| Method Detail | 
|---|
public void convert(String target)
target - public String convertTemplate(String template)
template - 
public static void main(String[] args)
args - | 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||