@Incubating public interface ContainerElementTarget
Modifier and Type | Method and Description |
---|---|
ContainerElementConstraintMappingContext |
containerElementType()
Selects the single type argument of the current element's generic type as the target for the next operations.
|
ContainerElementConstraintMappingContext |
containerElementType(int index,
int... nestedIndexes)
Selects the single type argument of the current element's generic type as the target for the next operations.
|
ContainerElementConstraintMappingContext containerElementType()
ValidationException
- If the given element (property, return value or parameter) is not of a generic type
nor of an array type or is a generic type but has more than one type argument.ContainerElementConstraintMappingContext containerElementType(int index, int... nestedIndexes)
index
- The index of the type argument to configure. Pass 0 when navigating into an array type.nestedIndexes
- the nested index(es) in case the container element to configure is a generic type within
another generic type, e.g. List<Map<String, String>>
, a multi-dimensional array or a combination of
(nested) parameterized and array types.ValidationException
- If the given element (property, return value or parameter) is not of a generic type
nor of an array type or is a generic type but has no type argument with the given index.Copyright © 2021 JBoss by Red Hat. All rights reserved.