public abstract class AbstractParser extends java.lang.Object implements IParser
Constructor and Description |
---|
AbstractParser()
Creates a Parser for dealing with WMS XML.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addSRSNode(org.w3c.dom.Node n,
java.util.List<java.lang.String> srsList) |
protected BoundingBox |
boundingBoxFromNode(org.w3c.dom.Node n) |
protected void |
checkCapabilities(org.w3c.dom.Document doc) |
BoundingBox |
exGeographicBoundingBoxFromNode(org.w3c.dom.Node n) |
double |
getCoord(java.lang.String text) |
double |
getCoord(java.lang.String name,
org.w3c.dom.NamedNodeMap nm) |
protected java.util.LinkedList<java.lang.String> |
getFormatList(org.w3c.dom.Document doc) |
protected abstract java.lang.String |
getRootPath() |
protected abstract java.lang.String |
getSRSName() |
protected java.lang.String |
getTitle(org.w3c.dom.Document doc) |
protected java.lang.String |
getTitlePath() |
protected BoundingBox |
latLonBoundingBoxFromNode(org.w3c.dom.Node n) |
protected abstract Capabilities |
parseCapabilities(WMService service,
org.w3c.dom.Document doc) |
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 AbstractParser()
public Capabilities parseCapabilities(WMService service, java.io.InputStream inStream) throws java.io.IOException
parseCapabilities
in interface IParser
service
- the WMService from which this MapDescriptor is derivedinStream
- the inputStream containing the WMT_MS_Capabilities XML to parsejava.io.IOException
protected abstract java.lang.String getRootPath()
protected void checkCapabilities(org.w3c.dom.Document doc) throws java.io.IOException
java.io.IOException
protected abstract Capabilities parseCapabilities(WMService service, org.w3c.dom.Document doc) throws java.io.IOException
java.io.IOException
protected java.lang.String getTitlePath()
protected java.lang.String getTitle(org.w3c.dom.Document doc) throws java.io.IOException
java.io.IOException
protected java.util.LinkedList<java.lang.String> getFormatList(org.w3c.dom.Document doc) throws java.io.IOException
java.io.IOException
public MapLayer wmsLayerFromNode(org.w3c.dom.Node layerNode)
layerNode
- a DOM Node which is a protected void addSRSNode(org.w3c.dom.Node n, java.util.List<java.lang.String> srsList) throws java.lang.Exception
java.lang.Exception
protected BoundingBox boundingBoxFromNode(org.w3c.dom.Node n) throws java.lang.Exception
java.lang.Exception
protected BoundingBox latLonBoundingBoxFromNode(org.w3c.dom.Node n) throws java.lang.Exception
java.lang.Exception
public BoundingBox exGeographicBoundingBoxFromNode(org.w3c.dom.Node n) throws java.lang.Exception
java.lang.Exception
public double getCoord(java.lang.String name, org.w3c.dom.NamedNodeMap nm) throws java.lang.Exception
java.lang.Exception
public double getCoord(java.lang.String text) throws java.lang.Exception
java.lang.Exception
protected abstract java.lang.String getSRSName()