1 package org.jdiseq.filter;
2
3 import org.jdom.Element;
4
5 /***
6 *
7 * @author Trond Andersen <trondandersen@c2i.net>
8 * @version $Id: PackageFilter.java,v 1.4 2003/08/17 11:06:05 trondandersen Exp $
9 * @since 1.0
10 */
11 public class PackageFilter extends Filter {
12
13 private static final String PKG_ELEMENT_NAME = "package-filter";
14 private static final String PKG_ATTRIBUTE = "type";
15
16 /*** {@inheritDoc} */
17 public PackageFilter(Element element) {
18 super(element);
19 }
20
21 /***
22 * Default constructor initializes with the default
23 * <code>FilterType</code>.
24 * @see FilterType#INCLUDE
25 */
26 public PackageFilter() {
27 super(PKG_ELEMENT_NAME);
28 getElement().setAttribute(PKG_ATTRIBUTE, FilterType.INCLUDE.getName());
29 FilterFactory.getPersister().getPackageFilterParent().addContent(getElement());
30 }
31
32 /*** {@inheritDoc} */
33 public boolean equals(Object object) {
34 return super.equals(object);
35 }
36
37 /*** {@inheritDoc} */
38 public int hashCode() {
39 return super.hashCode();
40 }
41
42 /*** {@inheritDoc} */
43 protected String getAttributeName() {
44 return PKG_ATTRIBUTE;
45 }
46 }
This page was automatically generated by Maven