KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > jaspersoft > jasperserver > api > metadata > xml > domain > impl > ListItem


1 /*
2  * ListItem.java
3  *
4  * All rights reserved.
5  * Copyright (C) 2005 JasperSoft Corporation
6  *
7  * JasperSoft Corporation
8  * 303 Second Street, Suite 450 North
9  * San Francisco, CA 94107
10  * http://www.jaspersoft.com
11  *
12  *
13  * Created on May 26, 2006, 3:34 PM
14  *
15  */

16
17 package com.jaspersoft.jasperserver.api.metadata.xml.domain.impl;
18
19 /**
20  * It's an implementation of ListOfValuesItem used in Webservices.
21  * This class does not implements directly ListOfValuesItem to avoid
22  * the need of this interface on client side.
23  *
24  * @author gtoffoli
25  */

26 public class ListItem {
27     
28     private Object JavaDoc value;
29     private String JavaDoc label;
30     
31     /** Creates a new instance of ListItem */
32     public ListItem() {
33     }
34     
35     /** Creates a new instance of ListItem */
36     public ListItem(String JavaDoc label, Object JavaDoc value) {
37         this.value = value;
38         this.label = label;
39     }
40
41     public Object JavaDoc getValue() {
42         return value;
43     }
44
45     public void setValue(Object JavaDoc value) {
46         this.value = value;
47     }
48
49     public String JavaDoc getLabel() {
50         return label;
51     }
52
53     public void setLabel(String JavaDoc label) {
54         this.label = label;
55     }
56     
57 }
58
Popular Tags