01: package com.opensymphony.webwork.sitegraph.entities;
02:
03: import java.io.File;
04: import java.util.regex.Pattern;
05:
06: /**
07: * User: plightbo
08: * Date: Jun 25, 2005
09: * Time: 2:23:01 PM
10: */
11: public class VelocityView extends FileBasedView {
12: public VelocityView(File file) {
13: super (file);
14: }
15:
16: protected Pattern getActionPattern() {
17: return Pattern
18: .compile("#tag( Action [^)]*name=\"([^\"]+)\"[^)]*)");
19: }
20:
21: protected Pattern getFormPattern() {
22: return Pattern
23: .compile("#tag \\(Form [^)]*action=\"([^\"]+)\"[^)]*\\)");
24: }
25: }
|