Class MapSchemaLoader

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.function.Function<java.lang.String,​java.lang.String> mappings  
    • Constructor Summary

      Constructors 
      Constructor Description
      MapSchemaLoader​(java.util.function.Function<java.lang.String,​java.lang.String> mappings)
      Sets the schema data by absolute IRI function.
      MapSchemaLoader​(java.util.function.Function<java.lang.String,​T> mapIriToObject, java.util.function.Function<T,​java.lang.String> mapObjectToData)
      Sets the schema data by using two mapping functions.
      MapSchemaLoader​(java.util.Map<java.lang.String,​java.lang.String> mappings)
      Sets the schema data by absolute IRI.
    • Field Detail

      • mappings

        private final java.util.function.Function<java.lang.String,​java.lang.String> mappings
    • Constructor Detail

      • MapSchemaLoader

        public MapSchemaLoader​(java.util.Map<java.lang.String,​java.lang.String> mappings)
        Sets the schema data by absolute IRI.
        Parameters:
        mappings - the mappings
      • MapSchemaLoader

        public MapSchemaLoader​(java.util.function.Function<java.lang.String,​java.lang.String> mappings)
        Sets the schema data by absolute IRI function.
        Parameters:
        mappings - the mappings
      • MapSchemaLoader

        public MapSchemaLoader​(java.util.function.Function<java.lang.String,​T> mapIriToObject,
                               java.util.function.Function<T,​java.lang.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