chemaxon.alchemist.configbuilder
Class AbstractConfigurationReader

java.lang.Object
  extended by chemaxon.alchemist.configbuilder.AbstractConfigurationReader

public abstract class AbstractConfigurationReader
extends java.lang.Object

This is an abstract configuration reader class for reading configuration xml files for configbuilder

Author:
Istvan Cseh

Field Summary
protected  java.io.InputStream inputStream
           
 
Constructor Summary
AbstractConfigurationReader(java.io.InputStream inputStream)
           
 
Method Summary
abstract  ConfigElement[] readConfiguration()
          Returns an array of ConfigElement instances provided by input
 ConfigElement[] readConfiguration(java.lang.String[] groupFilter)
          Returns an array of ConfigElement instances provided by input and matching groupFilter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

inputStream

protected java.io.InputStream inputStream
Constructor Detail

AbstractConfigurationReader

public AbstractConfigurationReader(java.io.InputStream inputStream)
Method Detail

readConfiguration

public abstract ConfigElement[] readConfiguration()
Returns an array of ConfigElement instances provided by input

Returns:
array of ConfigElement instances read from input

readConfiguration

public ConfigElement[] readConfiguration(java.lang.String[] groupFilter)
                                  throws javax.naming.OperationNotSupportedException
Returns an array of ConfigElement instances provided by input and matching groupFilter. Items set at least in one group will be loaded.
To read ungrouped items, add an empty string ("") into the filter.
Default implementation throws OperationNotSupportedException.

Parameters:
groupFilter - is an array of group names
Returns:
array of ConfigElement instances read from input, and matching filter
Throws:
javax.naming.OperationNotSupportedException