Class BaseKeywordValidator

    • Constructor Detail

      • BaseKeywordValidator

        public BaseKeywordValidator​(Keyword keyword,
                                    com.fasterxml.jackson.databind.JsonNode schemaNode,
                                    SchemaLocation schemaLocation,
                                    Schema parentSchema,
                                    SchemaContext schemaContext)
      • BaseKeywordValidator

        protected BaseKeywordValidator​(Keyword keyword,
                                       com.fasterxml.jackson.databind.JsonNode schemaNode,
                                       SchemaLocation schemaLocation,
                                       SchemaContext schemaContext,
                                       Schema parentSchema,
                                       Map<String,​String> errorMessage)
        Constructor to create a copy using fields.
        Parameters:
        keyword - the keyword
        schemaNode - the schema node
        schemaLocation - the schema location
        schemaContext - the schema context
        parentSchema - the parent schema
        errorMessage - the error message
    • Method Detail

      • getParentSchema

        public Schema getParentSchema()
        Gets the parent schema.

        This is the lexical parent schema.

        Returns:
        the parent schema
      • getNodeFieldType

        protected String getNodeFieldType()
      • preloadSchemas

        protected void preloadSchemas​(Collection<Schema> schemas)