Interface MetadataConverterIF

    • Method Detail

      • readMetadataContent

        Object readMetadataContent​(InvDataset dataset,
                                   org.jdom2.Element mdataElement)
        Create an InvMetadata content object from an org.jdom2.Element.
        Parameters:
        dataset - : the containing dataset
        mdataElement - : the element
        Returns:
        an object representing the metadata content. The type depends on the metadata handler.
      • readMetadataContentFromURL

        Object readMetadataContentFromURL​(InvDataset dataset,
                                          URI uri)
                                   throws IOException
        Create an InvMetadata content object from an XML document at a named URL.
        Parameters:
        dataset - : the containing dataset
        uri - : the URI that the XML doc is at.
        Returns:
        an object representing the metadata content. The type depends on the metadata handler.
        Throws:
        IOException - on read error
      • addMetadataContent

        void addMetadataContent​(org.jdom2.Element mdataElement,
                                Object contentObject)
        Serialize the InvMetadata content object to a org.jdom2.Element and add ro the element.
        Parameters:
        mdataElement - : the org.w3c.dom.Element to add to
        contentObject - : the InvMetadata content object
      • validateMetadataContent

        boolean validateMetadataContent​(Object contentObject,
                                        StringBuilder out)
        Validate internal data structures.
        Parameters:
        contentObject - : the content object
        out - : print errors here
        Returns:
        true if no fatal validation errors.