trait ThriftConstraintValidator[T, A >: Int with Long with Double with Short with Byte with String] extends AnyRef
The trait to define a ThriftConstraintValidator, this is used in ThriftValidatorto validate annotations on Thrift IDL.
- T
The type of the field to be validated.
- A
The type of the annotation value to be validated against.
- Note
A must be a super type of Int, Long, Double, Short, Byte, or String.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ThriftConstraintValidator
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Abstract Value Members
-
abstract
def
annotationClass: Class[A]
- returns
the annotation class if annotation value is required, e.g. validation.max = "1". Otherwise return None.
-
abstract
def
fieldClass: Class[T]
- returns
the class of the field where the annotation applies to.
-
abstract
def
isValid(obj: T, annotation: A): Boolean
The validation on value
objagainst constraintannotationpassed. -
abstract
def
violationMessage(obj: T, annotation: A): String
Define a violation message if the given
objfailed validation
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()