public class ConfigurationParser extends Object
| Constructor and Description | 
|---|
ConfigurationParser()
Create a new ConfigurationParser, without document validation. 
 | 
ConfigurationParser(boolean verify,
                   ClassLoader loader)
Create a new ConfigurationParser 
 | 
ConfigurationParser(ClassLoader loader)
Create a new ConfigurationParser, without document validation. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static String | 
getTextValue(Node node)
Get the text value for a node 
 | 
static void | 
main(String[] args)  | 
String[] | 
parseConfiguration(Document document)
Parse an XML Configuration from a Document 
 | 
static List | 
parseConfiguration(Element element)
Parse a Configuration entry 
 | 
String[] | 
parseConfiguration(File xmlFile)
Parse an XML Configuration from a File 
 | 
String[] | 
parseConfiguration(String xmlLocation)
Parse an XML Configuration from a File a String location. 
 | 
String[] | 
parseConfiguration(URL xmlURL)
Parse an XML Configuration from a File an URL location. 
 | 
public ConfigurationParser()
                    throws ParserConfigurationException
ParserConfigurationExceptionpublic ConfigurationParser(ClassLoader loader) throws ParserConfigurationException
loader - The parent ClassLoader to use for delegationParserConfigurationExceptionpublic ConfigurationParser(boolean verify,
                           ClassLoader loader)
                    throws ParserConfigurationException
verify - If true specifies that the parser produced by this code will validate documents
               as they are parsed.loader - The parent ClassLoader to use for delegationParserConfigurationExceptionpublic String[] parseConfiguration(File xmlFile) throws SAXException, IOException
xmlFile - A File object for an XML fileSAXExceptionIOExceptionpublic String[] parseConfiguration(URL xmlURL) throws IOException, SAXException
xmlURL - URL location of the XML fileIOExceptionSAXExceptionpublic String[] parseConfiguration(String xmlLocation) throws IOException, SAXException
xmlLocation - String location of the XML file. The parameter passed in can either point
                    to an URL (prefixed by http) or a file found in the classpath.rio_opstring.dtd
 document type definitionIOExceptionSAXExceptionpublic String[] parseConfiguration(Document document)
document - The DOM org.w3c.dom.Document object from an XML documentpublic static List parseConfiguration(Element element)
public static String getTextValue(Node node)
node - The Node to get the text value forpublic static void main(String[] args)
Copyright © GigaSpaces.