KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > container > configuration > ValuesParam


1 /***************************************************************************
2  * Copyright 2001-2003 The eXo Platform SARL All rights reserved. *
3  * Please look at license.txt in info directory for more license detail. *
4  **************************************************************************/

5 package org.exoplatform.container.configuration;
6
7 import java.util.* ;
8
9 /**
10  * Jul 19, 2004
11  * @author: Tuan Nguyen
12  * @email: tuan08@users.sourceforge.net
13  * @version: $Id: ValuesParam.java,v 1.1 2004/10/20 20:54:13 tuan08 Exp $
14  */

15 public class ValuesParam extends Parameter {
16   
17     private List values = new ArrayList(2);
18
19     public List getValues() { return values; }
20     public void setValues(List values) { this.values = values; }
21   
22   public String JavaDoc getValue() {
23    if(values.size() == 0) return null ;
24    return (String JavaDoc) values.get(0) ;
25   }
26   
27   public void addValue(String JavaDoc value) { values.add(value) ;}
28 }
Popular Tags