org.deegree_impl.services.wms.capabilities
Class OGCWMSCapabilitiesFactory

java.lang.Object
  extended byorg.deegree_impl.services.wms.capabilities.OGCWMSCapabilitiesFactory
Direct Known Subclasses:
DeegreeWMSCapabilitiesFactory

public class OGCWMSCapabilitiesFactory
extends java.lang.Object

Factory class for creating WMS capability classes from WMS capabilities XML documents that comply to the OGC WMS 1.1.1 specification.

Version:
$Revision: 1.25 $ $Date: 2004/04/27 15:40:38 $
Author:
Andreas Poth, Axel Schaefer, Markus Schneider

Field Summary
protected  WMSCapabilities capabilities
           
protected  java.util.Set collectedLayers
           
protected  java.lang.String ogcNS
           
protected  java.lang.String version
           
protected  java.lang.String wfsNS
           
protected  java.lang.String wmsNS
           
protected  java.lang.String xlnNS
           
 
Constructor Summary
OGCWMSCapabilitiesFactory()
           
 
Method Summary
protected  Attribution createAttribution(org.w3c.dom.Element element)
          Creates an Attribution-instance according to the contents of the DOM-subtree starting at the given 'Attribution'-Element.
protected  AuthorityURL createAuthorityURL(org.w3c.dom.Element element)
          Creates an AuthorityURL-instance according to the contents of the DOM-subtree starting at the given 'AuthorityURL'-Element.
protected  LayerBoundingBox createBoundingBox(org.w3c.dom.Element element)
          Creates a LayerBoundingBox-instance according to the contents of the DOM-subtree starting at the given 'BoundingBox'-Element.
protected  WMSCapabilities createCapabilities(org.w3c.dom.Element element)
          Creates a WMSCapabilities-instance according to the contents of the DOM-subtree starting at the given 'WMT_MS_Capabilities'-Element.
 WMSCapabilities createCapabilities(java.io.Reader reader)
          Creates a WMSCapabilities-instance from the given Reader.
 WMSCapabilities createCapabilities(java.net.URL url)
          Creates a WMSCapabilities-instance from the given URL.
protected  Capability createCapability(org.w3c.dom.Element element)
          Creates a Capability-instance according to the contents of the DOM-subtree starting at the given 'Capability'-Element.
protected  ContactAddress createContactAddress(org.w3c.dom.Element element)
          Creates a ContactAddress-instance according to the contents of the DOM-subtree starting at the given 'ContactAddress'-Element.
protected  ContactInformation createContactInformation(org.w3c.dom.Element element)
          Creates a ContactInformation-instance according to the contents of the DOM-subtree starting at the given 'ContactInformation'-Element.
protected  ContactPersonPrimary createContactPersonPrimary(org.w3c.dom.Element element)
          Creates a ContactPersonPrimary-instance according to the contents of the DOM-subtree starting at the given 'ContactPersonPrimary'-Element.
protected  DataURL createDataURL(org.w3c.dom.Element element)
          Creates a DataURL-instance according to the contents of the DOM-subtree starting at the given 'DataURL'-Element.
protected  DCPType createDCPType(org.w3c.dom.Element element)
          Creates a DCPType-instance according to the contents of the DOM-subtree starting at the given 'DCPType'-Element.
protected  Dimension createDimension(org.w3c.dom.Element element)
          Creates a Dimension-instance according to the contents of the DOM-subtree starting at the given 'Dimension'-Element.
protected  CException createException(org.w3c.dom.Element element)
          Creates a CException-instance according to the contents of the DOM-subtree starting at the given 'Exception'-Element.
protected  Extent createExtent(org.w3c.dom.Element element)
          Creates an Extent-instance according to the contents of the DOM-subtree starting at the given 'Extent'-Element.
protected  FeatureListURL createFeatureListURL(org.w3c.dom.Element element)
          Creates a FeatureListURL-instance according to the contents of the DOM-subtree starting at the given 'FeatureListURL'-Element.
protected  Identifier createIdentifier(org.w3c.dom.Element element)
          Creates an Identifier-instance according to the contents of the DOM-subtree starting at the given 'Identifier'-Element.
protected  GM_Envelope createLatLonBoundingBox(org.w3c.dom.Element element)
          Creates a GM_Envelope-instance according to the contents of the DOM-subtree starting at the given 'LatLonBoundingBox'-Element.
protected  Layer createLayer(org.w3c.dom.Element element)
          Creates a Layer-instance according to the contents of the DOM-subtree starting at the given 'Layer'-Element.
protected  LegendURL createLegendURL(org.w3c.dom.Element element)
          Creates a LegendURL-instance according to the contents of the DOM-subtree starting at the given 'LegendURL'-Element.
protected  LogoURL createLogoURL(org.w3c.dom.Element element)
          Creates a LogoURL-instance according to the contents of the DOM-subtree starting at the given 'LogoURL'-Element.
protected  MetadataURL createMetadataURL(org.w3c.dom.Element element)
          Creates a MetadataURL-instance according to the contents of the DOM-subtree starting at the given 'MetadataURL'-Element.
protected  java.net.URL createOnlineResource(org.w3c.dom.Element element)
          Creates an URL-instance according to the contents of the DOM-subtree starting at the given 'OnlineResource'-Element.
protected  Operation createOperation(org.w3c.dom.Element element)
          Creates an Operation-instance according to the contents of the DOM-subtree starting at the given Element.
protected  Request createRequest(org.w3c.dom.Element element)
          Creates a Request-instance according to the contents of the DOM-subtree starting at the given 'Request'-Element.
protected  ScaleHint createScaleHint(org.w3c.dom.Element element)
          Creates a ScaleHint-instance according to the contents of the DOM-subtree starting at the given 'ScaleHint'-Element.
protected  Service createService(org.w3c.dom.Element element)
          Creates a Service-instance according to the contents of the DOM-subtree starting at the given 'Service'-Element.
protected  Style createStyle(org.w3c.dom.Element element)
          Creates a Style-instance according to the contents of the DOM-subtree starting at the given 'Style'-Element.
protected  StyleSheetURL createStyleSheetURL(org.w3c.dom.Element element)
          Creates a StyleSheetURL-instance according to the contents of the DOM-subtree starting at the given 'StyleSheetURL'-Element.
protected  StyleURL createStyleURL(org.w3c.dom.Element element)
          Creates a StyleURL-instance according to the contents of the DOM-subtree starting at the given 'StyleURL'-Element.
protected  UserDefinedSymbolization createUserDefinedSymbolization(org.w3c.dom.Element element)
          Creates a UserDefinedSymbolization-instance according to the contents of the DOM-subtree starting at the given 'UserDefinedSymbolization'-Element.
protected  org.w3c.dom.Document createVendorSpecificCapabilities(org.w3c.dom.Element element)
          Creates a Document-instance according to the contents of the DOM-subtree starting at the given 'VendorSpecificCapabilities'-Element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ogcNS

protected java.lang.String ogcNS

wfsNS

protected java.lang.String wfsNS

wmsNS

protected java.lang.String wmsNS

xlnNS

protected java.lang.String xlnNS

capabilities

protected WMSCapabilities capabilities

version

protected java.lang.String version

collectedLayers

protected java.util.Set collectedLayers
Constructor Detail

OGCWMSCapabilitiesFactory

public OGCWMSCapabilitiesFactory()
Method Detail

createCapabilities

public WMSCapabilities createCapabilities(java.net.URL url)
                                   throws XMLParsingException
Creates a WMSCapabilities-instance from the given URL.

Parameters:
url - location of capabilities document
Returns:
the constructed WMSCapabilities-instance
Throws:
XMLParsingException - if a syntactic or semantic error in the XML document is encountered

createCapabilities

public WMSCapabilities createCapabilities(java.io.Reader reader)
                                   throws XMLParsingException
Creates a WMSCapabilities-instance from the given Reader.

Parameters:
reader - provides the XML document
Returns:
the constructed WMSCapabilities-instance
Throws:
XMLParsingException - if a syntactic or semantic error in the XML document is encountered

createCapabilities

protected WMSCapabilities createCapabilities(org.w3c.dom.Element element)
                                      throws XMLParsingException
Creates a WMSCapabilities-instance according to the contents of the DOM-subtree starting at the given 'WMT_MS_Capabilities'-Element.

Parameters:
element - the 'WMT_MS_Capabilities'-Element
Returns:
the constructed WMSCapabilities-instance
Throws:
XMLParsingException - if a syntactic or semantic error in the DOM-subtree is encountered

createService

protected Service createService(org.w3c.dom.Element element)
                         throws XMLParsingException
Creates a Service-instance according to the contents of the DOM-subtree starting at the given 'Service'-Element.

Parameters:
element - the 'Service'-Element
Returns:
the constructed Service-instance
Throws:
XMLParsingException - if a syntactic or semantic error in the DOM-subtree is encountered

createOnlineResource

protected java.net.URL createOnlineResource(org.w3c.dom.Element element)
                                     throws XMLParsingException
Creates an URL-instance according to the contents of the DOM-subtree starting at the given 'OnlineResource'-Element.

Parameters:
element - the 'OnlineResource'-Element
Returns:
the constructed URL-instance
Throws:
XMLParsingException - if a syntactic or semantic error in the DOM-subtree is encountered

createContactInformation

protected ContactInformation createContactInformation(org.w3c.dom.Element element)
                                               throws XMLParsingException
Creates a ContactInformation-instance according to the contents of the DOM-subtree starting at the given 'ContactInformation'-Element.

Parameters:
element - the 'ContactInformation'-Element
Returns:
the constructed ContactInformation-instance
Throws:
XMLParsingException - if a syntactic or semantic error in the DOM-subtree is encountered

createContactPersonPrimary

protected ContactPersonPrimary createContactPersonPrimary(org.w3c.dom.Element element)
                                                   throws XMLParsingException
Creates a ContactPersonPrimary-instance according to the contents of the DOM-subtree starting at the given 'ContactPersonPrimary'-Element.

Parameters:
element - the 'ContactPersonPrimary'-Element
Returns:
the constructed ContactPersonPrimary-instance
Throws:
XMLParsingException - if a syntactic or semantic error in the DOM-subtree is encountered

createContactAddress

protected ContactAddress createContactAddress(org.w3c.dom.Element element)
                                       throws XMLParsingException
Creates a ContactAddress-instance according to the contents of the DOM-subtree starting at the given 'ContactAddress'-Element.

Parameters:
element - the 'ContactAddress'-Element
Returns:
the constructed ContactAddress-instance
Throws:
XMLParsingException - if a syntactic or semantic error in the DOM-subtree is encountered

createCapability

protected Capability createCapability(org.w3c.dom.Element element)
                               throws XMLParsingException
Creates a Capability-instance according to the contents of the DOM-subtree starting at the given 'Capability'-Element.

Parameters:
element - the 'Capability'-Element
Returns:
the constructed Capability-instance
Throws:
XMLParsingException - if a syntactic or semantic error in the DOM-subtree is encountered

createRequest

protected Request createRequest(org.w3c.dom.Element element)
                         throws XMLParsingException
Creates a Request-instance according to the contents of the DOM-subtree starting at the given 'Request'-Element.

Parameters:
element - the 'Request'-Element
Returns:
the constructed Request-instance
Throws:
XMLParsingException - if a syntactic or semantic error in the DOM-subtree is encountered

createOperation

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

Parameters:
element - 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

createDCPType

protected DCPType createDCPType(org.w3c.dom.Element element)
                         throws XMLParsingException
Creates a DCPType-instance according to the contents of the DOM-subtree starting at the given 'DCPType'-Element.

Parameters:
element - the 'DCPType'-Element
Returns:
the constructed DCPType-instance
Throws:
XMLParsingException - if a syntactic or semantic error in the DOM-subtree is encountered

createException

protected CException createException(org.w3c.dom.Element element)
                              throws XMLParsingException
Creates a CException-instance according to the contents of the DOM-subtree starting at the given 'Exception'-Element.

Parameters:
element - the 'Exception'-Element
Returns:
the constructed CException-instance
Throws:
XMLParsingException - if a syntactic or semantic error in the DOM-subtree is encountered

createVendorSpecificCapabilities

protected org.w3c.dom.Document createVendorSpecificCapabilities(org.w3c.dom.Element element)
                                                         throws XMLParsingException
Creates a Document-instance according to the contents of the DOM-subtree starting at the given 'VendorSpecificCapabilities'-Element.

Parameters:
element - the 'VendorSpecificCapabilities'-Element
Returns:
the constructed Document-instance
Throws:
XMLParsingException - if a syntactic or semantic error in the DOM-subtree is encountered

createUserDefinedSymbolization

protected UserDefinedSymbolization createUserDefinedSymbolization(org.w3c.dom.Element element)
                                                           throws XMLParsingException
Creates a UserDefinedSymbolization-instance according to the contents of the DOM-subtree starting at the given 'UserDefinedSymbolization'-Element.

Parameters:
element - the 'UserDefinedSymbolization'-Element
Returns:
the constructed UserDefinedSymbolization-instance
Throws:
XMLParsingException - if a syntactic or semantic error in the DOM-subtree is encountered

createLayer

protected Layer createLayer(org.w3c.dom.Element element)
                     throws XMLParsingException
Creates a Layer-instance according to the contents of the DOM-subtree starting at the given 'Layer'-Element.

Parameters:
element - the 'Layer'-Element
Returns:
the constructed Layer/tt>-instance
Throws:
XMLParsingException - if a syntactic or semantic error in the DOM-subtree is encountered

createAttribution

protected Attribution createAttribution(org.w3c.dom.Element element)
                                 throws XMLParsingException
Creates an Attribution-instance according to the contents of the DOM-subtree starting at the given 'Attribution'-Element.

Parameters:
element - the 'Attribution'-Element
Returns:
the constructed Attribution-instance
Throws:
XMLParsingException - if a syntactic or semantic error in the DOM-subtree is encountered

createLatLonBoundingBox

protected GM_Envelope createLatLonBoundingBox(org.w3c.dom.Element element)
                                       throws XMLParsingException
Creates a GM_Envelope-instance according to the contents of the DOM-subtree starting at the given 'LatLonBoundingBox'-Element.

Parameters:
element - the 'LatLonBoundingBox'-Element
Returns:
the constructed GM_Envelope-instance
Throws:
XMLParsingException - if a syntactic or semantic error in the DOM-subtree is encountered

createBoundingBox

protected LayerBoundingBox createBoundingBox(org.w3c.dom.Element element)
                                      throws XMLParsingException
Creates a LayerBoundingBox-instance according to the contents of the DOM-subtree starting at the given 'BoundingBox'-Element.

Parameters:
element - the 'BoundingBox'-Element
Returns:
the constructed LayerBoundingBox-instance
Throws:
XMLParsingException - if a syntactic or semantic error in the DOM-subtree is encountered

createDimension

protected Dimension createDimension(org.w3c.dom.Element element)
                             throws XMLParsingException
Creates a Dimension-instance according to the contents of the DOM-subtree starting at the given 'Dimension'-Element.

Parameters:
element - the 'Dimension'-Element
Returns:
the constructed Dimension-instance
Throws:
XMLParsingException - if a syntactic or semantic error in the DOM-subtree is encountered

createExtent

protected Extent createExtent(org.w3c.dom.Element element)
                       throws XMLParsingException
Creates an Extent-instance according to the contents of the DOM-subtree starting at the given 'Extent'-Element.

Parameters:
element - the 'Extent'-Element
Returns:
the constructed Extent/tt>-instance
Throws:
XMLParsingException - if a syntactic or semantic error in the DOM-subtree is encountered

createLogoURL

protected LogoURL createLogoURL(org.w3c.dom.Element element)
                         throws XMLParsingException
Creates a LogoURL-instance according to the contents of the DOM-subtree starting at the given 'LogoURL'-Element.

Parameters:
element - the 'LogoURL'-Element
Returns:
the constructed LogoURL-instance
Throws:
XMLParsingException - if a syntactic or semantic error in the DOM-subtree is encountered

createAuthorityURL

protected AuthorityURL createAuthorityURL(org.w3c.dom.Element element)
                                   throws XMLParsingException
Creates an AuthorityURL-instance according to the contents of the DOM-subtree starting at the given 'AuthorityURL'-Element.

Parameters:
element - the 'AuthorityURL'-Element
Returns:
the constructed AuthorityURL-instance
Throws:
XMLParsingException - if a syntactic or semantic error in the DOM-subtree is encountered

createIdentifier

protected Identifier createIdentifier(org.w3c.dom.Element element)
                               throws XMLParsingException
Creates an Identifier-instance according to the contents of the DOM-subtree starting at the given 'Identifier'-Element.

Parameters:
element - the 'Identifier'-Element
Returns:
the constructed Identifier-instance
Throws:
XMLParsingException - if a syntactic or semantic error in the DOM-subtree is encountered

createMetadataURL

protected MetadataURL createMetadataURL(org.w3c.dom.Element element)
                                 throws XMLParsingException
Creates a MetadataURL-instance according to the contents of the DOM-subtree starting at the given 'MetadataURL'-Element.

Parameters:
element - the 'MetadataURL'-Element
Returns:
the constructed MetadataURL-instance
Throws:
XMLParsingException - if a syntactic or semantic error in the DOM-subtree is encountered

createDataURL

protected DataURL createDataURL(org.w3c.dom.Element element)
                         throws XMLParsingException
Creates a DataURL-instance according to the contents of the DOM-subtree starting at the given 'DataURL'-Element.

Parameters:
element - the 'DataURL'-Element
Returns:
the constructed DataURL-instance
Throws:
XMLParsingException - if a syntactic or semantic error in the DOM-subtree is encountered

createFeatureListURL

protected FeatureListURL createFeatureListURL(org.w3c.dom.Element element)
                                       throws XMLParsingException
Creates a FeatureListURL-instance according to the contents of the DOM-subtree starting at the given 'FeatureListURL'-Element.

Parameters:
element - the 'FeatureListURL'-Element
Returns:
the constructed FeatureListURL-instance
Throws:
XMLParsingException - if a syntactic or semantic error in the DOM-subtree is encountered

createStyle

protected Style createStyle(org.w3c.dom.Element element)
                     throws XMLParsingException
Creates a Style-instance according to the contents of the DOM-subtree starting at the given 'Style'-Element.

Parameters:
element - the 'Style'-Element
Returns:
the constructed Style-instance
Throws:
XMLParsingException - if a syntactic or semantic error in the DOM-subtree is encountered

createLegendURL

protected LegendURL createLegendURL(org.w3c.dom.Element element)
                             throws XMLParsingException
Creates a LegendURL-instance according to the contents of the DOM-subtree starting at the given 'LegendURL'-Element.

Parameters:
element - the 'LegendURL'-Element
Returns:
the constructed LegendURL-instance
Throws:
XMLParsingException - if a syntactic or semantic error in the DOM-subtree is encountered

createStyleSheetURL

protected StyleSheetURL createStyleSheetURL(org.w3c.dom.Element element)
                                     throws XMLParsingException
Creates a StyleSheetURL-instance according to the contents of the DOM-subtree starting at the given 'StyleSheetURL'-Element.

Parameters:
element - the 'StyleSheetURL'-Element
Returns:
the constructed StyleSheetURL-instance
Throws:
XMLParsingException - if a syntactic or semantic error in the DOM-subtree is encountered

createStyleURL

protected StyleURL createStyleURL(org.w3c.dom.Element element)
                           throws XMLParsingException
Creates a StyleURL-instance according to the contents of the DOM-subtree starting at the given 'StyleURL'-Element.

Parameters:
element - the 'StyleURL'-Element
Returns:
the constructed StyleURL-instance
Throws:
XMLParsingException - if a syntactic or semantic error in the DOM-subtree is encountered

createScaleHint

protected ScaleHint createScaleHint(org.w3c.dom.Element element)
                             throws XMLParsingException
Creates a ScaleHint-instance according to the contents of the DOM-subtree starting at the given 'ScaleHint'-Element.

Parameters:
element - the 'ScaleHint'-Element
Returns:
the constructed ScaleHint-instance
Throws:
XMLParsingException - if a syntactic or semantic error in the DOM-subtree is encountered