org.apache.lenya.ac.impl
Class ItemConfiguration

java.lang.Object
  extended by org.apache.lenya.ac.impl.ItemConfiguration

public class ItemConfiguration
extends java.lang.Object

Use this class to create configurations from AbstractItems or to build AbstractItems from configurations.


Field Summary
static java.lang.String CLASS_ATTRIBUTE
           
static java.lang.String DESCRIPTION
           
static java.lang.String ID_ATTRIBUTE
           
static java.lang.String NAME
           
 
Constructor Summary
ItemConfiguration()
          Ctor.
 
Method Summary
 void configure(AbstractItem manageable, org.apache.avalon.framework.configuration.Configuration configuration)
          Configures a Manageable.
 void save(AbstractItem manageable, org.apache.avalon.framework.configuration.DefaultConfiguration configuration)
          Saves the ID, name and description of the Manageable to the configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values

DESCRIPTION

public static final java.lang.String DESCRIPTION
See Also:
Constant Field Values

ID_ATTRIBUTE

public static final java.lang.String ID_ATTRIBUTE
See Also:
Constant Field Values

CLASS_ATTRIBUTE

public static final java.lang.String CLASS_ATTRIBUTE
See Also:
Constant Field Values
Constructor Detail

ItemConfiguration

public ItemConfiguration()
Ctor.

Method Detail

save

public void save(AbstractItem manageable,
                 org.apache.avalon.framework.configuration.DefaultConfiguration configuration)
Saves the ID, name and description of the Manageable to the configuration.

Parameters:
manageable - A manageable.
configuration - A configuration.

configure

public void configure(AbstractItem manageable,
                      org.apache.avalon.framework.configuration.Configuration configuration)
               throws org.apache.avalon.framework.configuration.ConfigurationException
Configures a Manageable.

Parameters:
manageable - The manageable.
configuration - The configuration.
Throws:
org.apache.avalon.framework.configuration.ConfigurationException - when something went wrong.


Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.