Package com.gigaspaces.start
Class ConfigurationParser
java.lang.Object
com.gigaspaces.start.ConfigurationParser
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a new ConfigurationParser, without document validation.ConfigurationParser(boolean verify, ClassLoader loader) Create a new ConfigurationParserConfigurationParser(ClassLoader loader) Create a new ConfigurationParser, without document validation. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetTextValue(Node node) Get the text value for a nodestatic voidString[]parseConfiguration(File xmlFile) Parse an XML Configuration from a FileString[]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.String[]parseConfiguration(Document document) Parse an XML Configuration from a Documentstatic ListparseConfiguration(Element element) Parse a Configuration entry
-
Constructor Details
-
ConfigurationParser
Create a new ConfigurationParser, without document validation.- Throws:
ParserConfigurationException
-
ConfigurationParser
Create a new ConfigurationParser, without document validation.- Parameters:
loader- The parent ClassLoader to use for delegation- Throws:
ParserConfigurationException
-
ConfigurationParser
Create a new ConfigurationParser- Parameters:
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 delegation- Throws:
ParserConfigurationException
-
-
Method Details
-
parseConfiguration
Parse an XML Configuration from a File- Parameters:
xmlFile- A File object for an XML file- Returns:
- An array of String objects parsed from an XML file.
- Throws:
SAXExceptionIOException
-
parseConfiguration
Parse an XML Configuration from a File an URL location.- Parameters:
xmlURL- URL location of the XML file- Returns:
- An array of String objects parsed from an XML document loaded from the URL.
- Throws:
IOExceptionSAXException
-
parseConfiguration
Parse an XML Configuration from a File a String location.- Parameters:
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.- Returns:
- An array of String objects parsed from an XML document loaded from the location. This
method should be used if the XML document is based on the
rio_opstring.dtddocument type definition - Throws:
IOExceptionSAXException
-
parseConfiguration
Parse an XML Configuration from a Document- Parameters:
document- The DOM org.w3c.dom.Document object from an XML document- Returns:
- An array of String objects parsed from an XML document
-
parseConfiguration
Parse a Configuration entry- Returns:
- A List of configuration assignments
-
getTextValue
Get the text value for a node- Parameters:
node- The Node to get the text value for- Returns:
- The text value for the Node, or a zero-length String if the Node is not recognized
-
main
-