public abstract class Output extends Object implements Iterable<org.jdom2.Element>
| Modifier and Type | Field and Description |
|---|---|
protected static org.jdom2.xpath.XPath |
abstractJdomXPath |
protected static org.jdom2.xpath.XPath |
browseGraphicFileName |
protected static org.jdom2.Namespace |
cswNameSpace |
protected static org.jdom2.Namespace |
cswPrefixNameSpace |
protected static org.jdom2.xpath.XPath |
dateStampJdomXPath |
protected static org.jdom2.xpath.XPath |
dateTimeStampJdomXPath |
protected static List<Protocol> |
defaultAllowedProtocols |
protected static Protocol |
defaultProtocol |
protected static String |
exceptionName |
protected static org.jdom2.filter.ElementFilter |
fileIdentifierElementFilter |
protected static org.jdom2.Namespace |
gcoNameSpace |
protected static org.jdom2.Namespace |
gcoPrefixNameSpace |
protected static org.jdom2.Namespace |
gmdNameSpace |
protected static org.jdom2.Namespace |
gmdPrefixNameSpace |
protected static org.jdom2.xpath.XPath |
identificationDateJdomXPath |
static String |
ISO_19115 |
static String |
ISO_19119 |
protected static org.jdom2.xpath.XPath |
keywordsJdomXPath |
protected static org.apache.commons.logging.Log |
log |
protected static org.jdom2.xpath.XPath |
metadataStandardNameXPath |
protected static org.jdom2.xpath.XPath |
operatesOnXpath |
protected static org.jdom2.filter.ElementFilter |
resourceElementFilter |
protected JAXBElement |
response |
protected static org.jdom2.xpath.XPath |
responsibleOrganisationNameJdomXPath |
protected static org.jdom2.filter.ElementFilter |
resultElementFilter |
protected Schema |
schema |
protected static org.jdom2.Namespace |
srvPrefixNameSpace |
protected static org.jdom2.xpath.XPath |
titleJdomXPath |
protected static org.jdom2.xpath.XPath |
urlDatasetNameXPath |
protected org.jdom2.Document |
xmlDocument |
| Constructor and Description |
|---|
Output(org.jdom2.Document xmlDocument) |
Output(org.jdom2.Document xmlDocument,
Schema schema) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAbstractText(org.jdom2.Element recordElement) |
String |
getBrowseGraphicFileName(org.jdom2.Element recordElement) |
String |
getDateStamp(org.jdom2.Element recordElement)
First try to get the Date object if empty or ommitted try to get the DateTime object.
|
String |
getIdentificationDate(org.jdom2.Element recordElement) |
List<org.jdom2.Text> |
getKeyWords(org.jdom2.Element recordElement) |
List<String> |
getKeyWordsAsStringList(org.jdom2.Element recordElement) |
String |
getMetadataStandardName(org.jdom2.Element recordElement)
Returns the metadata standard name.
|
List<OperatesOn> |
getOperatesOn(org.jdom2.Element recordElement) |
List<Map<String,String>> |
getOperatesOnAsStringList(org.jdom2.Element recordElement) |
List<OnlineResource> |
getResourcesFlattened()
List of OnlineResource's.
|
List<OnlineResource> |
getResourcesFlattened(List<Protocol> allowedProtocols)
List of OnlineResource's.
|
Map<URI,List<OnlineResource>> |
getResourcesMap()
List of OnlineResource's grouped by URI.
|
Map<URI,List<OnlineResource>> |
getResourcesMap(org.jdom2.Element resultElem,
List<Protocol> allowedProtocols) |
Map<URI,List<OnlineResource>> |
getResourcesMap(List<Protocol> allowedProtocols)
List of OnlineResource's grouped by URI.
|
protected JAXBElement |
getResponse() |
String |
getResponsibleOrganisationName(org.jdom2.Element recordElement) |
List<org.jdom2.Element> |
getSearchResults() |
String |
getSearchResultsString() |
abstract List<Element> |
getSearchResultsW3C() |
protected abstract Class |
getTargetType() |
String |
getTitle(org.jdom2.Element recordElement) |
org.jdom2.Document |
getTransformedXml(String transformPath) |
List<UrlDataset> |
getUrlDatasets(org.jdom2.Element recordElement) |
List<Map<String,String>> |
getUrlDatasetsAsStringList(org.jdom2.Element recordElement) |
String |
getUUID(org.jdom2.Element rootElement) |
String |
getUUID(org.jdom2.Element rootElement,
boolean sanitize) |
org.jdom2.Document |
getXml() |
boolean |
isMetadataForService(org.jdom2.Element recordElement)
Returns true if given metadata element describes a service.
|
Iterator<org.jdom2.Element> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorprotected static final org.apache.commons.logging.Log log
protected static final org.jdom2.Namespace cswNameSpace
protected static final org.jdom2.Namespace gmdNameSpace
protected static final org.jdom2.Namespace gcoNameSpace
protected static final org.jdom2.Namespace cswPrefixNameSpace
protected static final org.jdom2.Namespace gmdPrefixNameSpace
protected static final org.jdom2.Namespace gcoPrefixNameSpace
protected static final org.jdom2.Namespace srvPrefixNameSpace
protected static final org.jdom2.filter.ElementFilter resultElementFilter
protected static final org.jdom2.filter.ElementFilter resourceElementFilter
protected static final org.jdom2.filter.ElementFilter fileIdentifierElementFilter
protected static org.jdom2.xpath.XPath titleJdomXPath
protected static org.jdom2.xpath.XPath keywordsJdomXPath
protected static org.jdom2.xpath.XPath identificationDateJdomXPath
protected static org.jdom2.xpath.XPath responsibleOrganisationNameJdomXPath
protected static org.jdom2.xpath.XPath dateStampJdomXPath
protected static org.jdom2.xpath.XPath dateTimeStampJdomXPath
protected static org.jdom2.xpath.XPath abstractJdomXPath
protected static org.jdom2.xpath.XPath browseGraphicFileName
protected static org.jdom2.xpath.XPath metadataStandardNameXPath
protected static org.jdom2.xpath.XPath urlDatasetNameXPath
protected static org.jdom2.xpath.XPath operatesOnXpath
protected static final Protocol defaultProtocol
protected static final String exceptionName
public static final String ISO_19115
public static final String ISO_19119
protected org.jdom2.Document xmlDocument
protected JAXBElement response
protected Schema schema
public Output(org.jdom2.Document xmlDocument)
public Output(org.jdom2.Document xmlDocument,
Schema schema)
public org.jdom2.Document getXml()
public org.jdom2.Document getTransformedXml(String transformPath) throws TransformerException
TransformerExceptionprotected JAXBElement getResponse() throws org.jdom2.JDOMException, JAXBException, OwsException
org.jdom2.JDOMExceptionJAXBExceptionOwsExceptionprotected abstract Class getTargetType()
public Iterator<org.jdom2.Element> iterator()
public abstract List<Element> getSearchResultsW3C() throws org.jdom2.JDOMException, JAXBException, OwsException
org.jdom2.JDOMExceptionJAXBExceptionOwsExceptionpublic List<org.jdom2.Element> getSearchResults() throws org.jdom2.JDOMException, JAXBException, OwsException
org.jdom2.JDOMExceptionJAXBExceptionOwsExceptionpublic String getSearchResultsString() throws org.jdom2.JDOMException, JAXBException, IOException, OwsException
org.jdom2.JDOMExceptionJAXBExceptionIOExceptionOwsExceptionpublic List<OnlineResource> getResourcesFlattened()
public List<OnlineResource> getResourcesFlattened(List<Protocol> allowedProtocols)
allowedProtocols - Online resource protocols that are allowed in the search results.
An empty list indicates all Protocol's are allowed.public Map<URI,List<OnlineResource>> getResourcesMap()
public Map<URI,List<OnlineResource>> getResourcesMap(List<Protocol> allowedProtocols)
allowedProtocols - Online resource protocols that are allowed in the search results.
An empty list indicates all Protocol's are allowed.public Map<URI,List<OnlineResource>> getResourcesMap(org.jdom2.Element resultElem, List<Protocol> allowedProtocols) throws UnsupportedOperationException
UnsupportedOperationExceptionpublic String getUUID(org.jdom2.Element rootElement) throws UnsupportedOperationException
UnsupportedOperationExceptionpublic String getUUID(org.jdom2.Element rootElement, boolean sanitize) throws UnsupportedOperationException
UnsupportedOperationExceptionpublic String getTitle(org.jdom2.Element recordElement) throws org.jdom2.JDOMException
org.jdom2.JDOMExceptionpublic List<org.jdom2.Text> getKeyWords(org.jdom2.Element recordElement) throws org.jdom2.JDOMException
org.jdom2.JDOMExceptionpublic List<String> getKeyWordsAsStringList(org.jdom2.Element recordElement) throws org.jdom2.JDOMException
org.jdom2.JDOMExceptionpublic String getIdentificationDate(org.jdom2.Element recordElement) throws org.jdom2.JDOMException
org.jdom2.JDOMExceptionpublic String getResponsibleOrganisationName(org.jdom2.Element recordElement) throws org.jdom2.JDOMException
org.jdom2.JDOMExceptionpublic String getDateStamp(org.jdom2.Element recordElement) throws org.jdom2.JDOMException
org.jdom2.JDOMExceptionpublic String getAbstractText(org.jdom2.Element recordElement) throws org.jdom2.JDOMException
org.jdom2.JDOMExceptionpublic String getBrowseGraphicFileName(org.jdom2.Element recordElement) throws org.jdom2.JDOMException
org.jdom2.JDOMExceptionpublic String getMetadataStandardName(org.jdom2.Element recordElement) throws org.jdom2.JDOMException
recordElement - org.jdom2.JDOMExceptionpublic boolean isMetadataForService(org.jdom2.Element recordElement)
throws org.jdom2.JDOMException
recordElement - org.jdom2.JDOMExceptionpublic List<OperatesOn> getOperatesOn(org.jdom2.Element recordElement) throws org.jdom2.JDOMException
org.jdom2.JDOMExceptionpublic List<Map<String,String>> getOperatesOnAsStringList(org.jdom2.Element recordElement) throws org.jdom2.JDOMException
org.jdom2.JDOMExceptionpublic List<UrlDataset> getUrlDatasets(org.jdom2.Element recordElement) throws org.jdom2.JDOMException
org.jdom2.JDOMExceptionCopyright © 2021 B3Partners B.V.. All rights reserved.