Class CatalogElementHandler

    • Constructor Detail

      • CatalogElementHandler

        public CatalogElementHandler​(File parentFolder,
                                     Map<org.semanticweb.owlapi.model.IRI,​org.semanticweb.owlapi.model.IRI> mappings)
        Initialize the element handler with required context.
        Parameters:
        parentFolder - used to resolve relative file paths
        mappings - use to build a map for IRI resolution
    • Method Detail

      • startElement

        public void startElement​(String uri,
                                 String localName,
                                 String qName,
                                 Attributes attributes)
        Handle startElement events by looking for 'uri' elements, and their 'name' and 'uri' attributes, and updating 'mappings'. We only handle 'uri' elements, and do not update mappings if any of our checks fail.
        Specified by:
        startElement in interface ContentHandler
        Overrides:
        startElement in class DefaultHandler
        Parameters:
        uri - the URI of the start element
        localName - the local name of the start element
        qName - the qualified name of the start element
        attributes - the attributes object of the start element