View Javadoc

1   package net.sourceforge.jparam.parser;
2   
3   
4   /***
5    * A description of class MapItem
6    */
7   public class MapItem {
8   	private TreeNode key;
9   
10  	private TreeNode value;
11  
12  	/***
13  	 * Create a new MapItem object.
14  	 */
15  	public MapItem(TreeNode key, TreeNode value) {
16  		this.key = key;
17  		this.value = value;
18  	}
19  
20  	/***
21  	 * Returns the key
22  	 */
23  	public TreeNode getKey() {
24  		return key;
25  	}
26  
27  	/***
28  	 * Returns the value.
29  	 */
30  	public TreeNode getValue() {
31  		return value;
32  	}
33  
34  	public String toString() {
35  		StringBuffer res = new StringBuffer();
36  		res.append(key.toString());
37  		res.append("=>");
38  		res.append(value.toString());
39  		return res.toString();
40  	}
41  
42  }