public class PotentiallyContainerCascadingMetaData extends Object implements CascadingMetaData
ValueExtractorDescriptor
s that might be applied to a potential runtime type.Modifier and Type | Method and Description |
---|---|
CascadingMetaData |
addRuntimeContainerSupport(ValueExtractorManager valueExtractorManager,
Class<?> valueClass)
Add additional cascading metadata when:
the element is marked with
@Valid ,
the runtime type of the element is container based (e.g. |
<T extends CascadingMetaData> |
as(Class<T> clazz) |
Class<?> |
convertGroup(Class<?> originalGroup) |
Set<GroupConversionDescriptor> |
getGroupConversionDescriptors() |
TypeVariable<?> |
getTypeParameter() |
boolean |
isCascading() |
boolean |
isContainer() |
boolean |
isMarkedForCascadingOnAnnotatedObjectOrContainerElements() |
static PotentiallyContainerCascadingMetaData |
of(CascadingMetaDataBuilder cascadingMetaDataBuilder,
Set<ValueExtractorDescriptor> potentialValueExtractorDescriptors,
Object context) |
String |
toString() |
public static PotentiallyContainerCascadingMetaData of(CascadingMetaDataBuilder cascadingMetaDataBuilder, Set<ValueExtractorDescriptor> potentialValueExtractorDescriptors, Object context)
public TypeVariable<?> getTypeParameter()
getTypeParameter
in interface CascadingMetaData
public boolean isCascading()
isCascading
in interface CascadingMetaData
public boolean isMarkedForCascadingOnAnnotatedObjectOrContainerElements()
isMarkedForCascadingOnAnnotatedObjectOrContainerElements
in interface CascadingMetaData
public Class<?> convertGroup(Class<?> originalGroup)
convertGroup
in interface CascadingMetaData
public Set<GroupConversionDescriptor> getGroupConversionDescriptors()
getGroupConversionDescriptors
in interface CascadingMetaData
public boolean isContainer()
isContainer
in interface CascadingMetaData
public CascadingMetaData addRuntimeContainerSupport(ValueExtractorManager valueExtractorManager, Class<?> valueClass)
CascadingMetaData
@Valid
,ValueExtractor
s present for such container,
An example of this particular situation is: @Valid private Object element = new ArrayList<String>()
.
Note that if the declared type is container based, the cascading information is directly included at bootstrap time.
addRuntimeContainerSupport
in interface CascadingMetaData
public <T extends CascadingMetaData> T as(Class<T> clazz)
as
in interface CascadingMetaData
Copyright © 2020 JBoss by Red Hat. All rights reserved.