Class Output

    • Field Detail

      • log

        protected static final org.apache.commons.logging.Log log
      • cswNameSpace

        protected static final org.jdom2.Namespace cswNameSpace
      • gmdNameSpace

        protected static final org.jdom2.Namespace gmdNameSpace
      • gcoNameSpace

        protected static final org.jdom2.Namespace gcoNameSpace
      • cswPrefixNameSpace

        protected static final org.jdom2.Namespace cswPrefixNameSpace
      • gmdPrefixNameSpace

        protected static final org.jdom2.Namespace gmdPrefixNameSpace
      • gcoPrefixNameSpace

        protected static final org.jdom2.Namespace gcoPrefixNameSpace
      • srvPrefixNameSpace

        protected static final org.jdom2.Namespace srvPrefixNameSpace
      • resultElementFilter

        protected static final org.jdom2.filter.ElementFilter resultElementFilter
      • resourceElementFilter

        protected static final org.jdom2.filter.ElementFilter resourceElementFilter
      • fileIdentifierElementFilter

        protected static final org.jdom2.filter.ElementFilter fileIdentifierElementFilter
      • titleJdomXPath

        protected static org.jdom2.xpath.XPath titleJdomXPath
      • keywordsJdomXPath

        protected static org.jdom2.xpath.XPath keywordsJdomXPath
      • identificationDateJdomXPath

        protected static org.jdom2.xpath.XPath identificationDateJdomXPath
      • responsibleOrganisationNameJdomXPath

        protected static org.jdom2.xpath.XPath responsibleOrganisationNameJdomXPath
      • dateStampJdomXPath

        protected static org.jdom2.xpath.XPath dateStampJdomXPath
      • dateTimeStampJdomXPath

        protected static org.jdom2.xpath.XPath dateTimeStampJdomXPath
      • abstractJdomXPath

        protected static org.jdom2.xpath.XPath abstractJdomXPath
      • browseGraphicFileName

        protected static org.jdom2.xpath.XPath browseGraphicFileName
      • metadataStandardNameXPath

        protected static org.jdom2.xpath.XPath metadataStandardNameXPath
      • urlDatasetNameXPath

        protected static org.jdom2.xpath.XPath urlDatasetNameXPath
      • operatesOnXpath

        protected static org.jdom2.xpath.XPath operatesOnXpath
      • defaultProtocol

        protected static final Protocol defaultProtocol
      • defaultAllowedProtocols

        protected static final List<Protocol> defaultAllowedProtocols
      • xmlDocument

        protected org.jdom2.Document xmlDocument
      • response

        protected javax.xml.bind.JAXBElement response
      • schema

        protected Schema schema
    • Constructor Detail

      • Output

        public Output​(org.jdom2.Document xmlDocument)
      • Output

        public Output​(org.jdom2.Document xmlDocument,
                      Schema schema)
    • Method Detail

      • getXml

        public org.jdom2.Document getXml()
      • getResponse

        protected javax.xml.bind.JAXBElement getResponse()
                                                  throws org.jdom2.JDOMException,
                                                         javax.xml.bind.JAXBException,
                                                         OwsException
        Throws:
        org.jdom2.JDOMException
        javax.xml.bind.JAXBException
        OwsException
      • getTargetType

        protected abstract Class getTargetType()
      • iterator

        public Iterator<org.jdom2.Element> iterator()
        Specified by:
        iterator in interface Iterable<org.jdom2.Element>
      • getSearchResultsW3C

        public abstract List<Element> getSearchResultsW3C()
                                                   throws org.jdom2.JDOMException,
                                                          javax.xml.bind.JAXBException,
                                                          OwsException
        Throws:
        org.jdom2.JDOMException
        javax.xml.bind.JAXBException
        OwsException
      • getSearchResults

        public List<org.jdom2.Element> getSearchResults()
                                                 throws org.jdom2.JDOMException,
                                                        javax.xml.bind.JAXBException,
                                                        OwsException
        Throws:
        org.jdom2.JDOMException
        javax.xml.bind.JAXBException
        OwsException
      • getResourcesFlattened

        public List<OnlineResource> getResourcesFlattened()
        List of OnlineResource's. If the same resource-URL is included in more result-metadata, all are included in this list.
        Returns:
        List of OnlineResource's.
      • getResourcesFlattened

        public List<OnlineResource> getResourcesFlattened​(List<Protocol> allowedProtocols)
        List of OnlineResource's. If the same resource-URL is included in more result-metadata, all are included in this list.
        Parameters:
        allowedProtocols - Online resource protocols that are allowed in the search results. An empty list indicates all Protocol's are allowed.
        Returns:
        List of OnlineResource's.
      • getResourcesMap

        public Map<URI,​List<OnlineResource>> getResourcesMap()
        List of OnlineResource's grouped by URI.
        Returns:
        List of OnlineResource's grouped by URI.
      • getResourcesMap

        public Map<URI,​List<OnlineResource>> getResourcesMap​(List<Protocol> allowedProtocols)
        List of OnlineResource's grouped by URI.
        Parameters:
        allowedProtocols - Online resource protocols that are allowed in the search results. An empty list indicates all Protocol's are allowed.
        Returns:
        List of OnlineResource's grouped by URI.
      • getTitle

        public String getTitle​(org.jdom2.Element recordElement)
                        throws org.jdom2.JDOMException
        Throws:
        org.jdom2.JDOMException
      • getKeyWords

        public List<org.jdom2.Text> getKeyWords​(org.jdom2.Element recordElement)
                                         throws org.jdom2.JDOMException
        Throws:
        org.jdom2.JDOMException
      • getKeyWordsAsStringList

        public List<String> getKeyWordsAsStringList​(org.jdom2.Element recordElement)
                                             throws org.jdom2.JDOMException
        Throws:
        org.jdom2.JDOMException
      • getIdentificationDate

        public String getIdentificationDate​(org.jdom2.Element recordElement)
                                     throws org.jdom2.JDOMException
        Throws:
        org.jdom2.JDOMException
      • getResponsibleOrganisationName

        public String getResponsibleOrganisationName​(org.jdom2.Element recordElement)
                                              throws org.jdom2.JDOMException
        Throws:
        org.jdom2.JDOMException
      • getDateStamp

        public String getDateStamp​(org.jdom2.Element recordElement)
                            throws org.jdom2.JDOMException
        First try to get the Date object if empty or ommitted try to get the DateTime object.
        Throws:
        org.jdom2.JDOMException
      • getAbstractText

        public String getAbstractText​(org.jdom2.Element recordElement)
                               throws org.jdom2.JDOMException
        Throws:
        org.jdom2.JDOMException
      • getBrowseGraphicFileName

        public String getBrowseGraphicFileName​(org.jdom2.Element recordElement)
                                        throws org.jdom2.JDOMException
        Throws:
        org.jdom2.JDOMException
      • getMetadataStandardName

        public String getMetadataStandardName​(org.jdom2.Element recordElement)
                                       throws org.jdom2.JDOMException
        Returns the metadata standard name.
        Parameters:
        recordElement -
        Returns:
        The ISO verison of the metadata standard
        Throws:
        org.jdom2.JDOMException
      • isMetadataForService

        public boolean isMetadataForService​(org.jdom2.Element recordElement)
                                     throws org.jdom2.JDOMException
        Returns true if given metadata element describes a service.
        Parameters:
        recordElement -
        Returns:
        true if metadata describes services
        Throws:
        org.jdom2.JDOMException
      • getOperatesOn

        public List<OperatesOn> getOperatesOn​(org.jdom2.Element recordElement)
                                       throws org.jdom2.JDOMException
        Throws:
        org.jdom2.JDOMException
      • getOperatesOnAsStringList

        public List<Map<String,​String>> getOperatesOnAsStringList​(org.jdom2.Element recordElement)
                                                                 throws org.jdom2.JDOMException
        Throws:
        org.jdom2.JDOMException
      • getUrlDatasets

        public List<UrlDataset> getUrlDatasets​(org.jdom2.Element recordElement)
                                        throws org.jdom2.JDOMException
        Throws:
        org.jdom2.JDOMException
      • getUrlDatasetsAsStringList

        public List<Map<String,​String>> getUrlDatasetsAsStringList​(org.jdom2.Element recordElement)
                                                                  throws org.jdom2.JDOMException
        Throws:
        org.jdom2.JDOMException