blob: 46753346636e2296133cb761f0e5042b737960bf [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
/* $Id$ */
package org.apache.lenya.ac;
import org.apache.avalon.framework.configuration.Configuration;
import org.apache.avalon.framework.configuration.ConfigurationException;
import org.apache.avalon.framework.logger.LogEnabled;
/**
* An item can be initialized from a configuration.
*/
public interface Item extends LogEnabled {
/**
* Returns the ID.
* @return A string.
*/
String getId();
/**
* Returns the name.
* @return A string.
*/
String getName();
/**
* Sets the name.
* @param name A string.
*/
void setName(String name);
/**
* Returns the description.
* @return A string.
*/
String getDescription();
/**
* Sets the description.
* @param description A string.
*/
void setDescription(String description);
/**
* Configures this item.
* @param configuration The configuration.
* @throws ConfigurationException when something went wrong.
*/
void configure(Configuration configuration) throws ConfigurationException;
/**
* @return The item manager this item belongs to.
*/
ItemManager getItemManager();
}