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

org.deegree.owscommon_1_1_0
Class XMLFactory

java.lang.Object
  extended by org.deegree.ogcbase.XMLFactory
      extended by org.deegree.owscommon_1_1_0.XMLFactory

public class XMLFactory
extends XMLFactory

The XMLFactory is a convenience class, which exports ows-common 1.1.0 beans to their xml representation.

Version:
$Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18 Jun 2009) $
Author:
Rutger Bezema, last edited by: $Author: mschneider $

Field Summary
 
Fields inherited from class org.deegree.ogcbase.XMLFactory
GMLNS, LOG, OGCNS, XLNNS
 
Constructor Summary
XMLFactory()
           
 
Method Summary
protected  void appendAbstracts(org.w3c.dom.Element root, java.util.List<java.lang.String> abstracts)
          Appends the given abstracts to the given root.
protected  void appendBasicIdentification(org.w3c.dom.Element root, BasicIdentification basicIdentification)
          Appends the given basicIdentification to the given root.
protected  void appendContactInfo(org.w3c.dom.Element root, ContactInfo contactInfo)
           
protected  void appendDomainType(org.w3c.dom.Element domainTypeElement, DomainType domainType)
           
protected static void appendException(org.w3c.dom.Element root, OGCWebServiceException exception)
          Appends an xml representation of an OGCWebServiceException to the given Element.
protected  void appendKeywords(org.w3c.dom.Element root, java.util.List<Keywords> keywords)
          Appends the given keywords to the given root.
 void appendManifest(org.w3c.dom.Element root, Manifest manifestType)
          Exports the manifest type to its dom-xml representation.
protected  void appendMetadataAttribs(org.w3c.dom.Element root, java.util.List<Metadata> metadatasAttribs)
          Appends the given metadata attributes to the given root.
protected  void appendOperations(org.w3c.dom.Element root, java.util.List<Operation> operations)
           
 void appendOperationsMetadata(org.w3c.dom.Element capabilitiesElement, OperationsMetadata operationsMetadata)
           
protected  void appendReference(org.w3c.dom.Element root, Reference reference)
          Appends the given reference to the given root.
protected  void appendServiceContact(org.w3c.dom.Element root, ServiceContact serviceContact)
           
protected  void appendServiceIdentification(org.w3c.dom.Element capabilitiesElement, ServiceIdentification serviceIdentification)
           
protected  void appendServiceProvider(org.w3c.dom.Element capabilitiesElement, ServiceProvider serviceProvider)
           
protected  void appendTitles(org.w3c.dom.Element root, java.util.List<java.lang.String> titles)
          Appends the given titles to the given root.
 XMLFragment createOperationResponse(Manifest operationResponse)
          Will create an XMLFragment which holds the ows:OperationResponse as the root element, values from the given manifest will be appended.
 void exportCapabilities(org.w3c.dom.Element root, OWSCommonCapabilities capabilities)
          make an xml representation of given capabilities bean.
static XMLFragment exportException(OGCWebServiceException exception)
          Creates an ows 1.1.0 xml-Representation of the given ExceptionReport.
 
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

exportCapabilities

public void exportCapabilities(org.w3c.dom.Element root,
                               OWSCommonCapabilities capabilities)
make an xml representation of given capabilities bean.

Parameters:
root - to export to.
capabilities - to export

createOperationResponse

public XMLFragment createOperationResponse(Manifest operationResponse)
Will create an XMLFragment which holds the ows:OperationResponse as the root element, values from the given manifest will be appended.

Parameters:
operationResponse - to create the dom-xml representation from.
Returns:
the xmlFragment as defined in ows 1.1.0 or null if the given parameter is null.

appendManifest

public void appendManifest(org.w3c.dom.Element root,
                           Manifest manifestType)
Exports the manifest type to its dom-xml representation. If either one of the params is null nothing is done.

Parameters:
root - to append the manifest values to.
manifestType - to export.

appendReference

protected void appendReference(org.w3c.dom.Element root,
                               Reference reference)
Appends the given reference to the given root. If either one of the params is null nothing is done.

Parameters:
root - to append too.
reference - to append.

appendBasicIdentification

protected void appendBasicIdentification(org.w3c.dom.Element root,
                                         BasicIdentification basicIdentification)
Appends the given basicIdentification to the given root. If either one of the params is null nothing is done.

Parameters:
root - to append too.
basicIdentification - to append.

appendServiceIdentification

protected void appendServiceIdentification(org.w3c.dom.Element capabilitiesElement,
                                           ServiceIdentification serviceIdentification)
Parameters:
capabilitiesElement - to export to if null nothing will be done.
serviceIdentification - to append if null nothing will be done (optional).

appendTitles

protected void appendTitles(org.w3c.dom.Element root,
                            java.util.List<java.lang.String> titles)
Appends the given titles to the given root. If either one of the params is null nothing is done.

Parameters:
root - to append too.
titles - to append.

appendAbstracts

protected void appendAbstracts(org.w3c.dom.Element root,
                               java.util.List<java.lang.String> abstracts)
Appends the given abstracts to the given root. If either one of the params is null nothing is done.

Parameters:
root - to append too.
abstracts - to append.

appendKeywords

protected void appendKeywords(org.w3c.dom.Element root,
                              java.util.List<Keywords> keywords)
Appends the given keywords to the given root. If either one of the params is null nothing is done.

Parameters:
root - to append too.
keywords - to append.

appendServiceProvider

protected void appendServiceProvider(org.w3c.dom.Element capabilitiesElement,
                                     ServiceProvider serviceProvider)
Parameters:
capabilitiesElement - to export to if null nothing will be done.
serviceProvider - to append if null nothing will be done (optional).

appendServiceContact

protected void appendServiceContact(org.w3c.dom.Element root,
                                    ServiceContact serviceContact)
Parameters:
root - to export to if null nothing will be done.
serviceContact - to append if null nothing will be done (optional).

appendContactInfo

protected void appendContactInfo(org.w3c.dom.Element root,
                                 ContactInfo contactInfo)
Parameters:
root - (usually a serviceContact) to export to if null nothing will be done.
contactInfo - to append if null nothing will be done (optional).

appendOperationsMetadata

public void appendOperationsMetadata(org.w3c.dom.Element capabilitiesElement,
                                     OperationsMetadata operationsMetadata)
Parameters:
capabilitiesElement - to export to if null nothing will be done.
operationsMetadata - to append if null nothing will be done (optional).

appendOperations

protected void appendOperations(org.w3c.dom.Element root,
                                java.util.List<Operation> operations)
                         throws java.lang.IllegalArgumentException
Parameters:
root - to append to.
operations - may not be null
Throws:
java.lang.IllegalArgumentException - if the list of operations < 2 or null.

appendDomainType

protected void appendDomainType(org.w3c.dom.Element domainTypeElement,
                                DomainType domainType)
Parameters:
domainTypeElement - to append the domainttype element to.
domainType - to append.

appendMetadataAttribs

protected void appendMetadataAttribs(org.w3c.dom.Element root,
                                     java.util.List<Metadata> metadatasAttribs)
Appends the given metadata attributes to the given root. If either one of the params is null nothing is done.

Parameters:
root - to append too.
metadatasAttribs - to append. a list of <xlink:href, about> pairs.

exportException

public static XMLFragment exportException(OGCWebServiceException exception)
Creates an ows 1.1.0 xml-Representation of the given ExceptionReport.

Parameters:
exception - containing the exceptions.
Returns:
a new ows_1_1_0:ExceptionReport document

appendException

protected static void appendException(org.w3c.dom.Element root,
                                      OGCWebServiceException exception)
Appends an xml representation of an OGCWebServiceException to the given Element. If either one is null this method just returns.

Parameters:
root - the Element to append the exceptions to.
exception - the Exception to append

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