org.deegree_impl.services.wcas.capabilities
Class WCASCapabilitiesFactory

java.lang.Object
  extended byorg.deegree_impl.services.wcas.capabilities.WCASCapabilitiesFactory

public final class WCASCapabilitiesFactory
extends java.lang.Object

Factory class for creating a catalog capabilities object from a XML document.

---------------------------------------------------------------------

Version:
$Revision: 1.8 $ $Date: 2004/02/23 07:47:51 $

Author:
Andreas Poth

Field Summary
private static java.lang.String iso19115ns
           
private static java.lang.String iso19119ns
           
private static java.lang.String namespace
           
 
Constructor Summary
WCASCapabilitiesFactory()
           
 
Method Summary
static WCASCapabilities createCapabilities(org.w3c.dom.Document doc)
          factory method for creating a WFSCapabilities object from a OGC WFS 1.0.0 conform XML capabilities document
static WCASCapabilities createCapabilities(java.net.URL url)
          factory method for creating a WCASCapabilities object from a file that contains XML capabilities document
private static Capability getCapability(org.w3c.dom.Element capElement)
          returns an instance of an object that capsulates the service element of the WFS capabilities.
private static DCPType[] getDCPTypes(org.w3c.dom.NodeList nl)
          returns the addresses and protocols a request can be reached
private static CException getExceptions(org.w3c.dom.Element element)
          returns the format exception will be retruned
private static FederatedCatalog[] getFederatedCatalogs(org.w3c.dom.NodeList nl)
          returns the federated catalogs that are known by the catalog
private static GetCapabilities getGetCapabilities(org.w3c.dom.Element element)
          returns the GetCapabilities description
private static ISO19119 getISO19119(org.w3c.dom.Element element)
          returns the metadata description of the catalog
private static java.lang.String[] getKeywords(org.w3c.dom.NodeList nl)
          returns the keywords of a RecordType
private static GM_Envelope getLatLonBoundingBox(org.w3c.dom.Element element)
          returns the bounding box of a RecordType
private static MetadataURL[] getMetadataURLs(org.w3c.dom.Element element)
          returns the metadata descriptions of a RecordType
private static Operation[] getOperations(org.w3c.dom.Element element)
          returns the operations of the record types available through the catalog
private static PresentOptions getPresentOptions(org.w3c.dom.Element element)
          returns the present options description contained within the capabilities
private static QueryLanguages getQueryLanguages(org.w3c.dom.NodeList nl)
          returns the query languages known by the catalog
private static RecordTypeList getRecordTypeList(org.w3c.dom.Element element)
          returns the record type list description contained within the capabilities
private static RecordType[] getRecordTypes(org.w3c.dom.NodeList nl)
          returns the record type available through the catalog
private static Request getRequest(org.w3c.dom.Element element)
          returns the request description contained within the capabilities
private static java.util.HashMap getSchemaLocations(org.w3c.dom.NodeList nl)
          returns the locations of the schema definitions that describes the reponses of catalog
private static TaxonomyTypeList getTaxonomyTypeList(org.w3c.dom.Element element)
          returns the description of taxonomies contained within the capabilities
private static org.w3c.dom.Document getVendorSpecificCapabilities(org.w3c.dom.Element element)
          returns vendor specific capabilities
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

namespace

private static java.lang.String namespace

iso19119ns

private static java.lang.String iso19119ns

iso19115ns

private static java.lang.String iso19115ns
Constructor Detail

WCASCapabilitiesFactory

public WCASCapabilitiesFactory()
Method Detail

createCapabilities

public static WCASCapabilities createCapabilities(java.net.URL url)
                                           throws java.io.IOException,
                                                  org.xml.sax.SAXException,
                                                  java.lang.Exception
factory method for creating a WCASCapabilities object from a file that contains XML capabilities document

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

createCapabilities

public static WCASCapabilities createCapabilities(org.w3c.dom.Document doc)
                                           throws java.lang.Exception
factory method for creating a WFSCapabilities object from a OGC WFS 1.0.0 conform XML capabilities document

Throws:
java.lang.Exception

getSchemaLocations

private static java.util.HashMap getSchemaLocations(org.w3c.dom.NodeList nl)
                                             throws java.lang.Exception
returns the locations of the schema definitions that describes the reponses of catalog

Throws:
java.lang.Exception

getISO19119

private static ISO19119 getISO19119(org.w3c.dom.Element element)
returns the metadata description of the catalog


getDCPTypes

private static DCPType[] getDCPTypes(org.w3c.dom.NodeList nl)
returns the addresses and protocols a request can be reached


getCapability

private static Capability getCapability(org.w3c.dom.Element capElement)
                                 throws java.lang.Exception
returns an instance of an object that capsulates the service element of the WFS capabilities.

Throws:
java.lang.Exception

getQueryLanguages

private static QueryLanguages getQueryLanguages(org.w3c.dom.NodeList nl)
                                         throws java.lang.Exception
returns the query languages known by the catalog

Throws:
java.lang.Exception

getTaxonomyTypeList

private static TaxonomyTypeList getTaxonomyTypeList(org.w3c.dom.Element element)
                                             throws java.lang.Exception
returns the description of taxonomies contained within the capabilities

Throws:
java.lang.Exception

getRequest

private static Request getRequest(org.w3c.dom.Element element)
returns the request description contained within the capabilities


getGetCapabilities

private static GetCapabilities getGetCapabilities(org.w3c.dom.Element element)
returns the GetCapabilities description


getRecordTypeList

private static RecordTypeList getRecordTypeList(org.w3c.dom.Element element)
                                         throws java.lang.Exception
returns the record type list description contained within the capabilities

Throws:
java.lang.Exception

getRecordTypes

private static RecordType[] getRecordTypes(org.w3c.dom.NodeList nl)
                                    throws java.lang.Exception
returns the record type available through the catalog

Throws:
java.lang.Exception

getKeywords

private static java.lang.String[] getKeywords(org.w3c.dom.NodeList nl)
returns the keywords of a RecordType


getLatLonBoundingBox

private static GM_Envelope getLatLonBoundingBox(org.w3c.dom.Element element)
returns the bounding box of a RecordType


getOperations

private static Operation[] getOperations(org.w3c.dom.Element element)
returns the operations of the record types available through the catalog


getMetadataURLs

private static MetadataURL[] getMetadataURLs(org.w3c.dom.Element element)
                                      throws java.lang.Exception
returns the metadata descriptions of a RecordType

Throws:
java.lang.Exception

getPresentOptions

private static PresentOptions getPresentOptions(org.w3c.dom.Element element)
returns the present options description contained within the capabilities


getFederatedCatalogs

private static FederatedCatalog[] getFederatedCatalogs(org.w3c.dom.NodeList nl)
                                                throws java.lang.Exception
returns the federated catalogs that are known by the catalog

Throws:
java.lang.Exception

getExceptions

private static CException getExceptions(org.w3c.dom.Element element)
returns the format exception will be retruned


getVendorSpecificCapabilities

private static org.w3c.dom.Document getVendorSpecificCapabilities(org.w3c.dom.Element element)
returns vendor specific capabilities