deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.ogcwebservices.wms.capabilities
Class WMSCapabilitiesDocument

java.lang.Object
  extended by org.deegree.framework.xml.XMLFragment
      extended by org.deegree.ogcbase.OGCDocument
          extended by org.deegree.ogcwebservices.getcapabilities.OGCCapabilitiesDocument
              extended by org.deegree.ogcwebservices.wms.capabilities.WMSCapabilitiesDocument
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
WMSCapabilitiesDocument_1_0_0, WMSCapabilitiesDocument_1_3_0, WMSConfigurationDocument

public class WMSCapabilitiesDocument
extends OGCCapabilitiesDocument

WMSCapabilitiesDocument is the parser class for WMS capabilities documents that uses the new OWS common classes to encapsulate the data.

Since:
2.0
Version:
2.0, $Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18 Jun 2009) $
Author:
Andreas Schmitz, last edited by: $Author: mschneider $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.deegree.ogcwebservices.getcapabilities.OGCCapabilitiesDocument
OGCNS
 
Fields inherited from class org.deegree.ogcbase.OGCDocument
GMLNS
 
Fields inherited from class org.deegree.framework.xml.XMLFragment
DEFAULT_URL, nsContext, XLNNS
 
Constructor Summary
WMSCapabilitiesDocument()
           
 
Method Summary
 void createEmptyDocument()
          Creates a skeleton capabilities document that contains the mandatory elements only.
protected  Attribution parseAttribution(org.w3c.dom.Element layerElem)
           
protected  AuthorityURL[] parseAuthorityURLs(org.w3c.dom.Element layerElem)
           
 OGCCapabilities parseCapabilities()
          Creates a class representation of the document.
protected  ContactInfo parseContactInfo()
           
protected  DataURL[] parseDataURL(org.w3c.dom.Element layerElem)
           
protected  DCP parseDCP(org.w3c.dom.Element element)
          Parses a DCPType element.
protected  Dimension[] parseDimensions(org.w3c.dom.Element layerElem)
           
protected  java.util.List<java.lang.String> parseExceptionFormats(org.w3c.dom.Element elem)
           
protected  Extent[] parseExtents(org.w3c.dom.Element layerElem)
           
protected  FeatureListURL[] parseFeatureListURL(org.w3c.dom.Element layerElem)
           
protected  Identifier[] parseIdentifiers(org.w3c.dom.Element layerElem)
           
protected  Envelope parseLatLonBoundingBox(org.w3c.dom.Element llBox)
           
protected  LayerBoundingBox[] parseLayerBoundingBoxes(java.util.List<org.w3c.dom.Element> nl)
           
protected  Layer parseLayers(org.w3c.dom.Element layerElem, Layer parent, ScaleHint scaleHint)
           
protected  LegendURL[] parseLegendURL(org.w3c.dom.Node node)
           
protected  MetadataURL[] parseMetadataURLs(org.w3c.dom.Element layerElem)
           
protected  Operation parseOperation(org.w3c.dom.Node node)
          Creates an Operation-instance according to the contents of the DOM-subtree starting at the given Node.
protected  OperationsMetadata parseOperationsMetadata()
          returns the services capabilitiy read from the WMS capabilities file
protected  ScaleHint parseScaleHint(org.w3c.dom.Element layerElem, ScaleHint scaleHint)
           
protected  ServiceIdentification parseServiceIdentification()
           
protected  ServiceProvider parseServiceProvider()
          returns WMS contact informaion encapsulated within a ServiceProvider object
protected  Style[] parseStyles(org.w3c.dom.Element layerElem)
           
protected  StyleSheetURL parseStyleSheetURL(org.w3c.dom.Node node)
           
protected  StyleURL parseStyleURL(org.w3c.dom.Node node)
           
protected  UserDefinedSymbolization parseUserDefinedSymbolization()
           
 
Methods inherited from class org.deegree.ogcwebservices.getcapabilities.OGCCapabilitiesDocument
parseAddress, parseMetadataLink, parsePhone, parseUpdateSequence, parseVersion
 
Methods inherited from class org.deegree.ogcbase.OGCDocument
parseCodeList, parseCodeListArray, parseExtendedPropertyPath, parseInterval, parseKeywords, parseKeywords, parseLonLatEnvelope, parseOnLineResource, parsePropertyPath, parseTimePeriod, parseTimePeriods, parseTimePositions, parseTimeSequence, parseTypedLiteral, parseValues
 
Methods inherited from class org.deegree.framework.xml.XMLFragment
getAsPrettyString, getAsString, getAttachedSchemas, getQualifiedName, getRootElement, getSystemId, hasSchema, load, load, load, parseQualifiedName, parseSimpleLink, prettyPrint, prettyPrint, resolve, setRootElement, setSystemId, setSystemId, toString, write, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WMSCapabilitiesDocument

public WMSCapabilitiesDocument()
Method Detail

createEmptyDocument

public void createEmptyDocument()
                         throws java.io.IOException,
                                org.xml.sax.SAXException
Creates a skeleton capabilities document that contains the mandatory elements only.

Throws:
java.io.IOException
org.xml.sax.SAXException

parseExceptionFormats

protected java.util.List<java.lang.String> parseExceptionFormats(org.w3c.dom.Element elem)
                                                          throws XMLParsingException
Throws:
XMLParsingException

parseCapabilities

public OGCCapabilities parseCapabilities()
                                  throws InvalidCapabilitiesException
Creates a class representation of the document.

Specified by:
parseCapabilities in class OGCCapabilitiesDocument
Returns:
class representation of the configuration document
Throws:
InvalidCapabilitiesException

parseServiceIdentification

protected ServiceIdentification parseServiceIdentification()
                                                    throws XMLParsingException
Returns:
the services indentification read from the WMS capabilities service section
Throws:
XMLParsingException

parseServiceProvider

protected ServiceProvider parseServiceProvider()
                                        throws XMLParsingException
returns WMS contact informaion encapsulated within a ServiceProvider object

Returns:
the service provider data
Throws:
XMLParsingException

parseContactInfo

protected ContactInfo parseContactInfo()
                                throws XMLParsingException
Returns:
the contact information
Throws:
XMLParsingException

parseOperationsMetadata

protected OperationsMetadata parseOperationsMetadata()
                                              throws XMLParsingException
returns the services capabilitiy read from the WMS capabilities file

Returns:
the operations metadata
Throws:
XMLParsingException

parseOperation

protected Operation parseOperation(org.w3c.dom.Node node)
                            throws XMLParsingException
Creates an Operation-instance according to the contents of the DOM-subtree starting at the given Node.

Notice: operation to be parsed must be operations in sense of WMS 1.0.0 - 1.3.0 and not as defined in OWSCommons. But the method will return an OWSCommon Operation which encapsulates parsed WMS operation

Parameters:
node - the Element that describes an Operation
Returns:
the constructed Operation-instance
Throws:
XMLParsingException - if a syntactic or semantic error in the DOM-subtree is encountered

parseDCP

protected DCP parseDCP(org.w3c.dom.Element element)
                throws XMLParsingException
Parses a DCPType element. Does not override the method defined in the base class any more.

Parameters:
element -
Returns:
created DCPType
Throws:
XMLParsingException
See Also:
OGCStandardCapabilities

parseUserDefinedSymbolization

protected UserDefinedSymbolization parseUserDefinedSymbolization()
                                                          throws XMLParsingException
Returns:
the parsed data
Throws:
XMLParsingException

parseLayers

protected Layer parseLayers(org.w3c.dom.Element layerElem,
                            Layer parent,
                            ScaleHint scaleHint)
                     throws XMLParsingException,
                            UnknownCRSException
Parameters:
layerElem -
parent -
scaleHint -
Returns:
the layer created from the given element
Throws:
XMLParsingException
UnknownCRSException

parseDimensions

protected Dimension[] parseDimensions(org.w3c.dom.Element layerElem)
                               throws XMLParsingException
Parameters:
layerElem -
Returns:
the dimensions
Throws:
XMLParsingException

parseExtents

protected Extent[] parseExtents(org.w3c.dom.Element layerElem)
                         throws XMLParsingException
Parameters:
layerElem -
Returns:
the extent
Throws:
XMLParsingException

parseAttribution

protected Attribution parseAttribution(org.w3c.dom.Element layerElem)
                                throws XMLParsingException
Parameters:
layerElem -
Returns:
the attribution
Throws:
XMLParsingException

parseAuthorityURLs

protected AuthorityURL[] parseAuthorityURLs(org.w3c.dom.Element layerElem)
                                     throws XMLParsingException
Parameters:
layerElem -
Returns:
the URLs
Throws:
XMLParsingException

parseMetadataURLs

protected MetadataURL[] parseMetadataURLs(org.w3c.dom.Element layerElem)
                                   throws XMLParsingException
Parameters:
layerElem -
Returns:
the URLs
Throws:
XMLParsingException

parseDataURL

protected DataURL[] parseDataURL(org.w3c.dom.Element layerElem)
                          throws XMLParsingException
Parameters:
layerElem -
Returns:
the URLs
Throws:
XMLParsingException

parseFeatureListURL

protected FeatureListURL[] parseFeatureListURL(org.w3c.dom.Element layerElem)
                                        throws XMLParsingException
Parameters:
layerElem -
Returns:
the URLs
Throws:
XMLParsingException

parseStyles

protected Style[] parseStyles(org.w3c.dom.Element layerElem)
                       throws XMLParsingException
Parameters:
layerElem -
Returns:
the styles
Throws:
XMLParsingException

parseLegendURL

protected LegendURL[] parseLegendURL(org.w3c.dom.Node node)
                              throws XMLParsingException
Parameters:
node -
Returns:
the URLs
Throws:
XMLParsingException

parseStyleURL

protected StyleURL parseStyleURL(org.w3c.dom.Node node)
                          throws XMLParsingException
Parameters:
node -
Returns:
the URL
Throws:
XMLParsingException

parseStyleSheetURL

protected StyleSheetURL parseStyleSheetURL(org.w3c.dom.Node node)
                                    throws XMLParsingException
Parameters:
node -
Returns:
the URL
Throws:
XMLParsingException

parseScaleHint

protected ScaleHint parseScaleHint(org.w3c.dom.Element layerElem,
                                   ScaleHint scaleHint)
                            throws XMLParsingException
Parameters:
layerElem -
scaleHint - the default scale hint
Returns:
the scale hint
Throws:
XMLParsingException

parseIdentifiers

protected Identifier[] parseIdentifiers(org.w3c.dom.Element layerElem)
                                 throws XMLParsingException
Parameters:
layerElem -
Returns:
the identifiers
Throws:
XMLParsingException

parseLayerBoundingBoxes

protected LayerBoundingBox[] parseLayerBoundingBoxes(java.util.List<org.w3c.dom.Element> nl)
                                              throws XMLParsingException
Parameters:
nl -
Returns:
the bboxes
Throws:
XMLParsingException

parseLatLonBoundingBox

protected Envelope parseLatLonBoundingBox(org.w3c.dom.Element llBox)
                                   throws XMLParsingException,
                                          UnknownCRSException
Parameters:
llBox -
Returns:
the envelope
Throws:
XMLParsingException
UnknownCRSException

deegree 2.5 (2011/06/29 09:44 build-8-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org