KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > clipbuilder > html > bean > FilterBean


1 package org.jahia.clipbuilder.html.bean;
2
3 import java.util.*;
4
5 /**
6  * Description of the Class
7  *
8  *@author Tlili Khaled
9  */

10 public class FilterBean extends Bean {
11     private Map keyMap = new HashMap();
12     private String JavaDoc name;
13     private int mode;
14
15
16
17     /**
18      * Constructor for the FilterBean object
19      */

20     public FilterBean() {
21     }
22
23
24
25
26     /**
27      * Sets the Name attribute of the FilterBean object
28      *
29      *@param name The new Name value
30      */

31     public void setName(String JavaDoc name) {
32         this.name = name;
33     }
34
35
36     /**
37      * Sets the KeyMap attribute of the FilterBean object
38      *
39      *@param keyMap The new KeyMap value
40      */

41     public void setKeyMap(Map keyMap) {
42         this.keyMap = keyMap;
43     }
44
45
46     /**
47      * Sets the Mode attribute of the FilterBean object
48      *
49      *@param mode The new Mode value
50      */

51     public void setMode(int mode) {
52         this.mode = mode;
53     }
54
55
56     /**
57      * Gets the KeyPart attribute of the FilterBean object
58      *
59      *@param name Description of Parameter
60      *@return The KeyPart value
61      */

62     public String JavaDoc getKeyPart(String JavaDoc name) {
63         return (String JavaDoc) keyMap.get(name);
64     }
65
66
67
68     /**
69      * Gets the Name attribute of the FilterBean object
70      *
71      *@return The Name value
72      */

73     public String JavaDoc getName() {
74         return name;
75     }
76
77
78     /**
79      * Gets the KeyMap attribute of the FilterBean object
80      *
81      *@return The KeyMap value
82      */

83     public Map getKeyMap() {
84         return keyMap;
85     }
86
87
88     /**
89      * Gets the Mode attribute of the FilterBean object
90      *
91      *@return The Mode value
92      */

93     public int getMode() {
94         return mode;
95     }
96
97
98     /**
99      * Adds a feature to the KeyPart attribute of the FilterBean object
100      *
101      *@param name The feature to be added to the KeyPart attribute
102      *@param value The feature to be added to the KeyPart attribute
103      */

104     public void addKeyPart(String JavaDoc name, String JavaDoc value) {
105         keyMap.put(name, value);
106     }
107
108 }
109
Popular Tags