public AttributeCollector setStringPattern(ObjectNode node, String pattern, SchemaGenerationContext generationContext) {
        if (pattern != null) {
            node.put(generationContext.getKeyword(SchemaKeyword.TAG_PATTERN), pattern);
        }
        return this;
    }
Setter for "{@link SchemaKeyword#TAG_PATTERN}" attribute (considering Draft 7).

@param node schema node to set attribute on
@param pattern attribute value to set
@param generationContext generation context, including configuration to apply when looking-up attribute values
@return this instance (for chaining)
jsonschema-generator/src/main/java/com/github/victools/jsonschema/generator/impl/AttributeCollector.java