com.sun.faces.config.beans.PropertyHolder Maven / Gradle / Ivy
/*
* $Id: PropertyHolder.java,v 1.4 2005/08/22 22:12:18 ofung Exp $
*/
/*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* https://javaserverfaces.dev.java.net/CDDL.html or
* legal/CDDLv1.0.txt.
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* [Name of File] [ver.__] [Date]
*
* Copyright 2005 Sun Microsystems Inc. All Rights Reserved
*/
package com.sun.faces.config.beans;
/**
* Interface denoting a configuration bean that stores a named collection
* of properties.
*/
public interface PropertyHolder {
// ----------------------------------------------------------------- Methods
/**
* Add the specified property descriptor, replacing any existing
* descriptor for this property name.
*
* @param descriptor Descriptor to be added
*/
public void addProperty(PropertyBean descriptor);
/**
* Return the property descriptor for the specified property name,
* if any; otherwise, return null
.
*
* @param name Name of the property for which to retrieve a descriptor
*/
public PropertyBean getProperty(String name);
/**
* Return the descriptors of all properties for which descriptors have
* been registered, or an empty array if none have been registered.
*/
public PropertyBean[] getProperties();
/**
* Deregister the specified property descriptor, if it is registered.
*
*
* @param descriptor Descriptor to be removed
*/
public void removeProperty(PropertyBean descriptor);
}