1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.jetspeed.om.profile;
18
19 import java.util.Iterator;
20
21 /***
22 * ConfigElement is the base interface that objects must implement in order
23 * to be used with the Profile service.
24 *
25 * @author <a href="mailto:raphael@apache.org">Raphaël Luta</a>
26 * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
27 * @version $Id: ConfigElement.java,v 1.5 2004/02/23 03:05:01 jford Exp $
28 */
29 public interface ConfigElement extends Cloneable
30 {
31
32 /***
33 * @return the name of this entry. This value is guaranteed to be unique at
34 * least within the current Document.
35 */
36 public String getName();
37
38 /***
39 * Changes the name of this entry
40 * @param name the new name for this entry
41 */
42 public void setName(String name);
43
44 public String getParameterValue(String name);
45
46 public Parameter getParameter(String name);
47
48 public Iterator getParameterIterator();
49
50 public Parameter getParameter(int index)
51 throws java.lang.IndexOutOfBoundsException;
52
53 public int getParameterCount();
54
55 public void removeAllParameter();
56
57 public Parameter removeParameter(int index);
58
59 public void setParameter(int index, Parameter vParameter)
60 throws java.lang.IndexOutOfBoundsException;
61
62 public Parameter[] getParameter();
63
64 public void addParameter(Parameter vParameter)
65 throws java.lang.IndexOutOfBoundsException;
66
67 /***
68 * Create a clone of this object
69 */
70 public Object clone()
71 throws java.lang.CloneNotSupportedException;
72 }