org.eclipse.actf.core.config
Class XmlConfiguration
java.lang.Object
org.eclipse.actf.core.config.AbstractConfiguration
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
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, 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. |
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 |
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
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