public class Parser
extends java.lang.Object
Constructor and Description |
---|
Parser()
Creates a Parser for dealing with WMS XML.
|
Modifier and Type | Method and Description |
---|---|
BoundingBox |
boundingBoxFromNode(org.w3c.dom.Node n)
Creates a new BoundingBox object based on the DOM Node given.
|
Capabilities |
parseCapabilities(WMService service,
java.io.InputStream inStream)
Parses the WMT_MS_Capabilities XML from the given InputStream into
a Capabilities object.
|
MapLayer |
wmsLayerFromNode(org.w3c.dom.Node layerNode)
Traverses the DOM tree underneath the specified Node and generates
a corresponding WMSLayer object tree.
|
public Capabilities parseCapabilities(WMService service, java.io.InputStream inStream) throws java.io.IOException
service
- the WMService from which this MapDescriptor is derivedinStream
- the inputStream containing the WMT_MS_Capabilities XML to parsejava.io.IOException
public MapLayer wmsLayerFromNode(org.w3c.dom.Node layerNode)
layerNode
- a DOM Node which is a public BoundingBox boundingBoxFromNode(org.w3c.dom.Node n) throws java.lang.Exception
n
- the DOM Node to create the Bounding box from, must be either a
LatLonBoundingBox element or a BoundingBox elementjava.lang.Exception