Class ConfigurationParser

java.lang.Object
com.gigaspaces.start.ConfigurationParser

public class ConfigurationParser extends Object
  • Constructor Details

  • Method Details

    • parseConfiguration

      public String[] parseConfiguration(File xmlFile) throws SAXException, IOException
      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:
      SAXException
      IOException
    • parseConfiguration

      public String[] parseConfiguration(URL xmlURL) throws IOException, SAXException
      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:
      IOException
      SAXException
    • parseConfiguration

      public String[] parseConfiguration(String xmlLocation) throws IOException, SAXException
      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.dtd document type definition
      Throws:
      IOException
      SAXException
    • parseConfiguration

      public String[] parseConfiguration(Document document)
      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

      public static List parseConfiguration(Element element)
      Parse a Configuration entry
      Returns:
      A List of configuration assignments
    • getTextValue

      public static String getTextValue(Node node)
      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

      public static void main(String[] args)