deegree 2.3 (2010/04/09 10:10 build-4-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(Element root, List<String> abstracts)
          Appends the given abstracts to the given root.
protected  void appendBasicIdentification(Element root, BasicIdentification basicIdentification)
          Appends the given basicIdentification to the given root.
protected  void appendContactInfo(Element root, ContactInfo contactInfo)
           
protected  void appendDomainType(Element domainTypeElement, DomainType domainType)
           
protected static void appendException(Element root, OGCWebServiceException exception)
          Appends an xml representation of an OGCWebServiceException to the given Element.
protected  void appendKeywords(Element root, List<Keywords> keywords)
          Appends the given keywords to the given root.
 void appendManifest(Element root, Manifest manifestType)
          Exports the manifest type to its dom-xml representation.
protected  void appendMetadataAttribs(Element root, List<Metadata> metadatasAttribs)
          Appends the given metadata attributes to the given root.
protected  void appendOperations(Element root, List<Operation> operations)
           
 void appendOperationsMetadata(Element capabilitiesElement, OperationsMetadata operationsMetadata)
           
protected  void appendReference(Element root, Reference reference)
          Appends the given reference to the given root.
protected  void appendServiceContact(Element root, ServiceContact serviceContact)
           
protected  void appendServiceIdentification(Element capabilitiesElement, ServiceIdentification serviceIdentification)
           
protected  void appendServiceProvider(Element capabilitiesElement, ServiceProvider serviceProvider)
           
protected  void appendTitles(Element root, List<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(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(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(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(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(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(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(Element root,
                            List<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(Element root,
                               List<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(Element root,
                              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(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(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(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(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(Element root,
                                List<Operation> operations)
                         throws IllegalArgumentException
Parameters:
root - to append to.
operations - may not be null
Throws:
IllegalArgumentException - if the list of operations < 2 or null.

appendDomainType

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

appendMetadataAttribs

protected void appendMetadataAttribs(Element root,
                                     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(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.3 (2010/04/09 10:10 build-4-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org