Top Description Methods
javax.validation.metadata

public Interface ContainerDescriptor

Known Direct Subinterfaces
javax.validation.metadata.ContainerElementTypeDescriptor, javax.validation.metadata.ParameterDescriptor, javax.validation.metadata.PropertyDescriptor, javax.validation.metadata.ReturnValueDescriptor
Imports
java.util.Set, javax.validation.Valid

Represents an element that might be a container, thus allowing container element constraints.
Author
Guillaume Smet
Since
2.0

Method Summary

Modifier and TypeMethod and Description
public Set<ContainerElementTypeDescriptor>

Returns:

the set of descriptors representing the container element types that are constrained or are marked with Valid. An empty set will be returned if this element is not of a container type or is of a container type but there are no container element types hosting constraints or marked with Valid.
getConstrainedContainerElementTypes
()

If this element is of a container type, e.g. List or Map, a set of descriptors of those container element types is returned, which are constrained or marked with Valid.

Method Detail

getConstrainedContainerElementTypesback to summary
public Set<ContainerElementTypeDescriptor> getConstrainedContainerElementTypes()

If this element is of a container type, e.g. List or Map, a set of descriptors of those container element types is returned, which are constrained or marked with Valid. A container element type is constrained, if it hosts at least one constraint.

In the context of properties and method return values, container element types of super-types are considered.

Returns:Set<ContainerElementTypeDescriptor>

the set of descriptors representing the container element types that are constrained or are marked with Valid. An empty set will be returned if this element is not of a container type or is of a container type but there are no container element types hosting constraints or marked with Valid.