Class WebMacro

java.lang.Object
org.apache.velocity.convert.WebMacro

public class WebMacro extends 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 String[]
    Deprecated.
    The regexes to use for line by line substition.
    protected static final String
    Deprecated.
     
    protected static final String
    Deprecated.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    convert(String target)
    Deprecated.
    Iterate through the set of find/replace regexes that will convert a given WM template to a VM template
    Deprecated.
    Apply find/replace regexes to our WM template
    static void
    main(String[] args)
    Deprecated.
    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 Details

    • VM_EXT

      protected static final String VM_EXT
      Deprecated.
      See Also:
    • WM_EXT

      protected static final String WM_EXT
      Deprecated.
      See Also:
    • perLineREs

      protected static 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.
  • Constructor Details

    • WebMacro

      public WebMacro()
      Deprecated.
  • Method Details

    • convert

      public void convert(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 String convertTemplate(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(String[] args)
      Deprecated.
      Main hook for the conversion process.
      Parameters:
      args -