KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > alfresco > service > cmr > action > ParameterizedItem


1 /*
2  * Copyright (C) 2005 Alfresco, Inc.
3  *
4  * Licensed under the Mozilla Public License version 1.1
5  * with a permitted attribution clause. You may obtain a
6  * copy of the License at
7  *
8  * http://www.alfresco.org/legal/license.txt
9  *
10  * Unless required by applicable law or agreed to in writing,
11  * software distributed under the License is distributed on an
12  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13  * either express or implied. See the License for the specific
14  * language governing permissions and limitations under the
15  * License.
16  */

17 package org.alfresco.service.cmr.action;
18
19 import java.io.Serializable JavaDoc;
20 import java.util.Map JavaDoc;
21
22 /**
23  * Rule item interface
24  *
25  * @author Roy Wetherall
26  */

27 public interface ParameterizedItem
28 {
29     /**
30      * Unique identifier for the parameterized item
31      *
32      * @return the id string
33      */

34     public String JavaDoc getId();
35     
36     /**
37      * Get the parameter values
38      *
39      * @return get the parameter values
40      */

41     public Map JavaDoc<String JavaDoc, Serializable JavaDoc> getParameterValues();
42     
43     /**
44      * Get value of a named parameter.
45      *
46      * @param name the parameter name
47      * @return the value of the parameter
48      */

49     public Serializable JavaDoc getParameterValue(String JavaDoc name);
50     
51     /**
52      * Sets the parameter values
53      *
54      * @param parameterValues the parameter values
55      */

56     public void setParameterValues(
57             Map JavaDoc<String JavaDoc, Serializable JavaDoc> parameterValues);
58     
59     /**
60      * Sets the value of a parameter.
61      *
62      * @param name the parameter name
63      * @param value the parameter value
64      */

65     public void setParameterValue(String JavaDoc name, Serializable JavaDoc value);
66 }
67
Popular Tags