|
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 org.deegree.owscommon_1_1_0.XMLFactory
public class XMLFactory
The XMLFactory
is a convenience class, which exports ows-common 1.1.0 beans to their xml
representation.
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 |
---|
public XMLFactory()
Method Detail |
---|
public void exportCapabilities(org.w3c.dom.Element root, OWSCommonCapabilities capabilities)
root
- to export to.capabilities
- to exportpublic XMLFragment createOperationResponse(Manifest operationResponse)
operationResponse
- to create the dom-xml representation from.
null
if the given parameter is
null
.public void appendManifest(org.w3c.dom.Element root, Manifest manifestType)
null
nothing is done.
root
- to append the manifest values to.manifestType
- to export.protected void appendReference(org.w3c.dom.Element root, Reference reference)
null
nothing is
done.
root
- to append too.reference
- to append.protected void appendBasicIdentification(org.w3c.dom.Element root, BasicIdentification basicIdentification)
null
nothing is done.
root
- to append too.basicIdentification
- to append.protected void appendServiceIdentification(org.w3c.dom.Element capabilitiesElement, ServiceIdentification serviceIdentification)
capabilitiesElement
- to export to if null
nothing will be done.serviceIdentification
- to append if null
nothing will be done (optional).protected void appendTitles(org.w3c.dom.Element root, java.util.List<java.lang.String> titles)
null
nothing is done.
root
- to append too.titles
- to append.protected void appendAbstracts(org.w3c.dom.Element root, java.util.List<java.lang.String> abstracts)
null
nothing is
done.
root
- to append too.abstracts
- to append.protected void appendKeywords(org.w3c.dom.Element root, java.util.List<Keywords> keywords)
null
nothing is done.
root
- to append too.keywords
- to append.protected void appendServiceProvider(org.w3c.dom.Element capabilitiesElement, ServiceProvider serviceProvider)
capabilitiesElement
- to export to if null
nothing will be done.serviceProvider
- to append if null
nothing will be done (optional).protected void appendServiceContact(org.w3c.dom.Element root, ServiceContact serviceContact)
root
- to export to if null
nothing will be done.serviceContact
- to append if null
nothing will be done (optional).protected void appendContactInfo(org.w3c.dom.Element root, ContactInfo contactInfo)
root
- (usually a serviceContact) to export to if null
nothing will be done.contactInfo
- to append if null
nothing will be done (optional).public void appendOperationsMetadata(org.w3c.dom.Element capabilitiesElement, OperationsMetadata operationsMetadata)
capabilitiesElement
- to export to if null
nothing will be done.operationsMetadata
- to append if null
nothing will be done (optional).protected void appendOperations(org.w3c.dom.Element root, java.util.List<Operation> operations) throws java.lang.IllegalArgumentException
root
- to append to.operations
- may not be null
java.lang.IllegalArgumentException
- if the list of operations < 2 or null
.protected void appendDomainType(org.w3c.dom.Element domainTypeElement, DomainType domainType)
domainTypeElement
- to append the domainttype element to.domainType
- to append.protected void appendMetadataAttribs(org.w3c.dom.Element root, java.util.List<Metadata> metadatasAttribs)
null
nothing is done.
root
- to append too.metadatasAttribs
- to append. a list of <xlink:href, about> pairs.public static XMLFragment exportException(OGCWebServiceException exception)
exception
- containing the exceptions.
protected static void appendException(org.w3c.dom.Element root, OGCWebServiceException exception)
OGCWebServiceException
to the given Element
.
If either one is null
this method just returns.
root
- the Element to append the exceptions to.exception
- the Exception to append
|
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