Class AttributeCollector
- java.lang.Object
-
- com.github.victools.jsonschema.generator.impl.AttributeCollector
-
public class AttributeCollector extends Object
Helper class for looking-up various attribute values for a field or method via a given configuration instance.
-
-
Constructor Summary
Constructors Constructor Description AttributeCollector(com.fasterxml.jackson.databind.ObjectMapper objectMapper)Constructor accepting the object mapper to use.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static com.fasterxml.jackson.databind.node.ObjectNodecollectFieldAttributes(FieldScope field, SchemaGenerationContext generationContext)Collect a field's contextual attributes (i.e.static com.fasterxml.jackson.databind.node.ObjectNodecollectMethodAttributes(MethodScope method, SchemaGenerationContext generationContext)Collect a method's contextual attributes (i.e.static com.fasterxml.jackson.databind.node.ObjectNodecollectTypeAttributes(TypeScope scope, SchemaGenerationContext generationContext, Set<String> allowedSchemaTypes)Collect a given scope's general type attributes (i.e.static voidmergeMissingAttributes(com.fasterxml.jackson.databind.node.ObjectNode targetNode, com.fasterxml.jackson.databind.node.ObjectNode attributeContainer)Merge the second node's attributes into the first, skipping those attributes that are already contained in the first node.AttributeCollectorsetAdditionalProperties(com.fasterxml.jackson.databind.node.ObjectNode node, com.fasterxml.jackson.databind.JsonNode additionalProperties, SchemaGenerationContext generationContext)Setter for "SchemaKeyword.TAG_ADDITIONAL_PROPERTIES" attribute.AttributeCollectorsetAnchor(com.fasterxml.jackson.databind.node.ObjectNode node, String anchor, SchemaGenerationContext generationContext)Setter for "SchemaKeyword.TAG_ANCHOR" attribute.AttributeCollectorsetArrayMaxItems(com.fasterxml.jackson.databind.node.ObjectNode node, Integer maxItemCount)Deprecated.AttributeCollectorsetArrayMaxItems(com.fasterxml.jackson.databind.node.ObjectNode node, Integer maxItemCount, SchemaGenerationContext generationContext)Setter for "SchemaKeyword.TAG_ITEMS_MAX" attribute.AttributeCollectorsetArrayMinItems(com.fasterxml.jackson.databind.node.ObjectNode node, Integer minItemCount)Deprecated.AttributeCollectorsetArrayMinItems(com.fasterxml.jackson.databind.node.ObjectNode node, Integer minItemCount, SchemaGenerationContext generationContext)Setter for "SchemaKeyword.TAG_ITEMS_MIN" attribute.AttributeCollectorsetArrayUniqueItems(com.fasterxml.jackson.databind.node.ObjectNode node, Boolean uniqueItems)Deprecated.AttributeCollectorsetArrayUniqueItems(com.fasterxml.jackson.databind.node.ObjectNode node, Boolean uniqueItems, SchemaGenerationContext generationContext)Setter for "SchemaKeyword.TAG_ITEMS_UNIQUE" attribute.AttributeCollectorsetDefault(com.fasterxml.jackson.databind.node.ObjectNode node, Object defaultValue)Deprecated.AttributeCollectorsetDefault(com.fasterxml.jackson.databind.node.ObjectNode node, Object defaultValue, SchemaGenerationContext generationContext)Setter for "SchemaKeyword.TAG_DEFAULT" attribute.AttributeCollectorsetDescription(com.fasterxml.jackson.databind.node.ObjectNode node, String description)Deprecated.AttributeCollectorsetDescription(com.fasterxml.jackson.databind.node.ObjectNode node, String description, SchemaGenerationContext generationContext)Setter for "SchemaKeyword.TAG_DESCRIPTION" attribute.AttributeCollectorsetEnum(com.fasterxml.jackson.databind.node.ObjectNode node, Collection<?> enumValues)Deprecated.AttributeCollectorsetEnum(com.fasterxml.jackson.databind.node.ObjectNode node, Collection<?> enumValues, SchemaGenerationContext generationContext)Setter for "SchemaKeyword.TAG_CONST"/"SchemaKeyword.TAG_ENUM" attribute.AttributeCollectorsetId(com.fasterxml.jackson.databind.node.ObjectNode node, String id, SchemaGenerationContext generationContext)Setter for "SchemaKeyword.TAG_ID" attribute.AttributeCollectorsetNumberExclusiveMaximum(com.fasterxml.jackson.databind.node.ObjectNode node, BigDecimal exclusiveMaximum)Deprecated.AttributeCollectorsetNumberExclusiveMaximum(com.fasterxml.jackson.databind.node.ObjectNode node, BigDecimal exclusiveMaximum, SchemaGenerationContext generationContext)Setter for "SchemaKeyword.TAG_MAXIMUM_EXCLUSIVE" attribute.AttributeCollectorsetNumberExclusiveMinimum(com.fasterxml.jackson.databind.node.ObjectNode node, BigDecimal exclusiveMinimum)Deprecated.AttributeCollectorsetNumberExclusiveMinimum(com.fasterxml.jackson.databind.node.ObjectNode node, BigDecimal exclusiveMinimum, SchemaGenerationContext generationContext)Setter for "SchemaKeyword.TAG_MINIMUM_EXCLUSIVE" attribute (considering Draft 7).AttributeCollectorsetNumberInclusiveMaximum(com.fasterxml.jackson.databind.node.ObjectNode node, BigDecimal inclusiveMaximum)Deprecated.AttributeCollectorsetNumberInclusiveMaximum(com.fasterxml.jackson.databind.node.ObjectNode node, BigDecimal inclusiveMaximum, SchemaGenerationContext generationContext)Setter for "SchemaKeyword.TAG_MAXIMUM" attribute (considering Draft 7).AttributeCollectorsetNumberInclusiveMinimum(com.fasterxml.jackson.databind.node.ObjectNode node, BigDecimal inclusiveMinimum)Deprecated.AttributeCollectorsetNumberInclusiveMinimum(com.fasterxml.jackson.databind.node.ObjectNode node, BigDecimal inclusiveMinimum, SchemaGenerationContext generationContext)Setter for "SchemaKeyword.TAG_MINIMUM" attribute (considering Draft 7).AttributeCollectorsetNumberMultipleOf(com.fasterxml.jackson.databind.node.ObjectNode node, BigDecimal multipleOf)Deprecated.AttributeCollectorsetNumberMultipleOf(com.fasterxml.jackson.databind.node.ObjectNode node, BigDecimal multipleOf, SchemaGenerationContext generationContext)Setter for "SchemaKeyword.TAG_MULTIPLE_OF" attribute.AttributeCollectorsetPatternProperties(com.fasterxml.jackson.databind.node.ObjectNode node, Map<String,com.fasterxml.jackson.databind.JsonNode> patternProperties, SchemaGenerationContext generationContext)Setter for "SchemaKeyword.TAG_PATTERN_PROPERTIES" attribute.AttributeCollectorsetReadOnly(com.fasterxml.jackson.databind.node.ObjectNode node, boolean readOnly, SchemaGenerationContext generationContext)Setter for "SchemaKeyword.TAG_READ_ONLY" attribute.AttributeCollectorsetStringFormat(com.fasterxml.jackson.databind.node.ObjectNode node, String format)Deprecated.AttributeCollectorsetStringFormat(com.fasterxml.jackson.databind.node.ObjectNode node, String format, SchemaGenerationContext generationContext)Setter for "SchemaKeyword.TAG_FORMAT" attribute (considering Draft 7).AttributeCollectorsetStringMaxLength(com.fasterxml.jackson.databind.node.ObjectNode node, Integer maxLength)Deprecated.AttributeCollectorsetStringMaxLength(com.fasterxml.jackson.databind.node.ObjectNode node, Integer maxLength, SchemaGenerationContext generationContext)Setter for "SchemaKeyword.TAG_LENGTH_MAX" attribute (considering Draft 7).AttributeCollectorsetStringMinLength(com.fasterxml.jackson.databind.node.ObjectNode node, Integer minLength)Deprecated.AttributeCollectorsetStringMinLength(com.fasterxml.jackson.databind.node.ObjectNode node, Integer minLength, SchemaGenerationContext generationContext)Setter for "SchemaKeyword.TAG_LENGTH_MIN" attribute (considering Draft 7).AttributeCollectorsetStringPattern(com.fasterxml.jackson.databind.node.ObjectNode node, String pattern)Deprecated.AttributeCollectorsetStringPattern(com.fasterxml.jackson.databind.node.ObjectNode node, String pattern, SchemaGenerationContext generationContext)Setter for "SchemaKeyword.TAG_PATTERN" attribute (considering Draft 7).AttributeCollectorsetTitle(com.fasterxml.jackson.databind.node.ObjectNode node, String title)Deprecated.AttributeCollectorsetTitle(com.fasterxml.jackson.databind.node.ObjectNode node, String title, SchemaGenerationContext generationContext)Setter for "SchemaKeyword.TAG_TITLE" attribute.AttributeCollectorsetWriteOnly(com.fasterxml.jackson.databind.node.ObjectNode node, boolean writeOnly, SchemaGenerationContext generationContext)Setter for "SchemaKeyword.TAG_WRITE_ONLY" attribute.
-
-
-
Method Detail
-
collectFieldAttributes
public static com.fasterxml.jackson.databind.node.ObjectNode collectFieldAttributes(FieldScope field, SchemaGenerationContext generationContext)
Collect a field's contextual attributes (i.e. everything not related to the structure).- Parameters:
field- the field for which to collect JSON schema attributesgenerationContext- generation context, including configuration to apply when looking-up attribute values- Returns:
- node holding all collected attributes (possibly empty)
-
collectMethodAttributes
public static com.fasterxml.jackson.databind.node.ObjectNode collectMethodAttributes(MethodScope method, SchemaGenerationContext generationContext)
Collect a method's contextual attributes (i.e. everything not related to the structure).- Parameters:
method- the method for which to collect JSON schema attributesgenerationContext- generation context, including configuration to apply when looking-up attribute values- Returns:
- node holding all collected attributes (possibly empty)
-
collectTypeAttributes
public static com.fasterxml.jackson.databind.node.ObjectNode collectTypeAttributes(TypeScope scope, SchemaGenerationContext generationContext, Set<String> allowedSchemaTypes)
Collect a given scope's general type attributes (i.e. everything not related to the structure).- Parameters:
scope- the scope/type representation for which to collect JSON schema attributesgenerationContext- generation context, including configuration to apply when looking-up attribute valuesallowedSchemaTypes- declared schema types determining which attributes are meaningful to be included- Returns:
- node holding all collected attributes (possibly empty)
-
mergeMissingAttributes
public static void mergeMissingAttributes(com.fasterxml.jackson.databind.node.ObjectNode targetNode, com.fasterxml.jackson.databind.node.ObjectNode attributeContainer)Merge the second node's attributes into the first, skipping those attributes that are already contained in the first node.- Parameters:
targetNode- node to add non-existent attributes toattributeContainer- container holding attributes to add to the first node
-
setId
public AttributeCollector setId(com.fasterxml.jackson.databind.node.ObjectNode node, String id, SchemaGenerationContext generationContext)
Setter for "SchemaKeyword.TAG_ID" attribute.- Parameters:
node- schema node to set attribute onid- attribute value to setgenerationContext- generation context, including configuration to apply when looking-up attribute values- Returns:
- this instance (for chaining)
-
setAnchor
public AttributeCollector setAnchor(com.fasterxml.jackson.databind.node.ObjectNode node, String anchor, SchemaGenerationContext generationContext)
Setter for "SchemaKeyword.TAG_ANCHOR" attribute.- Parameters:
node- schema node to set attribute onanchor- attribute value to setgenerationContext- generation context, including configuration to apply when looking-up attribute values- Returns:
- this instance (for chaining)
-
setTitle
@Deprecated public AttributeCollector setTitle(com.fasterxml.jackson.databind.node.ObjectNode node, String title)
Deprecated.Setter for "SchemaKeyword.TAG_TITLE" attribute (considering Draft 7).- Parameters:
node- schema node to set attribute ontitle- attribute value to set- Returns:
- this instance (for chaining)
-
setTitle
public AttributeCollector setTitle(com.fasterxml.jackson.databind.node.ObjectNode node, String title, SchemaGenerationContext generationContext)
Setter for "SchemaKeyword.TAG_TITLE" attribute.- Parameters:
node- schema node to set attribute ontitle- attribute value to setgenerationContext- generation context, including configuration to apply when looking-up attribute values- Returns:
- this instance (for chaining)
-
setDescription
@Deprecated public AttributeCollector setDescription(com.fasterxml.jackson.databind.node.ObjectNode node, String description)
Deprecated.Setter for "SchemaKeyword.TAG_DESCRIPTION" attribute (considering Draft 7).- Parameters:
node- schema node to set attribute ondescription- attribute value to set- Returns:
- this instance (for chaining)
-
setDescription
public AttributeCollector setDescription(com.fasterxml.jackson.databind.node.ObjectNode node, String description, SchemaGenerationContext generationContext)
Setter for "SchemaKeyword.TAG_DESCRIPTION" attribute.- Parameters:
node- schema node to set attribute ondescription- attribute value to setgenerationContext- generation context, including configuration to apply when looking-up attribute values- Returns:
- this instance (for chaining)
-
setDefault
@Deprecated public AttributeCollector setDefault(com.fasterxml.jackson.databind.node.ObjectNode node, Object defaultValue)
Deprecated.Setter for "SchemaKeyword.TAG_DEFAULT" attribute (considering Draft 7).- Parameters:
node- schema node to set attribute ondefaultValue- attribute value to set- Returns:
- this instance (for chaining)
-
setDefault
public AttributeCollector setDefault(com.fasterxml.jackson.databind.node.ObjectNode node, Object defaultValue, SchemaGenerationContext generationContext)
Setter for "SchemaKeyword.TAG_DEFAULT" attribute.- Parameters:
node- schema node to set attribute ondefaultValue- attribute value to setgenerationContext- generation context, including configuration to apply when looking-up attribute values- Returns:
- this instance (for chaining)
-
setEnum
@Deprecated public AttributeCollector setEnum(com.fasterxml.jackson.databind.node.ObjectNode node, Collection<?> enumValues)
Deprecated.Setter for "SchemaKeyword.TAG_CONST"/"SchemaKeyword.TAG_ENUM" attribute (considering Draft 7).- Parameters:
node- schema node to set attribute onenumValues- attribute value to set- Returns:
- this instance (for chaining)
-
setEnum
public AttributeCollector setEnum(com.fasterxml.jackson.databind.node.ObjectNode node, Collection<?> enumValues, SchemaGenerationContext generationContext)
Setter for "SchemaKeyword.TAG_CONST"/"SchemaKeyword.TAG_ENUM" attribute.- Parameters:
node- schema node to set attribute onenumValues- attribute value to setgenerationContext- generation context, including configuration to apply when looking-up attribute values- Returns:
- this instance (for chaining)
-
setReadOnly
public AttributeCollector setReadOnly(com.fasterxml.jackson.databind.node.ObjectNode node, boolean readOnly, SchemaGenerationContext generationContext)
Setter for "SchemaKeyword.TAG_READ_ONLY" attribute.- Parameters:
node- schema node to set attribute onreadOnly- attribute value to setgenerationContext- generation context, including configuration to apply when looking-up attribute values- Returns:
- this instance (for chaining)
-
setWriteOnly
public AttributeCollector setWriteOnly(com.fasterxml.jackson.databind.node.ObjectNode node, boolean writeOnly, SchemaGenerationContext generationContext)
Setter for "SchemaKeyword.TAG_WRITE_ONLY" attribute.- Parameters:
node- schema node to set attribute onwriteOnly- attribute value to setgenerationContext- generation context, including configuration to apply when looking-up attribute values- Returns:
- this instance (for chaining)
-
setAdditionalProperties
public AttributeCollector setAdditionalProperties(com.fasterxml.jackson.databind.node.ObjectNode node, com.fasterxml.jackson.databind.JsonNode additionalProperties, SchemaGenerationContext generationContext)
Setter for "SchemaKeyword.TAG_ADDITIONAL_PROPERTIES" attribute.- Parameters:
node- schema node to set attribute onadditionalProperties- attribute value to set (sub-schema)generationContext- generation context, including configuration to apply when looking-up attribute values- Returns:
- this instance (for chaining)
-
setPatternProperties
public AttributeCollector setPatternProperties(com.fasterxml.jackson.databind.node.ObjectNode node, Map<String,com.fasterxml.jackson.databind.JsonNode> patternProperties, SchemaGenerationContext generationContext)
Setter for "SchemaKeyword.TAG_PATTERN_PROPERTIES" attribute.- Parameters:
node- schema node to set attribute onpatternProperties- resolved attribute value to set (sub-schema mapped by respective property name pattern)generationContext- generation context, including configuration to apply when looking-up attribute values- Returns:
- this instance (for chaining)
-
setStringMinLength
@Deprecated public AttributeCollector setStringMinLength(com.fasterxml.jackson.databind.node.ObjectNode node, Integer minLength)
Deprecated.Setter for "SchemaKeyword.TAG_LENGTH_MIN" attribute (considering Draft 7).- Parameters:
node- schema node to set attribute onminLength- attribute value to set- Returns:
- this instance (for chaining)
-
setStringMinLength
public AttributeCollector setStringMinLength(com.fasterxml.jackson.databind.node.ObjectNode node, Integer minLength, SchemaGenerationContext generationContext)
Setter for "SchemaKeyword.TAG_LENGTH_MIN" attribute (considering Draft 7).- Parameters:
node- schema node to set attribute onminLength- attribute value to setgenerationContext- generation context, including configuration to apply when looking-up attribute values- Returns:
- this instance (for chaining)
-
setStringMaxLength
@Deprecated public AttributeCollector setStringMaxLength(com.fasterxml.jackson.databind.node.ObjectNode node, Integer maxLength)
Deprecated.Setter for "SchemaKeyword.TAG_LENGTH_MAX" attribute (considering Draft 7).- Parameters:
node- schema node to set attribute onmaxLength- attribute value to set- Returns:
- this instance (for chaining)
-
setStringMaxLength
public AttributeCollector setStringMaxLength(com.fasterxml.jackson.databind.node.ObjectNode node, Integer maxLength, SchemaGenerationContext generationContext)
Setter for "SchemaKeyword.TAG_LENGTH_MAX" attribute (considering Draft 7).- Parameters:
node- schema node to set attribute onmaxLength- attribute value to setgenerationContext- generation context, including configuration to apply when looking-up attribute values- Returns:
- this instance (for chaining)
-
setStringFormat
@Deprecated public AttributeCollector setStringFormat(com.fasterxml.jackson.databind.node.ObjectNode node, String format)
Deprecated.Setter for "SchemaKeyword.TAG_FORMAT" attribute (considering Draft 7).- Parameters:
node- schema node to set attribute onformat- attribute value to set- Returns:
- this instance (for chaining)
-
setStringFormat
public AttributeCollector setStringFormat(com.fasterxml.jackson.databind.node.ObjectNode node, String format, SchemaGenerationContext generationContext)
Setter for "SchemaKeyword.TAG_FORMAT" attribute (considering Draft 7).- Parameters:
node- schema node to set attribute onformat- attribute value to setgenerationContext- generation context, including configuration to apply when looking-up attribute values- Returns:
- this instance (for chaining)
-
setStringPattern
@Deprecated public AttributeCollector setStringPattern(com.fasterxml.jackson.databind.node.ObjectNode node, String pattern)
Deprecated.Setter for "SchemaKeyword.TAG_PATTERN" attribute (considering Draft 7).- Parameters:
node- schema node to set attribute onpattern- attribute value to set- Returns:
- this instance (for chaining)
-
setStringPattern
public AttributeCollector setStringPattern(com.fasterxml.jackson.databind.node.ObjectNode node, String pattern, SchemaGenerationContext generationContext)
Setter for "SchemaKeyword.TAG_PATTERN" attribute (considering Draft 7).- Parameters:
node- schema node to set attribute onpattern- attribute value to setgenerationContext- generation context, including configuration to apply when looking-up attribute values- Returns:
- this instance (for chaining)
-
setNumberInclusiveMinimum
@Deprecated public AttributeCollector setNumberInclusiveMinimum(com.fasterxml.jackson.databind.node.ObjectNode node, BigDecimal inclusiveMinimum)
Deprecated.Setter for "SchemaKeyword.TAG_MINIMUM" attribute (considering Draft 7).- Parameters:
node- schema node to set attribute oninclusiveMinimum- attribute value to set- Returns:
- this instance (for chaining)
-
setNumberInclusiveMinimum
public AttributeCollector setNumberInclusiveMinimum(com.fasterxml.jackson.databind.node.ObjectNode node, BigDecimal inclusiveMinimum, SchemaGenerationContext generationContext)
Setter for "SchemaKeyword.TAG_MINIMUM" attribute (considering Draft 7).- Parameters:
node- schema node to set attribute oninclusiveMinimum- attribute value to setgenerationContext- generation context, including configuration to apply when looking-up attribute values- Returns:
- this instance (for chaining)
-
setNumberExclusiveMinimum
@Deprecated public AttributeCollector setNumberExclusiveMinimum(com.fasterxml.jackson.databind.node.ObjectNode node, BigDecimal exclusiveMinimum)
Deprecated.Setter for "SchemaKeyword.TAG_MINIMUM_EXCLUSIVE" attribute (considering Draft 7).- Parameters:
node- schema node to set attribute onexclusiveMinimum- attribute value to set- Returns:
- this instance (for chaining)
-
setNumberExclusiveMinimum
public AttributeCollector setNumberExclusiveMinimum(com.fasterxml.jackson.databind.node.ObjectNode node, BigDecimal exclusiveMinimum, SchemaGenerationContext generationContext)
Setter for "SchemaKeyword.TAG_MINIMUM_EXCLUSIVE" attribute (considering Draft 7).- Parameters:
node- schema node to set attribute onexclusiveMinimum- attribute value to setgenerationContext- generation context, including configuration to apply when looking-up attribute values- Returns:
- this instance (for chaining)
-
setNumberInclusiveMaximum
@Deprecated public AttributeCollector setNumberInclusiveMaximum(com.fasterxml.jackson.databind.node.ObjectNode node, BigDecimal inclusiveMaximum)
Deprecated.Setter for "SchemaKeyword.TAG_MAXIMUM" attribute (considering Draft 7).- Parameters:
node- schema node to set attribute oninclusiveMaximum- attribute value to set- Returns:
- this instance (for chaining)
-
setNumberInclusiveMaximum
public AttributeCollector setNumberInclusiveMaximum(com.fasterxml.jackson.databind.node.ObjectNode node, BigDecimal inclusiveMaximum, SchemaGenerationContext generationContext)
Setter for "SchemaKeyword.TAG_MAXIMUM" attribute (considering Draft 7).- Parameters:
node- schema node to set attribute oninclusiveMaximum- attribute value to setgenerationContext- generation context, including configuration to apply when looking-up attribute values- Returns:
- this instance (for chaining)
-
setNumberExclusiveMaximum
@Deprecated public AttributeCollector setNumberExclusiveMaximum(com.fasterxml.jackson.databind.node.ObjectNode node, BigDecimal exclusiveMaximum)
Deprecated.Setter for "SchemaKeyword.TAG_MAXIMUM_EXCLUSIVE" attribute (considering Draft 7).- Parameters:
node- schema node to set attribute onexclusiveMaximum- attribute value to set- Returns:
- this instance (for chaining)
-
setNumberExclusiveMaximum
public AttributeCollector setNumberExclusiveMaximum(com.fasterxml.jackson.databind.node.ObjectNode node, BigDecimal exclusiveMaximum, SchemaGenerationContext generationContext)
Setter for "SchemaKeyword.TAG_MAXIMUM_EXCLUSIVE" attribute.- Parameters:
node- schema node to set attribute onexclusiveMaximum- attribute value to setgenerationContext- generation context, including configuration to apply when looking-up attribute values- Returns:
- this instance (for chaining)
-
setNumberMultipleOf
@Deprecated public AttributeCollector setNumberMultipleOf(com.fasterxml.jackson.databind.node.ObjectNode node, BigDecimal multipleOf)
Deprecated.Setter for "SchemaKeyword.TAG_MULTIPLE_OF" attribute (considering Draft 7).- Parameters:
node- schema node to set attribute onmultipleOf- attribute value to set- Returns:
- this instance (for chaining)
-
setNumberMultipleOf
public AttributeCollector setNumberMultipleOf(com.fasterxml.jackson.databind.node.ObjectNode node, BigDecimal multipleOf, SchemaGenerationContext generationContext)
Setter for "SchemaKeyword.TAG_MULTIPLE_OF" attribute.- Parameters:
node- schema node to set attribute onmultipleOf- attribute value to setgenerationContext- generation context, including configuration to apply when looking-up attribute values- Returns:
- this instance (for chaining)
-
setArrayMinItems
@Deprecated public AttributeCollector setArrayMinItems(com.fasterxml.jackson.databind.node.ObjectNode node, Integer minItemCount)
Deprecated.Setter for "SchemaKeyword.TAG_ITEMS_MIN" attribute (considering Draft 7).- Parameters:
node- schema node to set attribute onminItemCount- attribute value to set- Returns:
- this instance (for chaining)
-
setArrayMinItems
public AttributeCollector setArrayMinItems(com.fasterxml.jackson.databind.node.ObjectNode node, Integer minItemCount, SchemaGenerationContext generationContext)
Setter for "SchemaKeyword.TAG_ITEMS_MIN" attribute.- Parameters:
node- schema node to set attribute onminItemCount- attribute value to setgenerationContext- generation context, including configuration to apply when looking-up attribute values- Returns:
- this instance (for chaining)
-
setArrayMaxItems
@Deprecated public AttributeCollector setArrayMaxItems(com.fasterxml.jackson.databind.node.ObjectNode node, Integer maxItemCount)
Deprecated.Setter for "SchemaKeyword.TAG_ITEMS_MAX" attribute (considering Draft 7).- Parameters:
node- schema node to set attribute onmaxItemCount- attribute value to set- Returns:
- this instance (for chaining)
-
setArrayMaxItems
public AttributeCollector setArrayMaxItems(com.fasterxml.jackson.databind.node.ObjectNode node, Integer maxItemCount, SchemaGenerationContext generationContext)
Setter for "SchemaKeyword.TAG_ITEMS_MAX" attribute.- Parameters:
node- schema node to set attribute onmaxItemCount- attribute value to setgenerationContext- generation context, including configuration to apply when looking-up attribute values- Returns:
- this instance (for chaining)
-
setArrayUniqueItems
@Deprecated public AttributeCollector setArrayUniqueItems(com.fasterxml.jackson.databind.node.ObjectNode node, Boolean uniqueItems)
Deprecated.Setter for "SchemaKeyword.TAG_ITEMS_UNIQUE" attribute (considering Draft 7).- Parameters:
node- schema node to set attribute onuniqueItems- attribute value to set- Returns:
- this instance (for chaining)
-
setArrayUniqueItems
public AttributeCollector setArrayUniqueItems(com.fasterxml.jackson.databind.node.ObjectNode node, Boolean uniqueItems, SchemaGenerationContext generationContext)
Setter for "SchemaKeyword.TAG_ITEMS_UNIQUE" attribute.- Parameters:
node- schema node to set attribute onuniqueItems- attribute value to setgenerationContext- generation context, including configuration to apply when looking-up attribute values- Returns:
- this instance (for chaining)
-
-