1 package org.jdiseq.filter;
2
3 import org.jdom.Element;
4
5 /***
6 * Method filtering class representing the a filtering defined for all
7 * method calls be run while using jDiSeq.
8 */
9 public class MethodFilter extends Filter {
10
11 private static final String MTH_ELEMENT_NAME = "method-filter";
12 private static final String MTH_ATTRIBUTE = "placement";
13
14 /*** {@inheritDoc} */
15 public MethodFilter(Element element) {
16 super(element);
17 }
18
19 /***
20 * Empty constructer used by client when creating a new filter definition.
21 */
22 public MethodFilter() {
23 super(MTH_ELEMENT_NAME);
24 getElement().setAttribute(MTH_ATTRIBUTE, FilterType.POSTFIX.getName());
25 FilterFactory.getPersister().getMethodFilterParent().addContent(getElement());
26 }
27
28 /*** {@inheritDoc} */
29 public boolean equals(Object object) {
30 return super.equals(object);
31 }
32
33 /*** {@inheritDoc} */
34 public int hashCode() {
35 return super.hashCode();
36 }
37
38 /*** {@inheritDoc} */
39 protected String getAttributeName() {
40 return MTH_ATTRIBUTE;
41 }
42 }
This page was automatically generated by Maven