tuweni / org.apache.tuweni.config / SchemaBuilder / validateProperty

validateProperty

fun validateProperty(key: String!, validator: PropertyValidator<Any!>!): SchemaBuilder! (source)

Add a property validation to this schema.

Multiple validators can be provided for the same key by invoking this method multiple times.

Parameters

key - String!: The configuration property key.

validator - PropertyValidator<Any!>!: A validator for the property.

Exceptions

IllegalArgumentException - If the key cannot be parsed.

Return
SchemaBuilder!: This builder.