Index

A B C E F G I L M N P S U V 
All Classes and Interfaces|All Packages|Serialized Form

A

AbstractValidationStrategy - Class in io.github.arasdenizhan.core.strategy
Core strategy abstract class for creating a validation strategy.
AbstractValidationStrategy(Set<String>) - Constructor for class io.github.arasdenizhan.core.strategy.AbstractValidationStrategy
 
AccessibleFieldHandler - Class in io.github.arasdenizhan.core.handler
Utility class to efficiently retrieve the value of a field via reflection.
AnnotationName - Enum in io.github.arasdenizhan.annotations.constants
 

B

BasicExample - Class in io.github.arasdenizhan.example
 
BasicExample() - Constructor for class io.github.arasdenizhan.example.BasicExample
 

C

checkUsageIsValid(Field, List<ValidationError>) - Method in class io.github.arasdenizhan.core.strategy.AbstractValidationStrategy
 
create(AnnotationName) - Method in class io.github.arasdenizhan.core.factory.StrategyFactory
Returns the ValidationStrategy associated with the given annotation name.

E

EMAIL - Enum constant in enum io.github.arasdenizhan.annotations.constants.AnnotationName
 
Email - Annotation Type in io.github.arasdenizhan.annotations
Annotation used to validate whether a string represents a valid email address.
EmailStrategy - Class in io.github.arasdenizhan.core.strategy.impl
 
EmailStrategy() - Constructor for class io.github.arasdenizhan.core.strategy.impl.EmailStrategy
 

F

FieldCacheHandler - Class in io.github.arasdenizhan.core.handler
Utility class to efficiently store given class fields in a cache.
FieldCacheHandler() - Constructor for class io.github.arasdenizhan.core.handler.FieldCacheHandler
 
fromString(String) - Static method in enum io.github.arasdenizhan.annotations.constants.AnnotationName
 
Future - Annotation Type in io.github.arasdenizhan.annotations
Annotation used to validate a LocalDate input is after from supplied date.
FUTURE - Enum constant in enum io.github.arasdenizhan.annotations.constants.AnnotationName
 
FutureStrategy - Class in io.github.arasdenizhan.core.strategy.impl
 
FutureStrategy() - Constructor for class io.github.arasdenizhan.core.strategy.impl.FutureStrategy
 

G

getErrorMessage() - Method in class io.github.arasdenizhan.core.exception.ValidationError
Method for getting error message with field information and given message text.
getFields(Class<?>) - Method in class io.github.arasdenizhan.core.handler.FieldCacheHandler
 
getFieldValue(Field, Object) - Static method in class io.github.arasdenizhan.core.handler.AccessibleFieldHandler
Securely retrieves the value of a field using reflection, enabling access only if necessary.
getStrategy() - Method in enum io.github.arasdenizhan.annotations.constants.AnnotationName
 
getValue() - Method in enum io.github.arasdenizhan.annotations.constants.AnnotationName
 

I

io.github.arasdenizhan.annotations - package io.github.arasdenizhan.annotations
 
io.github.arasdenizhan.annotations.constants - package io.github.arasdenizhan.annotations.constants
 
io.github.arasdenizhan.core.exception - package io.github.arasdenizhan.core.exception
 
io.github.arasdenizhan.core.factory - package io.github.arasdenizhan.core.factory
 
io.github.arasdenizhan.core.handler - package io.github.arasdenizhan.core.handler
 
io.github.arasdenizhan.core.strategy - package io.github.arasdenizhan.core.strategy
 
io.github.arasdenizhan.core.strategy.impl - package io.github.arasdenizhan.core.strategy.impl
 
io.github.arasdenizhan.core.validator - package io.github.arasdenizhan.core.validator
 
io.github.arasdenizhan.core.validator.impl - package io.github.arasdenizhan.core.validator.impl
 
io.github.arasdenizhan.example - package io.github.arasdenizhan.example
 
io.github.arasdenizhan.example.dto - package io.github.arasdenizhan.example.dto
 

L

Length - Annotation Type in io.github.arasdenizhan.annotations
Annotation used to validate the length of a string with specified minimum and maximum values.
LENGTH - Enum constant in enum io.github.arasdenizhan.annotations.constants.AnnotationName
 
LengthStrategy - Class in io.github.arasdenizhan.core.strategy.impl
 
LengthStrategy() - Constructor for class io.github.arasdenizhan.core.strategy.impl.LengthStrategy
 

M

main(String[]) - Static method in class io.github.arasdenizhan.example.BasicExample
 
max() - Element in annotation type io.github.arasdenizhan.annotations.Length
 
Max - Annotation Type in io.github.arasdenizhan.annotations
Annotation used to validate an integer input to be less than the max value
MAX - Enum constant in enum io.github.arasdenizhan.annotations.constants.AnnotationName
 
MaxStrategy - Class in io.github.arasdenizhan.core.strategy.impl
 
MaxStrategy() - Constructor for class io.github.arasdenizhan.core.strategy.impl.MaxStrategy
 
message() - Element in annotation type io.github.arasdenizhan.annotations.Email
 
message() - Element in annotation type io.github.arasdenizhan.annotations.Future
 
message() - Element in annotation type io.github.arasdenizhan.annotations.Length
 
message() - Element in annotation type io.github.arasdenizhan.annotations.Max
 
message() - Element in annotation type io.github.arasdenizhan.annotations.Min
 
message() - Element in annotation type io.github.arasdenizhan.annotations.NotBlank
 
message() - Element in annotation type io.github.arasdenizhan.annotations.NotNull
 
message() - Element in annotation type io.github.arasdenizhan.annotations.Past
 
message() - Element in annotation type io.github.arasdenizhan.annotations.Pattern
 
MIN - Enum constant in enum io.github.arasdenizhan.annotations.constants.AnnotationName
 
min() - Element in annotation type io.github.arasdenizhan.annotations.Length
 
Min - Annotation Type in io.github.arasdenizhan.annotations
Annotation used to validate an integer input to be greeter than the min value
MinStrategy - Class in io.github.arasdenizhan.core.strategy.impl
 
MinStrategy() - Constructor for class io.github.arasdenizhan.core.strategy.impl.MinStrategy
 

N

NOT_BLANK - Enum constant in enum io.github.arasdenizhan.annotations.constants.AnnotationName
 
NOT_NULL - Enum constant in enum io.github.arasdenizhan.annotations.constants.AnnotationName
 
NotBlank - Annotation Type in io.github.arasdenizhan.annotations
Annotation used to validate a string to be not null and contain at least 1 char.
NotBlankStrategy - Class in io.github.arasdenizhan.core.strategy.impl
 
NotBlankStrategy() - Constructor for class io.github.arasdenizhan.core.strategy.impl.NotBlankStrategy
 
NotNull - Annotation Type in io.github.arasdenizhan.annotations
Annotation used to validate a string for nullability.
NotNullStrategy - Class in io.github.arasdenizhan.core.strategy.impl
 
NotNullStrategy() - Constructor for class io.github.arasdenizhan.core.strategy.impl.NotNullStrategy
 

P

Past - Annotation Type in io.github.arasdenizhan.annotations
Annotation used to validate a LocalDate input is before from supplied date.
PAST - Enum constant in enum io.github.arasdenizhan.annotations.constants.AnnotationName
 
PastStrategy - Class in io.github.arasdenizhan.core.strategy.impl
 
PastStrategy() - Constructor for class io.github.arasdenizhan.core.strategy.impl.PastStrategy
 
Pattern - Annotation Type in io.github.arasdenizhan.annotations
Annotation used to validate a string for given regEx pattern.
PATTERN - Enum constant in enum io.github.arasdenizhan.annotations.constants.AnnotationName
 
PatternStrategy - Class in io.github.arasdenizhan.core.strategy.impl
 
PatternStrategy() - Constructor for class io.github.arasdenizhan.core.strategy.impl.PatternStrategy
 

S

setAge(int) - Method in class io.github.arasdenizhan.example.dto.UserDto
 
setCountryCode(int) - Method in class io.github.arasdenizhan.example.dto.UserDto
 
setEmail(String) - Method in class io.github.arasdenizhan.example.dto.UserDto
 
setFutureDate(LocalDate) - Method in class io.github.arasdenizhan.example.dto.UserDto
 
setPastDate(LocalDate) - Method in class io.github.arasdenizhan.example.dto.UserDto
 
SlimValidator - Class in io.github.arasdenizhan.core.validator.impl
Main validator class to check given object field's for slim-validator annotations
SlimValidator() - Constructor for class io.github.arasdenizhan.core.validator.impl.SlimValidator
 
StrategyFactory - Class in io.github.arasdenizhan.core.factory
Factory class responsible for providing appropriate ValidationStrategy instances based on the given annotation type.
StrategyFactory() - Constructor for class io.github.arasdenizhan.core.factory.StrategyFactory
 
supports(AnnotationName) - Method in class io.github.arasdenizhan.core.factory.StrategyFactory
Checks whether a validation strategy is available for the given annotation.

U

UserDto - Class in io.github.arasdenizhan.example.dto
 
UserDto() - Constructor for class io.github.arasdenizhan.example.dto.UserDto
 

V

validate(Object) - Method in class io.github.arasdenizhan.core.validator.impl.SlimValidator
 
validate(Object) - Method in interface io.github.arasdenizhan.core.validator.Validator
 
validate(Field, Object, List<ValidationError>) - Method in class io.github.arasdenizhan.core.strategy.AbstractValidationStrategy
 
validate(Field, Object, List<ValidationError>) - Method in class io.github.arasdenizhan.core.strategy.impl.EmailStrategy
 
validate(Field, Object, List<ValidationError>) - Method in class io.github.arasdenizhan.core.strategy.impl.FutureStrategy
 
validate(Field, Object, List<ValidationError>) - Method in class io.github.arasdenizhan.core.strategy.impl.LengthStrategy
 
validate(Field, Object, List<ValidationError>) - Method in class io.github.arasdenizhan.core.strategy.impl.MaxStrategy
 
validate(Field, Object, List<ValidationError>) - Method in class io.github.arasdenizhan.core.strategy.impl.MinStrategy
 
validate(Field, Object, List<ValidationError>) - Method in class io.github.arasdenizhan.core.strategy.impl.NotBlankStrategy
 
validate(Field, Object, List<ValidationError>) - Method in class io.github.arasdenizhan.core.strategy.impl.NotNullStrategy
 
validate(Field, Object, List<ValidationError>) - Method in class io.github.arasdenizhan.core.strategy.impl.PastStrategy
 
validate(Field, Object, List<ValidationError>) - Method in class io.github.arasdenizhan.core.strategy.impl.PatternStrategy
 
validate(Field, Object, List<ValidationError>) - Method in interface io.github.arasdenizhan.core.strategy.ValidationStrategy
 
ValidationError - Class in io.github.arasdenizhan.core.exception
ValidationError is core error object designed for holding field and message for each validated field.
ValidationError(String, String) - Constructor for class io.github.arasdenizhan.core.exception.ValidationError
 
ValidationException - Exception Class in io.github.arasdenizhan.core.exception
Exception thrown by the validator when one or more fields fail validation.
ValidationException(List<ValidationError>) - Constructor for exception class io.github.arasdenizhan.core.exception.ValidationException
 
ValidationStrategy - Interface in io.github.arasdenizhan.core.strategy
Core strategy interface to for creating a validation strategy.
Validator - Interface in io.github.arasdenizhan.core.validator
 
value() - Element in annotation type io.github.arasdenizhan.annotations.Future
 
value() - Element in annotation type io.github.arasdenizhan.annotations.Max
 
value() - Element in annotation type io.github.arasdenizhan.annotations.Min
 
value() - Element in annotation type io.github.arasdenizhan.annotations.Past
 
value() - Element in annotation type io.github.arasdenizhan.annotations.Pattern
 
valueOf(String) - Static method in enum io.github.arasdenizhan.annotations.constants.AnnotationName
Returns the enum constant of this type with the specified name.
values() - Static method in enum io.github.arasdenizhan.annotations.constants.AnnotationName
Returns an array containing the constants of this enum type, in the order they are declared.
A B C E F G I L M N P S U V 
All Classes and Interfaces|All Packages|Serialized Form