public class ConstraintDefinitionContribution<A extends java.lang.annotation.Annotation>
extends java.lang.Object
Constructor and Description |
---|
ConstraintDefinitionContribution(java.lang.Class<A> constraintType,
java.util.List<ConstraintValidatorDescriptor<A>> validatorDescriptors,
boolean includeExisting) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.Class<A> |
getConstraintType()
Returns the constraint annotation type for which this instance provides constraint validator instances.
|
java.util.List<ConstraintValidatorDescriptor<A>> |
getValidatorDescriptors()
Returns a list of constraint validator descriptors for the constraint type of this instance.
|
int |
hashCode() |
boolean |
includeExisting()
Whether or not the existing constraint validators should be kept or not.
|
java.lang.String |
toString() |
public ConstraintDefinitionContribution(java.lang.Class<A> constraintType, java.util.List<ConstraintValidatorDescriptor<A>> validatorDescriptors, boolean includeExisting)
public java.lang.Class<A> getConstraintType()
public java.util.List<ConstraintValidatorDescriptor<A>> getValidatorDescriptors()
public boolean includeExisting()
true
if the existing constraint validators for the constraint type wrapped by this
instance should be kept, false
otherwise.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2007-2022 Red Hat, Inc. All Rights Reserved