Package

com.twitter.finatra

validation

Permalink

package validation

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. validation
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. class Constraint extends Annotation with Annotation with ClassfileAnnotation

    Permalink
  2. abstract class ConstraintValidator[A <: Annotation, T] extends AnyRef

    Permalink

    A ConstraintValidator to validate the given value of type T against a particular annotation of type A.

    A ConstraintValidator to validate the given value of type T against a particular annotation of type A.

    T

    the target type of the value to validate against the annotation object.

  3. trait ErrorCode extends AnyRef

    Permalink

    A descriptor for the type of validation error.

    A descriptor for the type of validation error. May be pattern-matched to customize handling of specific errors.

  4. case class InvalidCaseClassException(clazz: Class[_]) extends ValidationException with Product with Serializable

    Permalink
  5. class MessageResolver extends AnyRef

    Permalink

    To resolve error messages for the type of validation failure.

    To resolve error messages for the type of validation failure. May be pattern-matched to customize handling of specific failures.

    Can be overridden to customize and localize error messages.

  6. class MethodValidation extends Annotation with Annotation with ClassfileAnnotation

    Permalink
  7. class ValidationException extends Exception

    Permalink

    Used to signal validation errors during case class validations.

  8. sealed trait ValidationResult extends AnyRef

    Permalink
  9. class Validator extends AnyRef

    Permalink
  10. class ValidatorModule extends TwitterModule

    Permalink

    A TwitterModule to provide a Validator with with default MessageResolver and default com.twitter.finatra.validation.ConstraintValidators.

    A TwitterModule to provide a Validator with with default MessageResolver and default com.twitter.finatra.validation.ConstraintValidators.

    Extend this module to override defaults of the bound Validator instance.

    Example:

       import com.twitter.finatra.validation.{Validator, ValidatorModule}
       import com.twitter.inject.Injector
    
       object CustomizedValidatorModule extends ValidatorModule {
         override def configureValidator(injector: Injector, builder: Validator.Builder): Validator.Builder =
           builder
             .withCacheSize(512)
             .withMessageResolver(new CustomizedMessageResolver())
    }
  11. type CountryCode = com.twitter.finatra.validation.constraints.CountryCode @scala.annotation.meta.param

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 2020-03-09) Use com.twitter.finatra.validation.constaints.CountryCode

  12. type FutureTime = com.twitter.finatra.validation.constraints.FutureTime @scala.annotation.meta.param

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 2020-03-09) Use com.twitter.finatra.validation.constaints.FutureTime

  13. type Max = com.twitter.finatra.validation.constraints.Max @scala.annotation.meta.param

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 2020-03-09) Use com.twitter.finatra.validation.constaints.Max

  14. type Min = com.twitter.finatra.validation.constraints.Min @scala.annotation.meta.param

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 2020-03-09) Use com.twitter.finatra.validation.constaints.Min

  15. type NotEmpty = com.twitter.finatra.validation.constraints.NotEmpty @scala.annotation.meta.param

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 2020-03-09) Use com.twitter.finatra.validation.constaints.NotEmpty

  16. type OneOf = com.twitter.finatra.validation.constraints.OneOf @scala.annotation.meta.param

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 2020-03-09) Use com.twitter.finatra.validation.constaints.OneOf

  17. type PastTime = com.twitter.finatra.validation.constraints.PastTime @scala.annotation.meta.param

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 2020-03-09) Use com.twitter.finatra.validation.constaints.PastTime

  18. type Pattern = com.twitter.finatra.validation.constraints.Pattern @scala.annotation.meta.param

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 2020-03-09) Use com.twitter.finatra.validation.constaints.Pattern

  19. type Range = com.twitter.finatra.validation.constraints.Range @scala.annotation.meta.param

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 2020-03-09) Use com.twitter.finatra.validation.constaints.Range

  20. type Size = com.twitter.finatra.validation.constraints.Size @scala.annotation.meta.param

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 2020-03-09) Use com.twitter.finatra.validation.constaints.Size

  21. type TimeGranularity = com.twitter.finatra.validation.constraints.TimeGranularity @scala.annotation.meta.param

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 2020-03-09) Use com.twitter.finatra.validation.constaints.TimeGranularity

  22. type UUID = com.twitter.finatra.validation.constraints.UUID @scala.annotation.meta.param

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 2020-03-09) Use com.twitter.finatra.validation.constaints.UUID

Inherited from AnyRef

Inherited from Any

Ungrouped