Interface MetadataProfileDiscovery

  • All Known Implementing Classes:
    MetadataProfileReader

    public interface MetadataProfileDiscovery
    The Interface MetadataProfileDiscovery.
    Author:
    Francesco Mangiacrapa at ISTI-CNR (francesco.mangiacrapa@isti.cnr.it) Sep 30, 2020
    • Method Detail

      • getListOfMetadataProfiles

        List<MetadataProfile> getListOfMetadataProfiles()
                                                 throws Exception
        Gets the list of metadata types.
        Returns:
        the list of metadata types
        Throws:
        Exception - the exception
      • getListOfNamespaceCategories

        List<NamespaceCategory> getListOfNamespaceCategories()
                                                      throws Exception
        Gets the list of namespace categories.
        Returns:
        the list of namespace categories
        Throws:
        Exception - the exception
      • getMetadataFormatForMetadataProfile

        MetadataFormat getMetadataFormatForMetadataProfile​(MetadataProfile type)
                                                    throws Exception
        Gets the metadata format for metadata type.
        Parameters:
        type - the type
        Returns:
        the metadata format for metadata type
        Throws:
        Exception - the exception
      • resetMetadataProfile

        void resetMetadataProfile()
        Reset metadata profile. Forces current list of Metadata Profile at null in order to read it from IS againg
      • resetNamespaceCategories

        void resetNamespaceCategories()
        Reset namespace categories. Forces current list of Namespace Categories Profile at null in order to read it from IS againg
      • getProfileSchema

        String getProfileSchema()
        Return the XSD of the profile schema.
        Returns:
        the String representation of the XSD containing the schema for a profile
      • validateProfile

        void validateProfile​(String xmlProfile)
                      throws Exception
        Validate the xml provided as argument.
        Parameters:
        xmlProfile - the string representation of the XML to validate again the schema
        Throws:
        Exception - the exception