org.ow2.util.xmlconfig.source
Interface IConfigurationSource

All Known Implementing Classes:
InputStreamConfigurationSource, XMLConfigurationSource

public interface IConfigurationSource

Represents the source of a configuration.

Author:
Guillaume Sauthier

Method Summary
 org.w3c.dom.Document getDocument(boolean validating)
          Parse the configuration source's content.
 java.lang.String getName()
           
 

Method Detail

getName

java.lang.String getName()
Returns:
the name of the source (useful for textual representation).

getDocument

org.w3c.dom.Document getDocument(boolean validating)
                                 throws org.ow2.util.xml.DocumentParserException
Parse the configuration source's content.

Parameters:
validating - is the parser validating ?
Returns:
the parsed Document
Throws:
org.ow2.util.xml.DocumentParserException - if the document cannot be parsed or is not valid.


Copyright © 2007-2009 OW2 Consortium. All Rights Reserved.