Class SchemaLoaders.Builder

    • Method Detail

      • schemas

        public SchemaLoaders.Builder schemas​(Map<String,​String> schemas)
        Sets the schema data by absolute IRI.
        Parameters:
        schemas - the map of IRI to schema data
        Returns:
        the builder
      • schemas

        public SchemaLoaders.Builder schemas​(Function<String,​String> schemas)
        Sets the schema data by absolute IRI function.
        Parameters:
        schemas - the function that returns schema data given IRI
        Returns:
        the builder
      • schemas

        public <T> SchemaLoaders.Builder schemas​(Function<String,​T> mapIriToObject,
                                                 Function<T,​String> mapObjectToData)
        Sets the schema data by using two mapping functions.

        Firstly to map the IRI to an object. If the object is null no mapping is performed.

        Next to map the object to the schema data.

        Type Parameters:
        T - the type of the object
        Parameters:
        mapIriToObject - the mapping of IRI to object
        mapObjectToData - the mappingof object to schema data
        Returns:
        the builder