Class ValidBeanIdentity.ValidBeanIdentityValidator

java.lang.Object
dev.orne.beans.ValidBeanIdentity.ValidBeanIdentityValidator
All Implemented Interfaces:
javax.validation.ConstraintValidator<ValidBeanIdentity,Object>
Enclosing class:
ValidBeanIdentity

@API(status=INTERNAL, since="0.1") public static class ValidBeanIdentity.ValidBeanIdentityValidator extends Object implements javax.validation.ConstraintValidator<ValidBeanIdentity,Object>
Constraint validator for ValidBeanIdentity.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    isValid(@NotNull Object value)
    Returns true if specified bean is valid reference to it's bean type.
    boolean
    isValid(Object value, javax.validation.ConstraintValidatorContext context)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface javax.validation.ConstraintValidator

    initialize
  • Constructor Details

    • ValidBeanIdentityValidator

      public ValidBeanIdentityValidator()
      Creates a new instance.
  • Method Details

    • isValid

      public boolean isValid(Object value, javax.validation.ConstraintValidatorContext context)
      Specified by:
      isValid in interface javax.validation.ConstraintValidator<ValidBeanIdentity,Object>
    • isValid

      public static boolean isValid(@NotNull @NotNull Object value)
      Returns true if specified bean is valid reference to it's bean type.
      Parameters:
      value - The bean to validate
      Returns:
      If the bean is a valid bean reference