|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.ogcbase.XMLFactory
public class XMLFactory
Factory for creating DOM
representations from java objects used to represent OGC
related schema types.
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 |
---|
protected static final ILogger LOG
protected static final java.net.URI OGCNS
protected static final java.net.URI GMLNS
protected static final java.net.URI XLNNS
Constructor Detail |
---|
public XMLFactory()
Method Detail |
---|
protected static void appendLonLatEnvelope(org.w3c.dom.Element root, LonLatEnvelope lonLatEnvelope, java.net.URI namespaceURI)
DOM
representation of a LonLatEnvelope
to the
passed Element
.
root
- lonLatEnvelope
- namespaceURI
- protected static void appendEnvelope(org.w3c.dom.Element xmlNode, Envelope envelope)
XML/GML Envelope
-element to the passed Element
.
xmlNode
- envelope
- protected static void appendTimePosition(org.w3c.dom.Element xmlNode, TimePosition tpos)
XML/GML
representation of a TimePosition
to the
passed Element
.
xmlNode
- tpos
- protected static void appendKeywords(org.w3c.dom.Element xmlNode, Keywords[] keywords, java.net.URI namespaceURI)
keywords
-element for each Keywords
object of the
passed array to the passed Element
.
xmlNode
- keywords
- namespaceURI
- protected static void appendKeywords(org.w3c.dom.Element xmlNode, Keywords keywords, java.net.URI namespaceURI)
keywords
-element to the passed Element
and fills it
with the available keywords.
xmlNode
- keywords
- namespaceURI
- protected static void appendTemporalDomain(org.w3c.dom.Element xmlNode, TimeSequence timeSeq, java.net.URI namespaceURI)
XML
representation of the passed TimeSequence
to the
passed Element
.
xmlNode
- timeSeq
- namespaceURI
- protected static void appendTimePeriod(org.w3c.dom.Element xmlNode, TimePeriod tPeriod, java.net.URI namespaceURI)
XML
representation of the passed TimePeriod
to the
passed Element
.
xmlNode
- tPeriod
- namespaceURI
- protected static void appendTimeResolution(org.w3c.dom.Element xmlNode, TimeDuration duration)
XML/GML
representation of the passed TimeDuration
to
the passed Element
.
xmlNode
- duration
- protected static void appendValues(org.w3c.dom.Element xmlNode, Values values, java.net.URI namespaceURI)
XML
representation of the passed Values
to the
passed Element
.
xmlNode
- values
- namespaceURI
- protected static void appendInterval(org.w3c.dom.Element xmlNode, Interval interval, java.net.URI namespaceURI)
XML
representation of the passed Interval
to the
passed Element
.
xmlNode
- interval
- namespaceURI
- protected static void appendTypedLiteral(org.w3c.dom.Element xmlNode, TypedLiteral singleValue, java.lang.String name, java.net.URI namespaceURI)
XML
representation of the passed TypedLiteral
to the
passed Element
.
xmlNode
- singleValue
- name
- namespaceURI
- protected static void appendCodeList(org.w3c.dom.Element xmlNode, CodeList codeList, java.net.URI namespaceURI)
XML
representation of the passed CodeList
to the
passed Element
.
xmlNode
- codeList
- namespaceURI
- protected static void appendSimpleLinkAttributes(org.w3c.dom.Element linkElement, SimpleLink simpleLink)
SimpleLink
to the also passed
Element
.
linkElement
- simpleLink
- protected static void appendOnlineResource(org.w3c.dom.Element xmlNode, java.lang.String elementName, OnlineResource onlineResource, java.net.URI namespaceURI)
DOM
representation of a simple XLink
-element to
the passed Element
.
xmlNode
- elementName
- onlineResource
- namespaceURI
- protected static void appendPropertyPath(org.w3c.dom.Element element, PropertyPath propertyPath)
DOM
representation of the given PropertyPath
as a
new text node to the given element (including necessary namespace bindings).
element
- Element node where the PropertyPath is appended topropertyPath
- protected static void appendFeatureId(org.w3c.dom.Element root, java.lang.String fid)
DOM
representation of the given feature id to the given element.
root
- Element node where the "ogc:FeatureId" element is appended tofid
- feature identifierprotected static void appendGeometry(org.w3c.dom.Element el, Geometry geom) throws GeometryException
DOM
representation of the given Geometry
to the given
element.
TODO Do this a better way...
el
- element node where the geometry is appended togeom
- geometry to be appended
GeometryException
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org