KickJava   Java API By Example, From Geeks To Geeks.

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


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  * Jul 19, 2004
10  * @author: Tuan Nguyen
11  * @email: tuan08@users.sourceforge.net
12  * @version: $Id: ServiceConfiguration.java,v 1.3 2004/10/28 15:35:23 tuan08 Exp $
13  */

14 public class ServiceConfiguration extends HashMap {
15   private String JavaDoc key ;
16   private String JavaDoc type ;
17   
18   public ServiceConfiguration() {
19   }
20   
21   public String JavaDoc getServiceKey() { return key ; }
22   public void setServiceKey(String JavaDoc s) { key = s ; }
23   
24   public String JavaDoc getServiceType() { return type ; }
25   public void setServiceType(String JavaDoc s) { type = s ; }
26   
27   public ValuesParam getValuesParam(String JavaDoc name) {
28     return (ValuesParam) get(name) ;
29   }
30   
31   public ValueParam getValueParam(String JavaDoc name) {
32     return (ValueParam) get(name) ;
33   }
34   
35   public PropertiesParam getPropertiesParam(String JavaDoc name) {
36     return (PropertiesParam) get(name) ;
37   }
38   
39   public ObjectParam getObjectParam(String JavaDoc name) {
40     return (ObjectParam) get(name) ;
41   }
42   
43   public Parameter getParameter(String JavaDoc name) {
44     return (Parameter) get(name) ;
45   }
46   
47   public void addParameter(Parameter param) {
48     put(param.getName(), param) ;
49   }
50   
51   public Parameter removeParameter(String JavaDoc name) {
52     return (Parameter) remove(name) ;
53   }
54 }
Popular Tags