WebMacro (Velocity 1.7 API)
Keywords: org.apache.velocity.convert.WebMacro class

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.velocity.convert
Class WebMacro

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

Deprecated. Obsolete and outdated.

public class WebMacro
extends Object

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
`protected static String[]` | `perLineREs` Deprecated. The regexes to use for line by line substition.
`protected static String` | `VM_EXT` Deprecated.
`protected static String` | `WM_EXT` Deprecated.

Constructor Summary
`WebMacro()` Deprecated.

Method Summary
`void` | `convert(String target)` Deprecated. Iterate through the set of find/replace regexes that will convert a given WM template to a VM template
`String` | `convertTemplate(String 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 Detail

### VM_EXT

    protected static final String VM_EXT

  Deprecated.
  See Also:
    Constant Field Values

### WM_EXT

    protected static final String WM_EXT

  Deprecated.
  See Also:
    Constant Field Values

### 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 Detail

### WebMacro

    public WebMacro()

  Deprecated.

Method Detail

### 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` -

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000-2010 Apache Software Foundation. All Rights Reserved.