org.xfp
Class AttributeContainer

java.lang.Object
  extended byorg.xfp.AttributeContainer
Direct Known Subclasses:
Engine, Filter, Pipeline

public abstract class AttributeContainer
extends java.lang.Object

Base class for XFP entities that contain attributes.

XFP attributes are a subset of Avalon components. Currently only a small subset of the Avalon Framework is supported. The supported interfaces are:

I need someone with a better knowledge of Avalon to improve this. Please help!

Version:
$Id: AttributeContainer.java,v 1.1 2004/03/19 15:56:43 flaviotordini Exp $
Author:
Flavio Tordini

Field Summary
protected static org.apache.log4j.Logger logger
          logger FIXME how to get the logger from a subclass?
protected  java.lang.String name
          attribute container name
protected  AttributeContainer parentContainer
          Parent attribute container, if any.
 
Constructor Summary
AttributeContainer()
           
 
Method Summary
protected  void configureAttributes(org.w3c.dom.Node node, org.w3c.dom.xpath.XPathEvaluator evaluator)
          Assigns attribute definitions to this AttributeContainer reading from XML configuration.
protected  void disposeAttributes()
          Releases attributes.
protected  java.util.Map getAttributes()
          Gets the attributes.
protected  java.lang.String getFullName()
           
protected  java.lang.String getName()
           
protected  void initializeAttributes()
          Instantiates attributes using attribute definitions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final org.apache.log4j.Logger logger
logger FIXME how to get the logger from a subclass?


parentContainer

protected AttributeContainer parentContainer
Parent attribute container, if any.


name

protected java.lang.String name
attribute container name

Constructor Detail

AttributeContainer

public AttributeContainer()
Method Detail

configureAttributes

protected final void configureAttributes(org.w3c.dom.Node node,
                                         org.w3c.dom.xpath.XPathEvaluator evaluator)
                                  throws java.lang.Exception
Assigns attribute definitions to this AttributeContainer reading from XML configuration.

Throws:
java.lang.Exception

initializeAttributes

protected final void initializeAttributes()
                                   throws java.lang.Exception
Instantiates attributes using attribute definitions.

Throws:
java.lang.Exception

disposeAttributes

protected final void disposeAttributes()
                                throws java.lang.Exception
Releases attributes.

Throws:
java.lang.Exception

getAttributes

protected final java.util.Map getAttributes()
Gets the attributes.

Returns:
The attributes value

getName

protected java.lang.String getName()
Returns:
Returns the name of this attribute container.

getFullName

protected final java.lang.String getFullName()
Returns:
Returns the name of this attribute and its ancestors, separated by dots.


Copyright © 2003-2004 XFP Team. All Rights Reserved.