View Javadoc

1   /*
2    * Copyright (c) 2007 Creative Sphere Limited.
3    * All rights reserved. This program and the accompanying materials
4    * are made available under the terms of the Eclipse Public License v1.0
5    * which accompanies this distribution, and is available at
6    * http://www.eclipse.org/legal/epl-v10.html
7    *
8    * Contributors:
9    *
10   *   Creative Sphere - initial API and implementation
11   *
12   */
13  package org.abstracthorizon.danube.http.matcher;
14  
15  /**
16   * Bean info for {@link Pattern} class
17   *
18   * @author Daniel Sendula
19   */
20  public class PatternBeanInfo extends AbstractMatcherBeanInfo {
21  
22      /**
23       * Constructor
24       */
25      public PatternBeanInfo() {
26          this(Pattern.class);
27      }
28  
29      /**
30       * Constructor
31       * @param cls class
32       */
33      protected PatternBeanInfo(Class<?> cls) {
34          super(cls);
35      }
36  
37      /**
38       * Init method
39       */
40      public void init() {
41          super.init();
42  
43          addProperty("pattern", "Pattern as a string");
44  
45          addProperty("componentPath", "Component path to be used when matched");
46  
47          addProperty("matchAsComponentPath", "Match as component path");
48  
49          addProperty("compiledPattern", "Compiled Pattern", true, false);
50  
51      }
52  
53  }