KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > pde > internal > core > Choice


1 /*******************************************************************************
2  * Copyright (c) 2000, 2003 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Common Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/cpl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.pde.internal.core;
12 /**
13  * @version 1.0
14  * @author
15  */

16 public class Choice {
17     private String JavaDoc label;
18     private String JavaDoc value;
19     public Choice(String JavaDoc value, String JavaDoc label) {
20         this.value = value;
21         this.label = label;
22     }
23     
24     public String JavaDoc getValue() {
25         return value;
26     }
27     public String JavaDoc getLabel() {
28         return label;
29     }
30     public String JavaDoc toString() {
31         return label;
32     }
33 }
34
Popular Tags