Class InputValidationIssue
java.lang.Object
io.github.belgif.rest.problem.api.InputValidationIssue
Maps to InputValidationIssue in belgif/problem/v1/problem-v1.yaml.
Note that this model class intentionally does not include the "status" and "instance" properties. In problem-v1.yaml, InputValidationIssue technically inherits these properties from Problem, but they are not meant to be used for input validation issues. In the unlikely scenario where these properties would be needed, they can still be added/retrieved via the additionalProperties.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInputValidationIssue
(InEnum in, String name) InputValidationIssue
(InEnum in, String name, Object value) InputValidationIssue
(URI type, String title) -
Method Summary
Modifier and TypeMethodDescriptionvoid
additionalProperty
(String key, Object value) boolean
getHref()
getIn()
getName()
getTitle()
getType()
getValue()
int
hashCode()
Set the inputs[] to the given inputs.inputs
(Collection<Input<?>> inputs) Set the inputs[] to the given collection.localizedDetail
(Class<?> context, String key, Object... args) Set a localized detail message.localizedDetail
(String key, Object... args) Set a localized detail message.void
setAdditionalProperty
(String name, Object value) void
void
void
void
void
void
void
toString()
valueEntry
(String key, Object value) Deprecated.
-
Field Details
-
BY_NAME
-
-
Constructor Details
-
InputValidationIssue
public InputValidationIssue() -
InputValidationIssue
-
InputValidationIssue
-
InputValidationIssue
-
-
Method Details
-
getType
-
setType
-
getHref
-
setHref
-
getTitle
-
setTitle
-
getDetail
-
setDetail
-
getIn
-
setIn
-
getName
-
setName
-
getValue
-
setValue
-
getInputs
-
addInput
-
getAdditionalProperties
-
setAdditionalProperty
-
type
-
type
-
href
-
href
-
title
-
detail
-
localizedDetail
Set a localized detail message.- Parameters:
key
- the resource bundle key (without ".detail" suffix)args
- the optional arguments- Returns:
- this InputValidationIssue
- See Also:
-
localizedDetail
Set a localized detail message.- Parameters:
context
- the context class where the resource bundle is loaded fromkey
- the resource bundle key (without ".detail" suffix)args
- the optional arguments- Returns:
- this InputValidationIssue
- See Also:
-
in
-
in
-
in
-
name
-
value
-
valueEntry
Deprecated.useinputs(Collection)
orinputs(Input, Input, Input[])
to reference multiple input valuesEmbed a key-value pair inside the value property.- Parameters:
key
- the keyvalue
- the value- Returns:
- this InputValidationIssue
-
inputs
Set the inputs[] to the given collection.- Parameters:
inputs
- collection with input items to initialize the inputs[] array. Any previous inputs are removed.- Returns:
- this InputValidationIssue
- Throws:
IllegalArgumentException
- if in/name/value properties are not null (mutually exclusive with inputs[]), or when the collection only contains one non-null item.
-
inputs
public InputValidationIssue inputs(Input<?> firstInput, Input<?> secondInput, Input<?>... otherInputs) Set the inputs[] to the given inputs.- Parameters:
firstInput
- the first inputsecondInput
- the second inputotherInputs
- the varargs array with other inputs- Returns:
- this InputValidationIssue
- Throws:
IllegalArgumentException
- if in/name/value properties are not null (mutually exclusive with inputs[]), or when the parameters only contain one non-null item.
-
additionalProperty
-
equals
-
hashCode
public int hashCode() -
toString
-
inputs(Collection)
orinputs(Input, Input, Input[])
to reference multiple input values