org.eclipse.actf.core.config
Class XmlConfiguration

java.lang.Object
  extended by org.eclipse.actf.core.config.AbstractConfiguration
      extended by org.eclipse.actf.core.config.XmlConfiguration
All Implemented Interfaces:
Serializable, IConfiguration

public class XmlConfiguration
extends AbstractConfiguration

a Configuration based on XML files which contain ACTF's default values.

Author:
Mike Squillace, Randy Horwitz
See Also:
Serialized Form

Nested Class Summary
protected  class XmlConfiguration.ParserHandler
           
 
Field Summary
 
Fields inherited from class org.eclipse.actf.core.config.AbstractConfiguration
_configMap, _curPool
 
Fields inherited from interface org.eclipse.actf.core.config.IConfiguration
ACTF_ID, ALIASES_ID, FILTER_CLASSNAME_ATTRIBUTE, FILTER_ID, FILTER_MODEL_ATTRIBUTE, FILTER_NODEIDS_ATTRIBUTE, FILTER_NODENAMES_ATTRIBUTE, FILTER_NODETYPES_ATTRIBUTE, MODEL_ADAPTOR_FACTORY, MODEL_BASE_TYPE, MODEL_ID, MODEL_IGNOREIDS, MODEL_IGNORENODENAMES, MODEL_LOCATOR, MODEL_LOCATORIDS_POOL, MODEL_POOL_ID_DELIMITER, SHOW_INVISIBLE_KEY, SHOW_ITEMS_KEY, TRACE_LEVEL_KEY, TRACE_STREAM_KEY, WORKING_DIR_KEY
 
Constructor Summary
XmlConfiguration()
          create a Configuration from the .xml files found in the resources directory or, if specified, using System Properties.
 
Method Summary
 void addConfigurationData(Object data)
          treats data object as an InputStream.
protected  Map addConfigurationData(Object data, Map configMap)
           
 Map getAttributeMap()
          This method returns an attributes map, keyed by all of the elements in the current pool.
 
Methods inherited from class org.eclipse.actf.core.config.AbstractConfiguration
createSymbolPool, getBooleanParameter, getClassParameter, getDoubleParameter, getIntParameter, getModelTypes, getParameter, getParameterAsString, getParameterNames, getStringParameter, getSymbolPool, getSymbolPoolContents, getSymbolPools, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setSymbolPool, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XmlConfiguration

public XmlConfiguration()
                 throws ConfigurationException
create a Configuration from the .xml files found in the resources directory or, if specified, using System Properties.

Throws:
ConfigurationException
Method Detail

addConfigurationData

public void addConfigurationData(Object data)
                          throws ConfigurationException
treats data object as an InputStream. The contents of the stream are assumed to be syntactically correct XML and valid markup within a actf.xml file for the ACTF engine. All model-specific configuration .xml files will be processed based on the contents of the 'model' pool.

Specified by:
addConfigurationData in interface IConfiguration
Overrides:
addConfigurationData in class AbstractConfiguration
Parameters:
data - configuration data in the form of an InputStream
Throws:
ConfigurationException

addConfigurationData

protected Map addConfigurationData(Object data,
                                   Map configMap)
                            throws ConfigurationException
Throws:
ConfigurationException

getAttributeMap

public Map getAttributeMap()
This method returns an attributes map, keyed by all of the elements in the current pool. The values are maps, holding the attributes and their values in key value form.

Returns:
the attribute map