Class Parser

java.lang.Object
com.vividsolutions.wms.Parser

public class Parser extends Object
Deprecated.
unused and can probably be deleted, kept for reference only
Pulls WMS objects out of the XML
Author:
Chris Hodgson chodgson@refractions.net
  • Constructor Details

    • Parser

      public Parser()
      Deprecated.
      Creates a Parser for dealing with WMS XML.
  • Method Details

    • parseCapabilities

      public Capabilities parseCapabilities(WMService service, InputStream inStream) throws IOException
      Deprecated.
      Parses the WMT_MS_Capabilities XML from the given InputStream into a Capabilities object.
      Parameters:
      service - the WMService from which this MapDescriptor is derived
      inStream - the inputStream containing the WMT_MS_Capabilities XML to parse
      Returns:
      the MapDescriptor object created from the specified XML InputStream
      Throws:
      IOException
    • wmsLayerFromNode

      public MapLayer wmsLayerFromNode(Node layerNode)
      Deprecated.
      Traverses the DOM tree underneath the specified Node and generates a corresponding WMSLayer object tree. The returned WMSLayer will be set to have the specified parent.
      Parameters:
      layerNode - a DOM Node which is a XML element
      Returns:
      a WMSLayer with complete subLayer tree that corresponds to the DOM Node provided
    • boundingBoxFromNode

      public BoundingBox boundingBoxFromNode(Node n) throws Exception
      Deprecated.
      Creates a new BoundingBox object based on the DOM Node given.
      Parameters:
      n - the DOM Node to create the Bounding box from, must be either a LatLonBoundingBox element or a BoundingBox element
      Returns:
      a new BoundingBox object based on the DOM Node provided
      Throws:
      Exception
    • getInfoFormats

      protected LinkedList<String> getInfoFormats(Document doc, String rootPath)
      Deprecated.