Class OWSCapabilities

    • Field Detail

      • owsNamespaceURI

        protected java.lang.String owsNamespaceURI
      • eventReader

        protected javax.xml.stream.XMLEventReader eventReader
    • Constructor Detail

      • OWSCapabilities

        public OWSCapabilities​(java.lang.String namespaceURI,
                               java.lang.Object docSource)
        Create a new capabilities parser.
        Parameters:
        namespaceURI - the default namespace URI.
        docSource - the XML source. May be a filename, file, stream or other type allowed by WWXML.openEventReader(Object).
        Throws:
        java.lang.IllegalArgumentException - if the document source is null.
    • Method Detail

      • determineNamespaces

        protected abstract void determineNamespaces()
      • initialize

        protected void initialize()
      • createReader

        protected javax.xml.stream.XMLEventReader createReader​(java.lang.Object docSource)
      • createParserContext

        protected XMLEventParserContext createParserContext​(javax.xml.stream.XMLEventReader reader)
      • getVersion

        public java.lang.String getVersion()
        Returns the document's version number.
        Returns:
        the document's version number.
      • getUpdateSequence

        public java.lang.String getUpdateSequence()
        Returns the document's update sequence.
        Returns:
        the document's update sequence.
      • parse

        public OWSCapabilities parse​(java.lang.Object... args)
                              throws javax.xml.stream.XMLStreamException
        Starts document parsing. This method initiates parsing of the XML document and returns when the full capabilities document has been parsed.
        Parameters:
        args - optional arguments to pass to parsers of sub-elements.
        Returns:
        this if parsing is successful, otherwise null.
        Throws:
        javax.xml.stream.XMLStreamException - if an exception occurs while attempting to read the event stream.
      • setOWSNamespaceURI

        protected void setOWSNamespaceURI​(java.lang.String ns)
      • getOWSNamespaceURI

        public java.lang.String getOWSNamespaceURI()