Class PrepopulatedSchemaClient

  • All Implemented Interfaces:
    com.github.erosb.jsonsKema.SchemaClient

    
    public final class PrepopulatedSchemaClient
     implements SchemaClient
                        

    A SchemaClient which, holds a registry of URI -> String mapping. If the URI received by {@code get()} is known by the registry, then the mapped {@code String} is returned, otherwise the {@code fallbackClient} is used to obtain the content.

    The registry contains default mappings for meta-schema URIs, which can be extended by adding {@code additionalMappings}.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      InputStream get(URI uri)
      • Methods inherited from class com.github.erosb.jsonsKema.SchemaClient

        getParsed
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait