Class PrefixSchemaMapper

java.lang.Object
com.networknt.schema.resource.PrefixSchemaMapper
All Implemented Interfaces:
SchemaMapper

public class PrefixSchemaMapper extends Object implements SchemaMapper
Prefix implementation of SchemaMapper.
  • Constructor Details

    • PrefixSchemaMapper

      public PrefixSchemaMapper(String source, String replacement)
  • Method Details

    • map

      public AbsoluteIri map(AbsoluteIri absoluteIRI)
      Description copied from interface: SchemaMapper
      Maps an ID indicated by an absolute IRI to a retrieval IRI.
      Specified by:
      map in interface SchemaMapper
      Parameters:
      absoluteIRI - the ID
      Returns:
      the retrieval IRI or null if this mapper doesn't support the mapping