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

org.deegree.ogcbase
Class XMLFactory

java.lang.Object
  extended by org.deegree.ogcbase.XMLFactory
Direct Known Subclasses:
XMLFactory, XMLFactory, XMLFactory, XMLFactory, XMLFactory, XMLFactory

public class XMLFactory
extends java.lang.Object

Factory for creating DOM representations from java objects used to represent OGC related schema types.

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

Field Summary
protected static java.net.URI GMLNS
           
protected static ILogger LOG
           
protected static java.net.URI OGCNS
           
protected static java.net.URI XLNNS
           
 
Constructor Summary
XMLFactory()
           
 
Method Summary
protected static void appendCodeList(org.w3c.dom.Element xmlNode, CodeList codeList, java.net.URI namespaceURI)
          Appends an XML representation of the passed CodeList to the passed Element.
protected static void appendEnvelope(org.w3c.dom.Element xmlNode, Envelope envelope)
          Appends an XML/GML Envelope -element to the passed Element.
protected static void appendFeatureId(org.w3c.dom.Element root, java.lang.String fid)
          Appends the DOM representation of the given feature id to the given element.
protected static void appendGeometry(org.w3c.dom.Element el, Geometry geom)
          Appends the DOM representation of the given Geometry to the given element.
protected static void appendInterval(org.w3c.dom.Element xmlNode, Interval interval, java.net.URI namespaceURI)
          Appends an XML representation of the passed Interval to the passed Element.
protected static void appendKeywords(org.w3c.dom.Element xmlNode, Keywords[] keywords, java.net.URI namespaceURI)
          Appends a keywords -element for each Keywords object of the passed array to the passed Element.
protected static void appendKeywords(org.w3c.dom.Element xmlNode, Keywords keywords, java.net.URI namespaceURI)
          Appends a keywords -element to the passed Element and fills it with the available keywords.
protected static void appendLonLatEnvelope(org.w3c.dom.Element root, LonLatEnvelope lonLatEnvelope, java.net.URI namespaceURI)
          Appends the DOM representation of a LonLatEnvelope to the passed Element.
protected static void appendOnlineResource(org.w3c.dom.Element xmlNode, java.lang.String elementName, OnlineResource onlineResource, java.net.URI namespaceURI)
          Appends the DOM representation of a simple XLink -element to the passed Element.
protected static void appendPropertyPath(org.w3c.dom.Element element, PropertyPath propertyPath)
          Appends the DOM representation of the given PropertyPath as a new text node to the given element (including necessary namespace bindings).
protected static void appendSimpleLinkAttributes(org.w3c.dom.Element linkElement, SimpleLink simpleLink)
          Appends the XML attributes of the given SimpleLink to the also passed Element.
protected static void appendTemporalDomain(org.w3c.dom.Element xmlNode, TimeSequence timeSeq, java.net.URI namespaceURI)
          Appends an XML representation of the passed TimeSequence to the passed Element.
protected static void appendTimePeriod(org.w3c.dom.Element xmlNode, TimePeriod tPeriod, java.net.URI namespaceURI)
          Appends an XML representation of the passed TimePeriod to the passed Element.
protected static void appendTimePosition(org.w3c.dom.Element xmlNode, TimePosition tpos)
          Appends the XML/GML representation of a TimePosition to the passed Element.
protected static void appendTimeResolution(org.w3c.dom.Element xmlNode, TimeDuration duration)
          Appends an XML/GML representation of the passed TimeDuration to the passed Element.
protected static void appendTypedLiteral(org.w3c.dom.Element xmlNode, TypedLiteral singleValue, java.lang.String name, java.net.URI namespaceURI)
          Appends an XML representation of the passed TypedLiteral to the passed Element.
protected static void appendValues(org.w3c.dom.Element xmlNode, Values values, java.net.URI namespaceURI)
          Appends an XML representation of the passed Values to the passed Element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected static final ILogger LOG

OGCNS

protected static final java.net.URI OGCNS

GMLNS

protected static final java.net.URI GMLNS

XLNNS

protected static final java.net.URI XLNNS
Constructor Detail

XMLFactory

public XMLFactory()
Method Detail

appendLonLatEnvelope

protected static void appendLonLatEnvelope(org.w3c.dom.Element root,
                                           LonLatEnvelope lonLatEnvelope,
                                           java.net.URI namespaceURI)
Appends the DOM representation of a LonLatEnvelope to the passed Element.

Parameters:
root -
lonLatEnvelope -
namespaceURI -

appendEnvelope

protected static void appendEnvelope(org.w3c.dom.Element xmlNode,
                                     Envelope envelope)
Appends an XML/GML Envelope -element to the passed Element.

Parameters:
xmlNode -
envelope -

appendTimePosition

protected static void appendTimePosition(org.w3c.dom.Element xmlNode,
                                         TimePosition tpos)
Appends the XML/GML representation of a TimePosition to the passed Element.

Parameters:
xmlNode -
tpos -

appendKeywords

protected static void appendKeywords(org.w3c.dom.Element xmlNode,
                                     Keywords[] keywords,
                                     java.net.URI namespaceURI)
Appends a keywords -element for each Keywords object of the passed array to the passed Element.

Parameters:
xmlNode -
keywords -
namespaceURI -

appendKeywords

protected static void appendKeywords(org.w3c.dom.Element xmlNode,
                                     Keywords keywords,
                                     java.net.URI namespaceURI)
Appends a keywords -element to the passed Element and fills it with the available keywords.

Parameters:
xmlNode -
keywords -
namespaceURI -

appendTemporalDomain

protected static void appendTemporalDomain(org.w3c.dom.Element xmlNode,
                                           TimeSequence timeSeq,
                                           java.net.URI namespaceURI)
Appends an XML representation of the passed TimeSequence to the passed Element.

Parameters:
xmlNode -
timeSeq -
namespaceURI -

appendTimePeriod

protected static void appendTimePeriod(org.w3c.dom.Element xmlNode,
                                       TimePeriod tPeriod,
                                       java.net.URI namespaceURI)
Appends an XML representation of the passed TimePeriod to the passed Element.

Parameters:
xmlNode -
tPeriod -
namespaceURI -

appendTimeResolution

protected static void appendTimeResolution(org.w3c.dom.Element xmlNode,
                                           TimeDuration duration)
Appends an XML/GML representation of the passed TimeDuration to the passed Element.

Parameters:
xmlNode -
duration -

appendValues

protected static void appendValues(org.w3c.dom.Element xmlNode,
                                   Values values,
                                   java.net.URI namespaceURI)
Appends an XML representation of the passed Values to the passed Element.

Parameters:
xmlNode -
values -
namespaceURI -

appendInterval

protected static void appendInterval(org.w3c.dom.Element xmlNode,
                                     Interval interval,
                                     java.net.URI namespaceURI)
Appends an XML representation of the passed Interval to the passed Element.

Parameters:
xmlNode -
interval -
namespaceURI -

appendTypedLiteral

protected static void appendTypedLiteral(org.w3c.dom.Element xmlNode,
                                         TypedLiteral singleValue,
                                         java.lang.String name,
                                         java.net.URI namespaceURI)
Appends an XML representation of the passed TypedLiteral to the passed Element.

Parameters:
xmlNode -
singleValue -
name -
namespaceURI -

appendCodeList

protected static void appendCodeList(org.w3c.dom.Element xmlNode,
                                     CodeList codeList,
                                     java.net.URI namespaceURI)
Appends an XML representation of the passed CodeList to the passed Element.

Parameters:
xmlNode -
codeList -
namespaceURI -

appendSimpleLinkAttributes

protected static void appendSimpleLinkAttributes(org.w3c.dom.Element linkElement,
                                                 SimpleLink simpleLink)
Appends the XML attributes of the given SimpleLink to the also passed Element.

Parameters:
linkElement -
simpleLink -

appendOnlineResource

protected static void appendOnlineResource(org.w3c.dom.Element xmlNode,
                                           java.lang.String elementName,
                                           OnlineResource onlineResource,
                                           java.net.URI namespaceURI)
Appends the DOM representation of a simple XLink -element to the passed Element.

Parameters:
xmlNode -
elementName -
onlineResource -
namespaceURI -

appendPropertyPath

protected static void appendPropertyPath(org.w3c.dom.Element element,
                                         PropertyPath propertyPath)
Appends the DOM representation of the given PropertyPath as a new text node to the given element (including necessary namespace bindings).

Parameters:
element - Element node where the PropertyPath is appended to
propertyPath -

appendFeatureId

protected static void appendFeatureId(org.w3c.dom.Element root,
                                      java.lang.String fid)
Appends the DOM representation of the given feature id to the given element.

Parameters:
root - Element node where the "ogc:FeatureId" element is appended to
fid - feature identifier

appendGeometry

protected static void appendGeometry(org.w3c.dom.Element el,
                                     Geometry geom)
                              throws GeometryException
Appends the DOM representation of the given Geometry to the given element. TODO Do this a better way...

Parameters:
el - element node where the geometry is appended to
geom - geometry to be appended
Throws:
GeometryException

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