A B C D E F G H I L O P R S T U V W 

A

addChild(TreeNode) - Method in class org.unitils.objectvalidation.utils.TreeNode
 
addChild(Class<?>) - Method in class org.unitils.objectvalidation.utils.TreeNode
 
addGenerators(Generator...) - Method in class org.unitils.objectvalidation.objectcreator.generator.CompositeGenerator
 
afterCreateTestObject(Object) - Method in class org.unitils.objectvalidation.ValidationModuleTestListener
 
afterInit() - Method in class org.unitils.objectvalidation.ValidationModule
 
andMessage(ValidationMessage) - Method in class org.unitils.objectvalidation.ValidationResult.ValidationResultBuilder
 
assertSetterIsComplient(Field, Object, Object) - Method in class org.unitils.objectvalidation.rules.GetterAndSetterComplientRule
 

B

build() - Method in class org.unitils.objectvalidation.ValidationResult.ValidationResultBuilder
 
BuilderGenerator - Class in org.unitils.objectvalidation.objectcreator.generator
 
BuilderGenerator() - Constructor for class org.unitils.objectvalidation.objectcreator.generator.BuilderGenerator
 
buildValidationResultForClass(Class<?>) - Static method in class org.unitils.objectvalidation.ValidationResult
 

C

checkArgument(boolean, Object) - Static method in class org.unitils.objectvalidation.utils.Utils
 
checkConsistency(Object) - Method in class org.unitils.objectvalidation.rules.HashCodeComplientRule
Checks that the hashCode is consistent with the same object.
checkNotNull(T, Object) - Static method in class org.unitils.objectvalidation.utils.Utils
 
checkTwoEqualsObjectsProduceSameNumber(Object, Object) - Method in class org.unitils.objectvalidation.rules.HashCodeComplientRule
Objects that are equal using the equals method should return the same integer.
ClassIsFinalRule - Class in org.unitils.objectvalidation.rules
Rule to check that the class is final.
ClassIsFinalRule() - Constructor for class org.unitils.objectvalidation.rules.ClassIsFinalRule
 
ClassMustBeSerializableRule - Class in org.unitils.objectvalidation.rules
Rule to check that the class passed in parameter must implement Serializable.
ClassMustBeSerializableRule() - Constructor for class org.unitils.objectvalidation.rules.ClassMustBeSerializableRule
 
classToValidate(Class<?>) - Method in interface org.unitils.objectvalidation.ObjectValidator.AddClassToValidate
 
classToValidate(Class<?>) - Method in class org.unitils.objectvalidation.ObjectValidator.BuildValidator
 
classToValidate(Class<?>) - Method in class org.unitils.objectvalidation.ObjectValidator
 
CollectionGenerator - Class in org.unitils.objectvalidation.objectcreator.generator
This generator will take care of interfaces and the classes that have no custom generator.
CollectionGenerator() - Constructor for class org.unitils.objectvalidation.objectcreator.generator.CollectionGenerator
 
CompositeGenerator - Class in org.unitils.objectvalidation.objectcreator.generator
 
CompositeGenerator(List<Generator>) - Constructor for class org.unitils.objectvalidation.objectcreator.generator.CompositeGenerator
 
CompositeGenerator() - Constructor for class org.unitils.objectvalidation.objectcreator.generator.CompositeGenerator
 
createDefaultCloner() - Static method in class org.unitils.objectvalidation.cloner.ObjectClonerFactory
 
createDefaultObjectCreator() - Static method in class org.unitils.objectvalidation.objectcreator.ObjectCreatorFactory
 
createObjectCreator(Generator...) - Static method in class org.unitils.objectvalidation.objectcreator.ObjectCreatorFactory
 
createRandomObject(Type) - Method in interface org.unitils.objectvalidation.ObjectCreator
 
createTreeNodeFor(Type) - Static method in class org.unitils.objectvalidation.utils.TreeNodeCreator
 

D

deepClone(T) - Method in class org.unitils.objectvalidation.cloner.ObjectClonerImpl
 
deepClone(T) - Method in interface org.unitils.objectvalidation.ObjectCloner
 
DefaultGenerator - Class in org.unitils.objectvalidation.objectcreator.generator
The DefaultGenerator is a composite Generator with a pre defiend set of generators.
DefaultGenerator() - Constructor for class org.unitils.objectvalidation.objectcreator.generator.DefaultGenerator
 

E

EnumGenerator - Class in org.unitils.objectvalidation.objectcreator.generator
Generates an random enum from the right class.
EnumGenerator() - Constructor for class org.unitils.objectvalidation.objectcreator.generator.EnumGenerator
 
EqualsComplientRule - Class in org.unitils.objectvalidation.rules
Verifies the seven equality rules defined by Sun : 1.
EqualsComplientRule(ObjectCreator, ObjectCloner) - Constructor for class org.unitils.objectvalidation.rules.EqualsComplientRule
 
EqualsHashCodeValidator - Class in org.unitils.objectvalidation
Validate the equals and hashCode method.
EqualsHashCodeValidator(ObjectCreator, ObjectCloner) - Constructor for class org.unitils.objectvalidation.EqualsHashCodeValidator
 

F

findOneAndOnlyFieldForAnnotation(Class<? extends Object>, Class<? extends Annotation>, Class<T>) - Static method in class org.unitils.objectvalidation.utils.Utils
Will look in the test class to find a field of type 'fieldType' annotated with 'annotation'

G

generateJavaDefaultClass(Class<?>) - Method in class org.unitils.objectvalidation.objectcreator.generator.PrimitiveGenerator
 
generateObject(Class<?>, List<Object>, List<Class<?>>, List<TreeNode>) - Method in class org.unitils.objectvalidation.objectcreator.generator.BuilderGenerator
 
generateObject(Class<?>, List<Object>, List<Class<?>>, List<TreeNode>) - Method in class org.unitils.objectvalidation.objectcreator.generator.CollectionGenerator
 
generateObject(Class<?>, List<Object>, List<Class<?>>, List<TreeNode>) - Method in class org.unitils.objectvalidation.objectcreator.generator.CompositeGenerator
 
generateObject(Class<?>, List<Object>, List<Class<?>>, List<TreeNode>) - Method in class org.unitils.objectvalidation.objectcreator.generator.EnumGenerator
 
generateObject(Class<?>, List<Object>, List<Class<?>>, List<TreeNode>) - Method in interface org.unitils.objectvalidation.objectcreator.generator.Generator
 
generateObject(Class<?>, List<Object>, List<Class<?>>, List<TreeNode>) - Method in class org.unitils.objectvalidation.objectcreator.generator.LastResortGenerator
 
generateObject(Class<?>, List<Object>, List<Class<?>>, List<TreeNode>) - Method in class org.unitils.objectvalidation.objectcreator.generator.PrimitiveGenerator
 
Generator - Interface in org.unitils.objectvalidation.objectcreator.generator
A generator represents an object factory for the purpose of testing it against rules.
getChilds() - Method in class org.unitils.objectvalidation.utils.TreeNode
 
getEqualsHashCodeValidator() - Method in interface org.unitils.objectvalidation.ObjectValidationRulesCollection
 
getEqualsHashCodeValidator() - Method in class org.unitils.objectvalidation.rulescollection.SunBeanRules
 
getEqualsHashCodeValidator() - Method in class org.unitils.objectvalidation.rulescollection.UtilityClassRules
 
getGenericSubtype() - Method in class org.unitils.objectvalidation.utils.TreeNode
 
getParent() - Method in class org.unitils.objectvalidation.utils.TreeNode
 
getRules() - Method in interface org.unitils.objectvalidation.ObjectValidationRulesCollection
 
getRules() - Method in class org.unitils.objectvalidation.rulescollection.SunBeanRules
 
getRules() - Method in class org.unitils.objectvalidation.rulescollection.UtilityClassRules
 
GetterAndSetterComplientRule - Class in org.unitils.objectvalidation.rules
Rule to validate that every field is accessible with a getter and a setter.
GetterAndSetterComplientRule(ObjectCreator, ObjectCloner) - Constructor for class org.unitils.objectvalidation.rules.GetterAndSetterComplientRule
 
getTestListener() - Method in class org.unitils.objectvalidation.ValidationModule
 
getValue() - Method in class org.unitils.objectvalidation.utils.TreeNode
 

H

HashCodeComplientRule - Class in org.unitils.objectvalidation.rules
Assert the compliancy of an object hashCode() method.
HashCodeComplientRule(ObjectCreator, ObjectCloner) - Constructor for class org.unitils.objectvalidation.rules.HashCodeComplientRule
 

I

ignoringFields(String...) - Method in class org.unitils.objectvalidation.ObjectValidator.BuildValidator
 
ignoringFields(String...) - Method in interface org.unitils.objectvalidation.ObjectValidator.ChooseFieldsInEquals
 
init(Properties) - Method in class org.unitils.objectvalidation.ValidationModule
 
instantiate(Class<?>) - Static method in class org.unitils.objectvalidation.utils.Utils
 

L

LastResortGenerator - Class in org.unitils.objectvalidation.objectcreator.generator
This generator will take care of interfaces and the classes that have no custom generator.
LastResortGenerator() - Constructor for class org.unitils.objectvalidation.objectcreator.generator.LastResortGenerator
 

O

ObjectCloner - Interface in org.unitils.objectvalidation
The responsability of the ObjectCloner is to make a perfect copy of an object.
ObjectClonerFactory - Class in org.unitils.objectvalidation.cloner
Factory to create ObjectCloner used to clone the objects used in the Rule.
ObjectClonerImpl - Class in org.unitils.objectvalidation.cloner
Deeply clones an object.
ObjectClonerImpl() - Constructor for class org.unitils.objectvalidation.cloner.ObjectClonerImpl
 
ObjectCreator - Interface in org.unitils.objectvalidation
The responsability of ObjectCreator is to create object of the type provided.
ObjectCreatorFactory - Class in org.unitils.objectvalidation.objectcreator
Creates ObjectCreator used to create objects for the Rule.
ObjectValidationRules - Annotation Type in org.unitils.objectvalidation
Annotation to be used in the context of the validation module.
ObjectValidationRulesCollection - Interface in org.unitils.objectvalidation
The interface for a collection of rules.
ObjectValidator - Class in org.unitils.objectvalidation
Object constructed by ValidationModule with the rules in the unitils properties file or the rules defined in the ObjectValidationRules annotation.
ObjectValidator(List<Rule>, List<EqualsHashCodeValidator>) - Constructor for class org.unitils.objectvalidation.ObjectValidator
 
ObjectValidator.AddClassToValidate - Interface in org.unitils.objectvalidation
 
ObjectValidator.BuildValidator - Class in org.unitils.objectvalidation
 
ObjectValidator.ChooseFieldsInEquals - Interface in org.unitils.objectvalidation
 
ObjectValidator.ValidateEqualsAndHashCode - Interface in org.unitils.objectvalidation
 
OnlyStaticMethodsRule - Class in org.unitils.objectvalidation.rules
Rule to check that there is only static methods declared in the class.
OnlyStaticMethodsRule() - Constructor for class org.unitils.objectvalidation.rules.OnlyStaticMethodsRule
 
org.unitils.objectvalidation - package org.unitils.objectvalidation
 
org.unitils.objectvalidation.cloner - package org.unitils.objectvalidation.cloner
 
org.unitils.objectvalidation.objectcreator - package org.unitils.objectvalidation.objectcreator
 
org.unitils.objectvalidation.objectcreator.generator - package org.unitils.objectvalidation.objectcreator.generator
 
org.unitils.objectvalidation.rules - package org.unitils.objectvalidation.rules
 
org.unitils.objectvalidation.rulescollection - package org.unitils.objectvalidation.rulescollection
 
org.unitils.objectvalidation.utils - package org.unitils.objectvalidation.utils
 

P

PrimitiveGenerator - Class in org.unitils.objectvalidation.objectcreator.generator
The primitive generator is capable of generating java primitive types and there counterparts.
PrimitiveGenerator() - Constructor for class org.unitils.objectvalidation.objectcreator.generator.PrimitiveGenerator
 
PrivateConstructorRule - Class in org.unitils.objectvalidation.rules
Rule to check that no public constructors are available on the tested class.
PrivateConstructorRule() - Constructor for class org.unitils.objectvalidation.rules.PrivateConstructorRule
 
PublicEmptyConstructorRule - Class in org.unitils.objectvalidation.rules
Rules to verify that the provided class has a default empty constructor.
PublicEmptyConstructorRule() - Constructor for class org.unitils.objectvalidation.rules.PublicEmptyConstructorRule
 

R

Rule - Interface in org.unitils.objectvalidation
Rules are to verify that a specific object is in phase with the way of thinking of a project.

S

setGenericSubtype(List<TreeNode>) - Method in class org.unitils.objectvalidation.utils.TreeNode
 
setParent(TreeNode) - Method in class org.unitils.objectvalidation.utils.TreeNode
 
SunBeanRules - Class in org.unitils.objectvalidation.rulescollection
A set of default rules for the class validation.
SunBeanRules() - Constructor for class org.unitils.objectvalidation.rulescollection.SunBeanRules
 

T

toEqualsHashCodeValidator(Class<?>) - Static method in class org.unitils.objectvalidation.utils.Utils
 
toRulesCollection(String) - Static method in class org.unitils.objectvalidation.utils.Utils
 
toRulesCollection(Class<?>) - Static method in class org.unitils.objectvalidation.utils.Utils
 
toString() - Method in class org.unitils.objectvalidation.utils.TreeNode
 
toString(TreeNode, StringBuilder, String) - Method in class org.unitils.objectvalidation.utils.TreeNode
 
toString() - Method in class org.unitils.objectvalidation.ValidationMessage
 
toString() - Method in class org.unitils.objectvalidation.ValidationResult
 
ToStringHasToBeOverridenRule - Class in org.unitils.objectvalidation.rules
Rule to check that the toString method is well overriden in the tested class.
ToStringHasToBeOverridenRule() - Constructor for class org.unitils.objectvalidation.rules.ToStringHasToBeOverridenRule
 
ToStringMustContainsEveryFieldRule - Class in org.unitils.objectvalidation.rules
Rule to check that the toString method returns a string with every field named in it.
ToStringMustContainsEveryFieldRule(ObjectCreator) - Constructor for class org.unitils.objectvalidation.rules.ToStringMustContainsEveryFieldRule
 
TreeNode - Class in org.unitils.objectvalidation.utils
Represents the hierarchy of a specific class, with his parent node and his child nodes.
TreeNode(Class<?>) - Constructor for class org.unitils.objectvalidation.utils.TreeNode
 
TreeNodeCreator - Class in org.unitils.objectvalidation.utils
Utility to visit a class hierarchy and return its tree node of classes.

U

UtilityClassRules - Class in org.unitils.objectvalidation.rulescollection
Collection of rules for an utility class.
UtilityClassRules() - Constructor for class org.unitils.objectvalidation.rulescollection.UtilityClassRules
 
Utils - Class in org.unitils.objectvalidation.utils
Utility methods for the validation module.

V

validate() - Method in interface org.unitils.objectvalidation.ObjectValidator.AddClassToValidate
 
validate() - Method in class org.unitils.objectvalidation.ObjectValidator.BuildValidator
 
validate(Class<?>) - Method in interface org.unitils.objectvalidation.Rule
Will run the validations on the java class passed in parameter.
validate(Class<?>) - Method in class org.unitils.objectvalidation.rules.ClassIsFinalRule
 
validate(Class<?>) - Method in class org.unitils.objectvalidation.rules.ClassMustBeSerializableRule
 
validate(Class<?>) - Method in class org.unitils.objectvalidation.rules.EqualsComplientRule
 
validate(Class<?>) - Method in class org.unitils.objectvalidation.rules.GetterAndSetterComplientRule
 
validate(Class<?>) - Method in class org.unitils.objectvalidation.rules.HashCodeComplientRule
 
validate(Class<?>) - Method in class org.unitils.objectvalidation.rules.OnlyStaticMethodsRule
 
validate(Class<?>) - Method in class org.unitils.objectvalidation.rules.PrivateConstructorRule
 
validate(Class<?>) - Method in class org.unitils.objectvalidation.rules.PublicEmptyConstructorRule
 
validate(Class<?>) - Method in class org.unitils.objectvalidation.rules.ToStringHasToBeOverridenRule
 
validate(Class<?>) - Method in class org.unitils.objectvalidation.rules.ToStringMustContainsEveryFieldRule
 
validatingEqualsAndHashCode() - Method in class org.unitils.objectvalidation.ObjectValidator.BuildValidator
 
validatingEqualsAndHashCode() - Method in interface org.unitils.objectvalidation.ObjectValidator.ValidateEqualsAndHashCode
 
ValidationMessage - Class in org.unitils.objectvalidation
A description of error that happened on a class when validated.
ValidationModule - Class in org.unitils.objectvalidation
Module to validate class against rules, it could be one of the rules defined in the org.unitils.objectvalidation.rules package but could be also user implemented rules for other purpose.
ValidationModule() - Constructor for class org.unitils.objectvalidation.ValidationModule
 
ValidationModuleTestListener - Class in org.unitils.objectvalidation
Contains the logic to load the validation logic from the test and run it.
ValidationModuleTestListener(ObjectValidationRulesCollection) - Constructor for class org.unitils.objectvalidation.ValidationModuleTestListener
 
ValidationResult - Class in org.unitils.objectvalidation
Object collecting the result of every validation that happened on a specific class.
ValidationResult.ValidationResultBuilder - Class in org.unitils.objectvalidation
 
ValidationResult.ValidationResultBuilder(Class<?>) - Constructor for class org.unitils.objectvalidation.ValidationResult.ValidationResultBuilder
 

W

withAllFields() - Method in class org.unitils.objectvalidation.ObjectValidator.BuildValidator
 
withAllFields() - Method in interface org.unitils.objectvalidation.ObjectValidator.ChooseFieldsInEquals
 
withFieldNames(String...) - Method in class org.unitils.objectvalidation.ObjectValidator.BuildValidator
 
withFieldNames(String...) - Method in interface org.unitils.objectvalidation.ObjectValidator.ChooseFieldsInEquals
 
withoutValidatingEqualsAndHashCode() - Method in class org.unitils.objectvalidation.ObjectValidator.BuildValidator
 
withoutValidatingEqualsAndHashCode() - Method in interface org.unitils.objectvalidation.ObjectValidator.ValidateEqualsAndHashCode
 
A B C D E F G H I L O P R S T U V W 

Copyright © 2013. All Rights Reserved.