1
2
3
4 package org.xanot.structure;
5
6 /***
7 * Base class for all Xanot Rules.
8 *
9 * @author Ferdinand Neman (newm4n _at_ gmail.com)
10 */
11 public abstract class XanotRule {
12 private String path = null;
13
14 /***
15 * Creates a new XanotRule object.
16 *
17 * @param path
18 * The element path. Usually equals to an xml element or
19 * attribute name.
20 */
21 public XanotRule(String path) {
22 setPath(path);
23 }
24
25 /***
26 * Get the path
27 *
28 * @return Returns the path.
29 */
30 public String getPath() {
31 return path;
32 }
33
34 /***
35 * Set the path
36 *
37 * @param path
38 * The path to set.
39 */
40 public void setPath(String path) {
41 this.path = path;
42 }
43 }