org.deegree_impl.services.wcts.capabilities
Class WCTSCapabilitiesFactory

java.lang.Object
  extended byorg.deegree_impl.services.wcts.capabilities.WCTSCapabilitiesFactory

public final class WCTSCapabilitiesFactory
extends java.lang.Object

Factory class for creating WCTS capability classes from a WCTS capabilities XML document that's conform to the WCTS-specification.

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

Version:
2002-07-12
Author:
Andreas Poth

Constructor Summary
WCTSCapabilitiesFactory()
           
 
Method Summary
static CTS_Capabilities createCapabilities(org.w3c.dom.Document doc)
          factory method for creating a WCTSCapabilities object from a WCTS-specification conform XML capabilities document
static CTS_Capabilities createCapabilities(java.io.Reader reader)
          factory method for creating a WCTSCapabilities object from a file that contains a WCTS-specification conform XML capabilities document
private static ActionType getActionType(org.w3c.dom.Element element)
          All four elements: GetCapabilities, Transform, IsTransformable, DescribeTransformation are built in the same way.
private static Capability getCapability(org.w3c.dom.Element capElement)
          returns an instance of an object that capsulates the capabilty element of the WCTS capabilities.
static ContactAddress getContactAddress(org.w3c.dom.Element contactadressElement)
          gets ContactAddress
static ContactInformation getContactInformation(org.w3c.dom.Element contactElement)
          returns getContactInformation
static ContactPersonPrimary getContactPersonPrimary(org.w3c.dom.Element contactPersonPrimaryElement)
          returns ContactPersonPrimary
private static DCPType[] getDCPType(org.w3c.dom.NodeList nl)
          Gets the <getDCPType>
private static ActionType getDescribeTransformation(org.w3c.dom.Element getDescribeTransformationElement)
          Gets the <getDescribeTransformation>
private static ActionType getGetCapabilities(org.w3c.dom.Element getCapabilitiesElement)
          gets the GetCapabilitiesElement
private static ActionType getIsTransformable(org.w3c.dom.Element getIsTransformableElement)
          gets the IsTransformableElement
private static java.lang.String[] getKeywordList(org.w3c.dom.Element keywordlistElement)
          returns the keywords associated with the service
private static KnownCoordinateReferenceSystem getKnownCoordinateReferenceSystem(org.w3c.dom.Element kcrsElement)
          gets the Knowncoordinatereferencesystemelement
private static KnownTransformationType getKnownTransformationType(org.w3c.dom.Element kttElement)
          gets the KnownTransformationType which is present at least 1 time.
private static WCTS_Request getRequest(org.w3c.dom.Element requestElement)
          returns the request associated with the capability
private static Service getService(org.w3c.dom.Element serviceElement)
          returns an instance of an object that capsulates the service element of the WCTS capabilities.
private static ActionType getTransform(org.w3c.dom.Element getTransformElement)
          gets the TransformElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WCTSCapabilitiesFactory

public WCTSCapabilitiesFactory()
Method Detail

createCapabilities

public static CTS_Capabilities createCapabilities(java.io.Reader reader)
                                           throws java.lang.Exception
factory method for creating a WCTSCapabilities object from a file that contains a WCTS-specification conform XML capabilities document

Throws:
java.lang.Exception

createCapabilities

public static CTS_Capabilities createCapabilities(org.w3c.dom.Document doc)
                                           throws java.lang.Exception
factory method for creating a WCTSCapabilities object from a WCTS-specification conform XML capabilities document

Throws:
java.lang.Exception

getService

private static Service getService(org.w3c.dom.Element serviceElement)
returns an instance of an object that capsulates the service element of the WCTS capabilities.


getContactInformation

public static ContactInformation getContactInformation(org.w3c.dom.Element contactElement)
returns getContactInformation


getContactPersonPrimary

public static ContactPersonPrimary getContactPersonPrimary(org.w3c.dom.Element contactPersonPrimaryElement)
returns ContactPersonPrimary


getContactAddress

public static ContactAddress getContactAddress(org.w3c.dom.Element contactadressElement)
gets ContactAddress


getKeywordList

private static java.lang.String[] getKeywordList(org.w3c.dom.Element keywordlistElement)
returns the keywords associated with the service


getCapability

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

Contains the two attributes userDefinedCoordinateSystems and userDefinedTransformations

Throws:
java.lang.Exception

getRequest

private static WCTS_Request getRequest(org.w3c.dom.Element requestElement)
returns the request associated with the capability


getKnownTransformationType

private static KnownTransformationType getKnownTransformationType(org.w3c.dom.Element kttElement)
gets the KnownTransformationType which is present at least 1 time.


getKnownCoordinateReferenceSystem

private static KnownCoordinateReferenceSystem getKnownCoordinateReferenceSystem(org.w3c.dom.Element kcrsElement)
gets the Knowncoordinatereferencesystemelement


getGetCapabilities

private static ActionType getGetCapabilities(org.w3c.dom.Element getCapabilitiesElement)
gets the GetCapabilitiesElement


getTransform

private static ActionType getTransform(org.w3c.dom.Element getTransformElement)
gets the TransformElement


getIsTransformable

private static ActionType getIsTransformable(org.w3c.dom.Element getIsTransformableElement)
gets the IsTransformableElement


getDescribeTransformation

private static ActionType getDescribeTransformation(org.w3c.dom.Element getDescribeTransformationElement)
Gets the <getDescribeTransformation>


getActionType

private static ActionType getActionType(org.w3c.dom.Element element)
All four elements: GetCapabilities, Transform, IsTransformable, DescribeTransformation are built in the same way. This method uses this to summarize the ChildNodes.


getDCPType

private static DCPType[] getDCPType(org.w3c.dom.NodeList nl)
Gets the <getDCPType>