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. case class Path(names: Seq[String]) extends Product with Serializable

    Permalink

    Represents the navigation path from an object to another in an object graph.

  8. class Valid extends Annotation with Annotation with ClassfileAnnotation

    Permalink
  9. class ValidationException extends Exception with NoStackTrace

    Permalink

    Used to signal validation errors during case class validations.

  10. sealed trait ValidationResult extends AnyRef

    Permalink
  11. class Validator extends AnyRef

    Permalink
  12. 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())
    }
  13. 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.constraints.CountryCode

  14. 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.constraints.FutureTime

  15. 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.constraints.Max

  16. 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.constraints.Min

  17. 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.constraints.NotEmpty

  18. 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.constraints.OneOf

  19. 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.constraints.PastTime

  20. 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.constraints.Pattern

  21. 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.constraints.Range

  22. 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.constraints.Size

  23. 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.constraints.TimeGranularity

  24. 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.constraints.UUID

Value Members

  1. object CommonMethodValidations

    Permalink
  2. object ErrorCode

    Permalink
  3. object Path extends Serializable

    Permalink
  4. object ValidationResult

    Permalink
  5. object Validator

    Permalink
  6. object ValidatorModule extends ValidatorModule

    Permalink
  7. package constraints

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped