org.springframework.extensions.config.xml.elementreader
Class GenericElementReader

java.lang.Object
  extended by org.springframework.extensions.config.xml.elementreader.GenericElementReader
All Implemented Interfaces:
ConfigElementReader

public class GenericElementReader
extends Object
implements ConfigElementReader

Implementation of a generic element reader. This class can be used to convert any config element into a GenericConfigElement.

Author:
gavinc

Constructor Summary
GenericElementReader(XMLConfigService.PropertyConfigurer propertyConfigurer)
          Construct
 
Method Summary
protected  GenericConfigElement createConfigElement(org.dom4j.Element element)
          Creates a ConfigElementImpl object from the given element.
 ConfigElement parse(org.dom4j.Element element)
          Parses the given XML element into a ConfigElement object
protected  void processChildren(org.dom4j.Element element, GenericConfigElement parentConfig)
          Recursively processes the children creating the required config element objects as it goes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericElementReader

public GenericElementReader(XMLConfigService.PropertyConfigurer propertyConfigurer)
Construct

Parameters:
propertyConfigurer -
Method Detail

parse

public ConfigElement parse(org.dom4j.Element element)
Description copied from interface: ConfigElementReader
Parses the given XML element into a ConfigElement object

Specified by:
parse in interface ConfigElementReader
Parameters:
element - The XML element to parse
Returns:
The object representation of the XML element
See Also:
ConfigElementReader.parse(org.dom4j.Element)

processChildren

protected void processChildren(org.dom4j.Element element,
                               GenericConfigElement parentConfig)
Recursively processes the children creating the required config element objects as it goes

Parameters:
element -
parentConfig -

createConfigElement

protected GenericConfigElement createConfigElement(org.dom4j.Element element)
Creates a ConfigElementImpl object from the given element.

Parameters:
element - The element to parse
Returns:
The GenericConfigElement representation of the given element


Copyright © 2009 SpringSource, Inc. All Rights Reserved.