Class SchemaMappers.Builder

  • Enclosing class:
    SchemaMappers

    public static class SchemaMappers.Builder
    extends java.lang.Object
    • Method Detail

      • values

        public SchemaMappers.Builder values​(java.util.function.Consumer<java.util.List<SchemaMapper>> customizer)
        Customize the schema mappers.
        Parameters:
        customizer - the customizer
        Returns:
        the builder
      • mapPrefix

        public SchemaMappers.Builder mapPrefix​(java.lang.String source,
                                               java.lang.String replacement)
        Maps a schema given a source prefix with a replacement.
        Parameters:
        source - the source prefix
        replacement - the replacement prefix
        Returns:
        the builder
      • mappings

        public SchemaMappers.Builder mappings​(java.util.Map<java.lang.String,​java.lang.String> mappings)
        Sets the mappings.
        Parameters:
        mappings - the mappings
        Returns:
        the builder
      • mappings

        public SchemaMappers.Builder mappings​(java.util.function.Function<java.lang.String,​java.lang.String> mappings)
        Sets the function that maps the IRI to another IRI.
        Parameters:
        mappings - the mappings
        Returns:
        the builder
      • mappings

        public SchemaMappers.Builder mappings​(java.util.function.Predicate<java.lang.String> test,
                                              java.util.function.Function<java.lang.String,​java.lang.String> mappings)
        Sets the function that maps the IRI to another IRI if the predicate is true.
        Parameters:
        test - the predicate
        mappings - the mappings
        Returns:
        the builder