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

org.deegree.ogcwebservices.wmps
Class XMLFactory

java.lang.Object
  extended by org.deegree.ogcbase.XMLFactory
      extended by org.deegree.owscommon.XMLFactory
          extended by org.deegree.ogcwebservices.wmps.XMLFactory

public class XMLFactory
extends XMLFactory

Helper class to create WMPS responses.

Version:
2.0
Author:
Anup Deshmukh

Field Summary
 
Fields inherited from class org.deegree.owscommon.XMLFactory
DEEGREECSWNS, OWSNS
 
Fields inherited from class org.deegree.ogcbase.XMLFactory
GMLNS, OGCNS, XLNNS
 
Constructor Summary
XMLFactory()
           
 
Method Summary
protected static void appendAttribution(org.w3c.dom.Element root, Attribution attr)
          Append attribution url.
protected static void appendAuthorityURL(org.w3c.dom.Element root, AuthorityURL authorityURL)
          Append authority url.
protected static void appendCapabilityLayer(org.w3c.dom.Element root, Layer layer)
          Append capability layer
protected static void appendCapabilityRequests(org.w3c.dom.Element root, WMPSOperationsMetadata operationsMetadata)
          Append capability element.
protected static void appendContactInformation(org.w3c.dom.Element root, ServiceProvider provider)
          Append contact information
protected static void appendDataURL(org.w3c.dom.Element root, DataURL dataURL)
          Append data url.
protected static void appendDimension(org.w3c.dom.Element root, Dimension dim)
          Append dimension.
protected static void appendExtent(org.w3c.dom.Element root, Extent extent)
          Apppend extent.
protected static void appendFeatureListURL(org.w3c.dom.Element root, FeatureListURL featureListURL)
          Append feature list url.
protected static void appendIdentifier(org.w3c.dom.Element root, Identifier identifier)
          Append identifiers.
protected static void appendLatLonBoundingBox(org.w3c.dom.Element root, Envelope llBox)
          Append lat-lon bounding box.
protected static void appendLayerBoundingBox(org.w3c.dom.Element root, LayerBoundingBox lBox)
          Append layer bounding box.
protected static void appendLegendURL(org.w3c.dom.Element root, LegendURL legendURL)
          Append legend url.
protected static void appendMetadataURL(org.w3c.dom.Element root, MetadataURL metadataURL)
          Append metadata url.
protected static void appendOnlineResource(org.w3c.dom.Element root, java.net.URL url)
          Append online resource.
protected static void appendOperation(org.w3c.dom.Element root, Operation operation)
          Append Operations.
protected static void appendService(org.w3c.dom.Element root, ServiceIdentification identification, ServiceProvider provider)
          Append service element
protected static void appendStyle(org.w3c.dom.Element root, Style style)
          Append style
protected static void appendStyleSheetURL(org.w3c.dom.Element root, StyleSheetURL styleSheetURL)
          Append Style sheet.
protected static void appendStyleURL(org.w3c.dom.Element root, StyleURL styleURL)
          Append Style URL
protected static void appendURLs(org.w3c.dom.Element http, java.net.URL[] urls, java.lang.String type)
          Append URLs
protected static void appendUserDefinedSymbolization(org.w3c.dom.Element root, UserDefinedSymbolization uds)
          Append User defined symbolization.
static java.lang.Object export(DescribeTemplateResponse response)
           
static GetAvailableTemplatesResponseDocument export(GetAvailableTemplatesResponse response)
          Export the print map initial response document.
static PrintMapResponseDocument export(PrintMapResponse response)
          Export the print map initial response document.
static WMPSCapabilitiesDocument export(WMPSCapabilities capabilities)
          Exports a WMPSCapabilities instance to a WMPSCapabilitiesDocument.
 
Methods inherited from class org.deegree.owscommon.XMLFactory
appendAddress, appendDCP, appendException, appendMetadata, appendOperationsMetadata, appendOWSKeywords, appendOWSKeywords, appendParameter, appendPhone, appendServiceIdentification, appendServiceProvider, export, exportExceptionReport, exportExceptionReportWFS, exportExceptionReportWFS100, exportNS, maybeSetAttribute
 
Methods inherited from class org.deegree.ogcbase.XMLFactory
appendCodeList, appendEnvelope, appendFeatureId, appendGeometry, appendInterval, appendKeywords, appendKeywords, appendLonLatEnvelope, appendOnlineResource, appendPropertyPath, appendSimpleLinkAttributes, appendTemporalDomain, appendTimePeriod, appendTimePosition, appendTimeResolution, appendTypedLiteral, appendValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLFactory

public XMLFactory()
Method Detail

export

public static WMPSCapabilitiesDocument export(WMPSCapabilities capabilities)
                                       throws java.io.IOException
Exports a WMPSCapabilities instance to a WMPSCapabilitiesDocument.

Parameters:
capabilities -
Returns:
DOM representation of the WMPSCapabilities
Throws:
java.io.IOException - if XML template could not be loaded

appendUserDefinedSymbolization

protected static void appendUserDefinedSymbolization(org.w3c.dom.Element root,
                                                     UserDefinedSymbolization uds)
Append User defined symbolization.

Parameters:
root -
uds -

appendService

protected static void appendService(org.w3c.dom.Element root,
                                    ServiceIdentification identification,
                                    ServiceProvider provider)
                             throws XMLParsingException
Append service element

Parameters:
root -
identification -
provider -
Throws:
XMLParsingException

appendContactInformation

protected static void appendContactInformation(org.w3c.dom.Element root,
                                               ServiceProvider provider)
Append contact information

Parameters:
root -
provider -

appendCapabilityRequests

protected static void appendCapabilityRequests(org.w3c.dom.Element root,
                                               WMPSOperationsMetadata operationsMetadata)
                                        throws XMLParsingException
Append capability element.

Parameters:
root -
operationsMetadata -
Throws:
XMLParsingException

appendOperation

protected static void appendOperation(org.w3c.dom.Element root,
                                      Operation operation)
Append Operations.

Parameters:
root -
operation -

appendURLs

protected static void appendURLs(org.w3c.dom.Element http,
                                 java.net.URL[] urls,
                                 java.lang.String type)
Append URLs

Parameters:
http -
urls -
type -

appendCapabilityLayer

protected static void appendCapabilityLayer(org.w3c.dom.Element root,
                                            Layer layer)
                                     throws XMLParsingException
Append capability layer

Parameters:
root -
layer -
Throws:
XMLParsingException

appendStyle

protected static void appendStyle(org.w3c.dom.Element root,
                                  Style style)
Append style

Parameters:
root -
style -

appendStyleURL

protected static void appendStyleURL(org.w3c.dom.Element root,
                                     StyleURL styleURL)
Append Style URL

Parameters:
root -
styleURL -

appendStyleSheetURL

protected static void appendStyleSheetURL(org.w3c.dom.Element root,
                                          StyleSheetURL styleSheetURL)
Append Style sheet.

Parameters:
root -
styleSheetURL -

appendLegendURL

protected static void appendLegendURL(org.w3c.dom.Element root,
                                      LegendURL legendURL)
Append legend url.

Parameters:
root -
legendURL -

appendFeatureListURL

protected static void appendFeatureListURL(org.w3c.dom.Element root,
                                           FeatureListURL featureListURL)
Append feature list url.

Parameters:
root -
featureListURL -

appendDataURL

protected static void appendDataURL(org.w3c.dom.Element root,
                                    DataURL dataURL)
Append data url.

Parameters:
root -
dataURL -

appendMetadataURL

protected static void appendMetadataURL(org.w3c.dom.Element root,
                                        MetadataURL metadataURL)
Append metadata url.

Parameters:
root -
metadataURL -

appendIdentifier

protected static void appendIdentifier(org.w3c.dom.Element root,
                                       Identifier identifier)
Append identifiers.

Parameters:
root -
identifier -

appendAuthorityURL

protected static void appendAuthorityURL(org.w3c.dom.Element root,
                                         AuthorityURL authorityURL)
Append authority url.

Parameters:
root -
authorityURL -

appendAttribution

protected static void appendAttribution(org.w3c.dom.Element root,
                                        Attribution attr)
Append attribution url.

Parameters:
root -
attr -

appendOnlineResource

protected static void appendOnlineResource(org.w3c.dom.Element root,
                                           java.net.URL url)
Append online resource.

Parameters:
root -
url -

appendExtent

protected static void appendExtent(org.w3c.dom.Element root,
                                   Extent extent)
Apppend extent.

Parameters:
root -
extent -

appendDimension

protected static void appendDimension(org.w3c.dom.Element root,
                                      Dimension dim)
Append dimension.

Parameters:
root -
dim -

appendLayerBoundingBox

protected static void appendLayerBoundingBox(org.w3c.dom.Element root,
                                             LayerBoundingBox lBox)
Append layer bounding box.

Parameters:
root -
lBox -

appendLatLonBoundingBox

protected static void appendLatLonBoundingBox(org.w3c.dom.Element root,
                                              Envelope llBox)
Append lat-lon bounding box.

Parameters:
root -
llBox -

export

public static PrintMapResponseDocument export(PrintMapResponse response)
                                       throws XMLParsingException
Export the print map initial response document.

Parameters:
response -
Returns:
PrintMapResponseDocument
Throws:
XMLParsingException

export

public static GetAvailableTemplatesResponseDocument export(GetAvailableTemplatesResponse response)
                                                    throws XMLParsingException
Export the print map initial response document.

Parameters:
response -
Returns:
GetAvailableTemplatesResponseDocument
Throws:
XMLParsingException

export

public static java.lang.Object export(DescribeTemplateResponse response)
Parameters:
response -
Returns:
DescribeTemplateResponse as XML document

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