1/*2 * Copyright 2000-2001,2004 The Apache Software Foundation.3 * 4 * Licensed under the Apache License, Version 2.0 (the "License");5 * you may not use this file except in compliance with the License.6 * You may obtain a copy of the License at7 * 8 * http://www.apache.org/licenses/LICENSE-2.09 * 10 * Unless required by applicable law or agreed to in writing, software11 * distributed under the License is distributed on an "AS IS" BASIS,12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.13 * See the License for the specific language governing permissions and14 * limitations under the License.15 */1617packageorg.apache.jetspeed.om.profile;
1819import java.util.Iterator;
2021/***22 * ConfigElement is the base interface that objects must implement in order23 * 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 */29publicinterfaceConfigElementextends Cloneable
30 {
3132/***33 * @return the name of this entry. This value is guaranteed to be unique at34 * least within the current Document.35 */36public String getName();
3738/***39 * Changes the name of this entry40 * @param name the new name for this entry41 */42publicvoid setName(String name);
4344public String getParameterValue(String name);
4546publicParameter getParameter(String name);
4748public Iterator getParameterIterator();
4950publicParameter getParameter(int index)
51 throws java.lang.IndexOutOfBoundsException;
5253publicint getParameterCount();
5455publicvoid removeAllParameter();
5657publicParameter removeParameter(int index);
5859publicvoid setParameter(int index, Parameter vParameter)
60 throws java.lang.IndexOutOfBoundsException;
6162publicParameter[] getParameter();
6364publicvoid addParameter(Parameter vParameter)
65 throws java.lang.IndexOutOfBoundsException;
6667/***68 * Create a clone of this object69 */70public Object clone()
71 throws java.lang.CloneNotSupportedException;
72 }