|
deegree 2.6-pre (2011/11/29 00:10 build-378-unofficial) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree.ogcbase.XMLFactory
org.deegree.owscommon.XMLFactory
org.deegree.ogcwebservices.wfs.XMLFactory
public class XMLFactory
Responsible for the generation of XML representations of objects from the WFS context.
Field Summary |
---|
Fields inherited from class org.deegree.owscommon.XMLFactory |
---|
DEEGREECSWNS, OWSNS |
Fields inherited from class org.deegree.ogcbase.XMLFactory |
---|
GMLNS, XLNNS |
Constructor Summary | |
---|---|
XMLFactory()
|
Method Summary | |
---|---|
static void |
appendFeatureTypeList(Element root,
FeatureTypeList featureTypeList)
Appends the XML representation of the wfs:FeatureTypeList - section to the passed
Element . |
static void |
appendGMLObjectTypeList(Element root,
URI elementNS,
String elementName,
GMLObject[] gmlObjectTypes)
Appends the XML representation of the wfs:ServesGMLObjectTypeList - section to the passed
Element as a new element with the given qualified name. |
static void |
appendGMLObjectTypeType(Element root,
GMLObject gmlObjectType)
Appends the XML representation of the given GMLObject (as a wfs:GMLObjectType element) to
the passed Element . |
protected static void |
appendKeywords(Element xmlNode,
Keywords[] keywords,
URI namespaceURI)
Appends a ows:Keywords -element for each Keywords object of the passed array to the
passed Element . |
protected static void |
appendKeywords(Element xmlNode,
Keywords keywords,
URI namespaceURI)
Appends a Keyword -element to the passed Element and fills it with the available
keywords. |
static void |
appendOutputFormats(Element root,
FormatType[] formats)
Appends the XML representation of the given FormatType s as (as a wfs:OutputFormats element)
to the passed Element . |
protected static void |
appendServiceIdentification(Element root,
ServiceIdentification serviceIdentification)
Appends the DOM representation of the ServiceIdentification section to the passed Element . |
static void |
appendWFSFeatureType(Element root,
WFSFeatureType featureType)
Appends the XML representation of the WFSFeatureType instance to the passed Element . |
static void |
appendWgs84BoundingBox(Element root,
Envelope envelope)
Appends the XML representation of the given Envelope (as an ows:WGS84BoundingBoxType
element) to the passed Element . |
static GetFeatureDocument |
export(GetFeature getFeature)
Exports a GetFeature instance to a GetFeatureDocument . |
static LockFeatureDocument |
export(LockFeature request)
Exports a LockFeature request instance to a LockFeatureDocument . |
static LockFeatureResponseDocument |
export(LockFeatureResponse response)
Exports a LockFeatureResponse instance to its XML representation. |
static TransactionDocument |
export(Transaction transaction)
Exports a Transaction instance to its XML representation. |
static TransactionResponseDocument |
export(TransactionResponse response)
Exports an instance of TransactionResponse to its XML representation. |
static WFSCapabilitiesDocument |
export(WFSCapabilities capabilities)
Exports a WFSCapabilities instance to a WFSCapabilitiesDocument . |
static WFSCapabilitiesDocument |
export(WFSCapabilities capabilities,
boolean serviceIdentification,
boolean serviceProvider,
boolean operationsMetadata,
boolean featureTypeList)
|
static WFSCapabilitiesDocument |
export(WFSCapabilities capabilities,
String[] sections)
Exports a WFSCapabilities instance to a WFSCapabilitiesDocument . |
Methods inherited from class org.deegree.owscommon.XMLFactory |
---|
appendAddress, appendDCP, appendException, appendMetadata, appendOperationsMetadata, appendOWSKeywords, appendOWSKeywords, appendParameter, appendPhone, appendServiceProvider, export, exportExceptionReport, exportExceptionReportWFS, exportExceptionReportWFS100, exportNS, maybeSetAttribute |
Methods inherited from class org.deegree.ogcbase.XMLFactory |
---|
appendCodeList, appendEnvelope, appendFeatureId, appendGeometry, appendInterval, 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 |
---|
public XMLFactory()
Method Detail |
---|
public static WFSCapabilitiesDocument export(WFSCapabilities capabilities) throws IOException
WFSCapabilities
instance to a WFSCapabilitiesDocument
.
capabilities
-
WFSCapabilities
IOException
- if XML template could not be loadedpublic static WFSCapabilitiesDocument export(WFSCapabilities capabilities, String[] sections) throws IOException
WFSCapabilities
instance to a WFSCapabilitiesDocument
.
capabilities
- sections
- names of sections to be exported, may contain 'All'
WFSCapabilities
IOException
- if XML template could not be loadedpublic static WFSCapabilitiesDocument export(WFSCapabilities capabilities, boolean serviceIdentification, boolean serviceProvider, boolean operationsMetadata, boolean featureTypeList) throws IOException
capabilities
- serviceIdentification
- serviceProvider
- operationsMetadata
- featureTypeList
-
IOException
protected static void appendServiceIdentification(Element root, ServiceIdentification serviceIdentification)
ServiceIdentification
section to the passed Element
.
root
- serviceIdentification
- protected static void appendKeywords(Element xmlNode, Keywords[] keywords, URI namespaceURI)
ows:Keywords
-element for each Keywords
object of the passed array to the
passed Element
.
xmlNode
- keywords
- namespaceURI
- protected static void appendKeywords(Element xmlNode, Keywords keywords, URI namespaceURI)
Keyword
-element to the passed Element
and fills it with the available
keywords.
xmlNode
- keywords
- namespaceURI
- public static GetFeatureDocument export(GetFeature getFeature) throws IOException, XMLParsingException
GetFeature
instance to a GetFeatureDocument
.
getFeature
- request to be exported
GetFeature
request
IOException
XMLParsingException
public static LockFeatureDocument export(LockFeature request) throws IOException, XMLParsingException, SAXException
LockFeature
request instance to a LockFeatureDocument
.
request
- request to be exported
LockFeature
request
IOException
XMLParsingException
SAXException
public static LockFeatureResponseDocument export(LockFeatureResponse response) throws IOException, SAXException
LockFeatureResponse
instance to its XML representation.
response
- response to be exported
LockFeatureResponse
IOException
SAXException
public static TransactionDocument export(Transaction transaction) throws IOException, XMLParsingException
Transaction
instance to its XML representation.
transaction
- transaction to export
IOException
XMLParsingException
public static TransactionResponseDocument export(TransactionResponse response) throws IOException
TransactionResponse
to its XML representation.
response
- TransactionResponse to export
IOException
public static void appendFeatureTypeList(Element root, FeatureTypeList featureTypeList)
wfs:FeatureTypeList
- section to the passed
Element
.
root
- featureTypeList
- public static void appendWFSFeatureType(Element root, WFSFeatureType featureType)
WFSFeatureType
instance to the passed Element
.
root
- featureType
- public static void appendGMLObjectTypeList(Element root, URI elementNS, String elementName, GMLObject[] gmlObjectTypes)
wfs:ServesGMLObjectTypeList
- section to the passed
Element
as a new element with the given qualified name.
root
- elementNS
- elementName
- gmlObjectTypes
- public static void appendGMLObjectTypeType(Element root, GMLObject gmlObjectType)
GMLObject
(as a wfs:GMLObjectType
element) to
the passed Element
.
root
- gmlObjectType
- public static void appendWgs84BoundingBox(Element root, Envelope envelope)
Envelope
(as an ows:WGS84BoundingBoxType
element) to the passed Element
.
root
- envelope
- public static void appendOutputFormats(Element root, FormatType[] formats)
FormatType
s as (as a wfs:OutputFormats
element)
to the passed Element
.
root
- formats
-
|
deegree 2.6-pre (2011/11/29 00:10 build-378-unofficial) | |||||||||
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