class Validator extends AnyRef
This class provides a methods to check validation conditions and store validation error messages.
- Alphabetic
- By Inheritance
- Validator
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Validator()
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
checkArgument(condition: Boolean, errorMessage: String): Validator
Checks the given boolean condition, when condition is not met (evaluates to
false) the provided error message is recorded inValidatorstate.Checks the given boolean condition, when condition is not met (evaluates to
false) the provided error message is recorded inValidatorstate.- condition
The condition to check
- errorMessage
The message that should be recorded as a validation error message for this condition.
-
def
checkNotNull(reference: Any, errorMessage: String): Validator
Ensures that the given object reference is not null.
Ensures that the given object reference is not null. Upon violation, the provided errorMessage is recorded in
Validatorstate.- reference
The object reference.
- errorMessage
The message that should be recorded as a validation error message for this condition.
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
containsMessages(): Boolean
- returns
true if any validation message was recorded, otherwise returns false.
-
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
getValidationMessages(): Set[String]
- returns
An unmodifiable set of validation messages recorded by this
Validatorinstance.
-
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()