incubator-bval-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r928387 [1/15] - in /incubator/bval/trunk: ./ agimatec-jsr303/ agimatec-validation/ bval-core/ bval-core/.externalToolBuilders/ bval-core/.settings/ bval-core/src/ bval-core/src/main/ bval-core/src/main/java/ bval-core/src/main/java/org/ bv...
Date Sun, 28 Mar 2010 12:28:32 GMT
Author: simonetripodi
Date: Sun Mar 28 12:28:25 2010
New Revision: 928387

URL: http://svn.apache.org/viewvc?rev=928387&view=rev
Log:
BVAL-4 Rename java packages

Added:
    incubator/bval/trunk/bval-core/   (with props)
    incubator/bval/trunk/bval-core/.externalToolBuilders/
    incubator/bval/trunk/bval-core/.externalToolBuilders/Maven_Ant_Builder.launch
    incubator/bval/trunk/bval-core/.settings/
    incubator/bval/trunk/bval-core/.settings/org.eclipse.jdt.core.prefs
    incubator/bval/trunk/bval-core/.settings/org.maven.ide.eclipse.prefs
    incubator/bval/trunk/bval-core/LICENSE.txt   (with props)
    incubator/bval/trunk/bval-core/NOTICE.txt   (with props)
    incubator/bval/trunk/bval-core/maven-eclipse.xml   (with props)
    incubator/bval/trunk/bval-core/pom.xml   (with props)
    incubator/bval/trunk/bval-core/readme.txt   (with props)
    incubator/bval/trunk/bval-core/src/
    incubator/bval/trunk/bval-core/src/main/
    incubator/bval/trunk/bval-core/src/main/java/
    incubator/bval/trunk/bval-core/src/main/java/org/
    incubator/bval/trunk/bval-core/src/main/java/org/apache/
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/BeanValidationContext.java   (with props)
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/BeanValidator.java   (with props)
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/DynamicMetaBean.java   (with props)
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/IntrospectorMetaBeanFactory.java   (with props)
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/MetaBeanBuilder.java   (with props)
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/MetaBeanCache.java   (with props)
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/MetaBeanEnricher.java   (with props)
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/MetaBeanFactory.java   (with props)
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/MetaBeanFinder.java   (with props)
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/MetaBeanManager.java   (with props)
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/MetaBeanManagerFactory.java   (with props)
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/Validate.java   (with props)
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/ValidationResults.java   (with props)
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/integration/
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/integration/ThreadBeanValidator.java   (with props)
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/integration/ThreadValidationContext.java   (with props)
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/json/
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/json/JSONGenerator.java   (with props)
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/model/
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/model/DynaType.java   (with props)
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/model/DynaTypeEnum.java   (with props)
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/model/Features.java   (with props)
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/model/FeaturesCapable.java   (with props)
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/model/MetaBean.java   (with props)
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/model/MetaProperty.java   (with props)
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/model/Validation.java   (with props)
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/model/ValidationContext.java   (with props)
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/model/ValidationListener.java   (with props)
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/routines/
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/routines/EMailValidation.java   (with props)
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/routines/NOPValidation.java   (with props)
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/routines/Reasons.java   (with props)
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/routines/StandardValidation.java   (with props)
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/util/
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/util/AccessStrategy.java   (with props)
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/util/FieldAccess.java   (with props)
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/util/MethodAccess.java   (with props)
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/util/PrivilegedActions.java   (with props)
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/util/PropertyAccess.java   (with props)
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/xml/
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/xml/XMLFeaturesCapable.java   (with props)
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/xml/XMLMapper.java   (with props)
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/xml/XMLMetaBean.java   (with props)
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/xml/XMLMetaBeanFactory.java   (with props)
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/xml/XMLMetaBeanInfos.java   (with props)
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/xml/XMLMetaBeanLoader.java   (with props)
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/xml/XMLMetaBeanReference.java   (with props)
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/xml/XMLMetaBeanRegistry.java   (with props)
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/xml/XMLMetaBeanURLLoader.java   (with props)
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/xml/XMLMetaElement.java   (with props)
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/xml/XMLMetaFeature.java   (with props)
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/xml/XMLMetaProperty.java   (with props)
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/xml/XMLMetaValidator.java   (with props)
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/xml/XMLMetaValidatorReference.java   (with props)
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/xml/XMLMetaValue.java   (with props)
    incubator/bval/trunk/bval-core/src/main/resources/
    incubator/bval/trunk/bval-core/src/main/resources/META-INF/
    incubator/bval/trunk/bval-core/src/main/resources/META-INF/services/
    incubator/bval/trunk/bval-core/src/main/resources/org/
    incubator/bval/trunk/bval-core/src/main/resources/org/apache/
    incubator/bval/trunk/bval-core/src/main/resources/org/apache/bval/
    incubator/bval/trunk/bval-core/src/main/resources/org/apache/bval/json/
    incubator/bval/trunk/bval-core/src/main/resources/org/apache/bval/json/bean-infos-json.ftl
    incubator/bval/trunk/bval-core/src/main/resources/org/apache/bval/jsr303/
    incubator/bval/trunk/bval-core/src/test/
    incubator/bval/trunk/bval-core/src/test/java/
    incubator/bval/trunk/bval-core/src/test/java/org/
    incubator/bval/trunk/bval-core/src/test/java/org/apache/
    incubator/bval/trunk/bval-core/src/test/java/org/apache/bval/
    incubator/bval/trunk/bval-core/src/test/java/org/apache/bval/BeanValidatorTest.java   (with props)
    incubator/bval/trunk/bval-core/src/test/java/org/apache/bval/MetaBeanManagerTest.java   (with props)
    incubator/bval/trunk/bval-core/src/test/java/org/apache/bval/ValidationResultsTest.java   (with props)
    incubator/bval/trunk/bval-core/src/test/java/org/apache/bval/example/
    incubator/bval/trunk/bval-core/src/test/java/org/apache/bval/example/BusinessEnum.java   (with props)
    incubator/bval/trunk/bval-core/src/test/java/org/apache/bval/example/BusinessObject.java   (with props)
    incubator/bval/trunk/bval-core/src/test/java/org/apache/bval/example/BusinessObjectAddress.java   (with props)
    incubator/bval/trunk/bval-core/src/test/java/org/apache/bval/example/BusinessObjectBeanInfo.java   (with props)
    incubator/bval/trunk/bval-core/src/test/java/org/apache/bval/example/ExampleBusinessObjectService.java   (with props)
    incubator/bval/trunk/bval-core/src/test/java/org/apache/bval/jsr303/
    incubator/bval/trunk/bval-core/src/test/java/org/apache/bval/jsr303/example/
    incubator/bval/trunk/bval-core/src/test/java/org/apache/bval/jsr303/groups/
    incubator/bval/trunk/bval-core/src/test/java/org/apache/bval/model/
    incubator/bval/trunk/bval-core/src/test/java/org/apache/bval/model/MetaPropertyTest.java   (with props)
    incubator/bval/trunk/bval-core/src/test/java/org/apache/bval/routines/
    incubator/bval/trunk/bval-core/src/test/java/org/apache/bval/routines/StandardValidationTest.java   (with props)
    incubator/bval/trunk/bval-core/src/test/java/org/apache/bval/xml/
    incubator/bval/trunk/bval-core/src/test/java/org/apache/bval/xml/XMLMetaBeanInfosTest.java   (with props)
    incubator/bval/trunk/bval-core/src/test/resources/
    incubator/bval/trunk/bval-core/src/test/resources/log4j.xml   (with props)
    incubator/bval/trunk/bval-core/src/test/resources/org/
    incubator/bval/trunk/bval-core/src/test/resources/org/apache/
    incubator/bval/trunk/bval-core/src/test/resources/org/apache/bval/
    incubator/bval/trunk/bval-core/src/test/resources/org/apache/bval/example/
    incubator/bval/trunk/bval-core/src/test/resources/org/apache/bval/example/test-beanInfos-custom.xml   (with props)
    incubator/bval/trunk/bval-core/src/test/resources/org/apache/bval/example/test-beanInfos.xml   (with props)
    incubator/bval/trunk/bval-jsr303/   (with props)
    incubator/bval/trunk/bval-jsr303/LICENSE.txt   (with props)
    incubator/bval/trunk/bval-jsr303/NOTICE.txt   (with props)
    incubator/bval/trunk/bval-jsr303/agimatec-jsr303.iml
    incubator/bval/trunk/bval-jsr303/pom.xml   (with props)
    incubator/bval/trunk/bval-jsr303/readme.txt   (with props)
    incubator/bval/trunk/bval-jsr303/src/
    incubator/bval/trunk/bval-jsr303/src/main/
    incubator/bval/trunk/bval-jsr303/src/main/java/
    incubator/bval/trunk/bval-jsr303/src/main/java/org/
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/constraints/
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/constraints/AssertFalseValidator.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/constraints/AssertTrueValidator.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/constraints/DecimalMaxValidatorForNumber.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/constraints/DecimalMaxValidatorForString.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/constraints/DecimalMinValidatorForNumber.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/constraints/DecimalMinValidatorForString.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/constraints/DigitsValidatorForNumber.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/constraints/DigitsValidatorForString.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/constraints/Email.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/constraints/EmailValidator.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/constraints/FutureValidatorForCalendar.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/constraints/FutureValidatorForDate.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/constraints/MaxValidatorForNumber.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/constraints/MaxValidatorForString.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/constraints/MinValidatorForNumber.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/constraints/MinValidatorForString.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/constraints/NotEmpty.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/constraints/NotEmptyValidator.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/constraints/NotEmptyValidatorForCollection.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/constraints/NotEmptyValidatorForMap.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/constraints/NotEmptyValidatorForString.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/constraints/NotNullValidator.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/constraints/NullValidator.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/constraints/PastValidatorForCalendar.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/constraints/PastValidatorForDate.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/constraints/PatternValidator.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/constraints/SizeValidator.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/constraints/SizeValidatorForArrayOfBoolean.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/constraints/SizeValidatorForArrayOfByte.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/constraints/SizeValidatorForArrayOfChar.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/constraints/SizeValidatorForArrayOfDouble.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/constraints/SizeValidatorForArrayOfFloat.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/constraints/SizeValidatorForArrayOfInt.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/constraints/SizeValidatorForArrayOfLong.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/constraints/SizeValidatorForArrayOfObject.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/constraints/SizeValidatorForArrayOfShort.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/constraints/SizeValidatorForCollection.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/constraints/SizeValidatorForMap.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/constraints/SizeValidatorForString.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/AgimatecFactoryContext.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/AgimatecValidationProvider.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/AgimatecValidatorConfiguration.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/AgimatecValidatorFactory.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/AnnotationConstraintBuilder.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/AppendValidation.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/AppendValidationToBuilder.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/AppendValidationToMeta.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/BeanDescriptorImpl.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ClassValidator.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ConfigurationImpl.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ConstraintCached.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ConstraintDefaults.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ConstraintFinderImpl.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ConstraintValidation.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ConstraintValidationListener.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ConstraintValidatorContextImpl.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ConstraintViolationImpl.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/DefaultConstraintValidatorFactory.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/DefaultMessageInterpolator.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/DefaultValidationProviderResolver.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ElementDescriptorImpl.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/GroupValidationContext.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/GroupValidationContextImpl.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/Jsr303Features.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/Jsr303MetaBeanFactory.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/NestedMetaProperty.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/PropertyDescriptorImpl.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/extensions/
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/extensions/AppendValidationToList.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/extensions/ConstructorDescriptor.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/extensions/ConstructorDescriptorImpl.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/extensions/MethodBeanDescriptor.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/extensions/MethodBeanDescriptorImpl.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/extensions/MethodDescriptor.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/extensions/MethodDescriptorImpl.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/extensions/MethodValidator.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/extensions/MethodValidatorImpl.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/extensions/MethodValidatorMetaBeanFactory.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/extensions/ParameterDescriptor.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/extensions/ParameterDescriptorImpl.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/extensions/ProcedureDescriptor.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/groups/
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/groups/Group.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/groups/Groups.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/groups/GroupsComputer.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/resolver/
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/resolver/CachingRelevant.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/resolver/CachingTraversableResolver.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/resolver/DefaultTraversableResolver.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/resolver/JPATraversableResolver.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/resolver/SimpleTraversableResolver.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/util/
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/util/ConverterUtils.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/util/NodeBuilderCustomizableContextImpl.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/util/NodeBuilderDefinedContextImpl.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/util/NodeContextBuilderImpl.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/util/NodeImpl.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/util/PathImpl.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/util/SecureActions.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/util/TypeUtils.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/xml/
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/xml/AnnotationIgnores.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/xml/AnnotationProxy.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/xml/AnnotationProxyBuilder.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/xml/MetaConstraint.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/xml/ValidationMappingParser.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/xml/ValidationParser.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/resources/
    incubator/bval/trunk/bval-jsr303/src/main/resources/META-INF/
    incubator/bval/trunk/bval-jsr303/src/main/resources/META-INF/services/
    incubator/bval/trunk/bval-jsr303/src/main/resources/META-INF/services/javax.validation.spi.ValidationProvider
    incubator/bval/trunk/bval-jsr303/src/main/resources/org/
    incubator/bval/trunk/bval-jsr303/src/main/resources/org/apache/
    incubator/bval/trunk/bval-jsr303/src/main/resources/org/apache/bval/
    incubator/bval/trunk/bval-jsr303/src/main/resources/org/apache/bval/jsr303/
    incubator/bval/trunk/bval-jsr303/src/main/resources/org/apache/bval/jsr303/DefaultConstraints.properties   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/resources/org/apache/bval/jsr303/ValidationMessages.properties   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/resources/org/apache/bval/jsr303/ValidationMessages_it.properties   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/xjb/
    incubator/bval/trunk/bval-jsr303/src/main/xjb/binding-customization.xjb
    incubator/bval/trunk/bval-jsr303/src/main/xsd/
    incubator/bval/trunk/bval-jsr303/src/main/xsd/validation-configuration-1.0.xsd   (with props)
    incubator/bval/trunk/bval-jsr303/src/main/xsd/validation-mapping-1.0.xsd   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/
    incubator/bval/trunk/bval-jsr303/src/test/java/
    incubator/bval/trunk/bval-jsr303/src/test/java/org/
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/constraints/
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/constraints/AgimatecEmail.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/constraints/DigitsValidatorTest.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/constraints/EmailValidatorTest.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/constraints/FrenchZipCode.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/constraints/FrenchZipcodeValidator.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/constraints/HasStringValidator.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/constraints/HasValue.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/constraints/Password.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/constraints/ZipCodeCityCoherence.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/constraints/ZipCodeCityCoherenceValidator.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/BootstrapTest.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/ComposedConstraintsTest.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/DefaultMessageInterpolatorTest.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/FooTest.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/Jsr303Test.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/PayloadTest.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/ValidationTest.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/example/
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/example/AccessTestBusinessObject.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/example/AccessTestBusinessObjectSub.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/example/Address.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/example/AgimatecAddress.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/example/Author.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/example/Book.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/example/BusinessAddress.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/example/Country.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/example/Customer.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/example/Employee.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/example/Engine.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/example/First.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/example/FrenchAddress.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/example/Last.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/example/Library.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/example/MaxTestEntity.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/example/NoValidatorTestEntity.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/example/Person.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/example/PreferredGuest.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/example/RecursiveFoo.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/example/Second.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/example/SizeTestEntity.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/example/XmlEntitySampleBean.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/example/ZipCodeCityCarrier.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/extensions/
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/extensions/ExampleMethodService.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/extensions/MethodValidatorImplTest.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/Billable.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/BillableCreditCard.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/BillableUser.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/BuyInOneClick.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/CollectionValidationTest.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/CyclicGroupSequence.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/CyclicGroupSequence1.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/CyclicGroupSequence2.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/DefaultGroupSequenceTest.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/GClass1.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/GClass2.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/GClass3.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/GInterface1.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/GroupSequenceTest.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/GroupValidationTest.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/GroupsComputerTest.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/implicit/
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/implicit/Auditable.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/implicit/ImplicitGroupingTest.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/implicit/Order.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/inheritance/
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/inheritance/BillableUser.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/inheritance/BuyInOneClick.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/inheritance/GroupInheritanceTest.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/redefining/
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/redefining/Address.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/redefining/InvalidRedefinedDefaultGroupAddress.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/redefining/RedefiningDefaultGroupTest.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/util/
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/util/ConverterUtilsTest.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/util/PathImplTest.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/util/TestUtils.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/xml/
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/xml/TestConstraintValidatorFactory.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/xml/TestMessageInterpolator.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/xml/ValidationParserTest.java   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/resources/
    incubator/bval/trunk/bval-jsr303/src/test/resources/ValidationMessages.properties   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/resources/sample-constraints.xml   (with props)
    incubator/bval/trunk/bval-jsr303/src/test/resources/sample-validation.xml   (with props)
Removed:
    incubator/bval/trunk/agimatec-jsr303/
    incubator/bval/trunk/agimatec-validation/
Modified:
    incubator/bval/trunk/pom.xml

Propchange: incubator/bval/trunk/bval-core/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Sun Mar 28 12:28:25 2010
@@ -0,0 +1 @@
+target

Added: incubator/bval/trunk/bval-core/.externalToolBuilders/Maven_Ant_Builder.launch
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-core/.externalToolBuilders/Maven_Ant_Builder.launch?rev=928387&view=auto
==============================================================================
--- incubator/bval/trunk/bval-core/.externalToolBuilders/Maven_Ant_Builder.launch (added)
+++ incubator/bval/trunk/bval-core/.externalToolBuilders/Maven_Ant_Builder.launch Sun Mar 28 12:28:25 2010
@@ -0,0 +1,24 @@
+<launchConfiguration type="org.eclipse.ant.AntBuilderLaunchConfigurationType">
+  <booleanAttribute key="org.eclipse.debug.ui.ATTR_LAUNCH_IN_BACKGROUND" value="false"/>
+  <stringAttribute key="org.eclipse.ui.externaltools.ATTR_RUN_BUILD_KINDS" value="full,incremental,auto,clean"/>
+  <booleanAttribute key="org.eclipse.ui.externaltools.ATTR_TRIGGERS_CONFIGURED" value="true"/>
+  <booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>
+  <stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="bval-core"/>
+  <booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="true"/>
+  <stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="${build_project}/maven-eclipse.xml"/>
+  <stringAttribute key="org.eclipse.ui.externaltools.ATTR_WORKING_DIRECTORY" value="${build_project}"/>
+  <stringAttribute key="org.eclipse.debug.core.ATTR_REFRESH_SCOPE" value="${project}"/>
+  <booleanAttribute key="org.eclipse.debug.core.capture_output" value="false"/>
+  <stringAttribute key="org.eclipse.ui.externaltools.ATTR_BUILD_SCOPE" value="${working_set:&lt;?xml version=&apos;1.0&apos;?&gt;&lt;launchConfigurationWorkingSet editPageId=&apos;org.eclipse.ui.resourceWorkingSetPage&apos; factoryID=&apos;org.eclipse.ui.internal.WorkingSetFactory&apos; label=&apos;workingSet&apos; name=&apos;workingSet&apos;&gt;&lt;item factoryID=&apos;org.eclipse.ui.internal.model.ResourceFactory&apos; path=&apos;bval-core&apos; type=&apos;4&apos;/&gt;&lt;/launchConfigurationWorkingSet&gt;}"/>
+  <stringAttribute key="process_factory_id" value="org.eclipse.ant.ui.remoteAntProcessFactory"/>
+  <booleanAttribute key="org.eclipse.ant.ui.DEFAULT_VM_INSTALL" value="false"/>
+  <booleanAttribute key="org.eclipse.debug.ui.ATTR_CONSOLE_OUTPUT_ON" value="false"/>
+  <booleanAttribute key="org.eclipse.ant.ui.ATTR_TARGETS_UPDATED" value="true"/>
+  <stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="org.eclipse.ant.ui.AntClasspathProvider"/>
+  <listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
+    <listEntry value="1"/>
+  </listAttribute>
+  <listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
+    <listEntry value="/bval-core/maven-eclipse.xml"/>
+  </listAttribute>
+</launchConfiguration>
\ No newline at end of file

Added: incubator/bval/trunk/bval-core/.settings/org.eclipse.jdt.core.prefs
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-core/.settings/org.eclipse.jdt.core.prefs?rev=928387&view=auto
==============================================================================
--- incubator/bval/trunk/bval-core/.settings/org.eclipse.jdt.core.prefs (added)
+++ incubator/bval/trunk/bval-core/.settings/org.eclipse.jdt.core.prefs Sun Mar 28 12:28:25 2010
@@ -0,0 +1,6 @@
+#Sun Mar 28 13:33:40 CEST 2010
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
+org.eclipse.jdt.core.compiler.source=1.5

Added: incubator/bval/trunk/bval-core/.settings/org.maven.ide.eclipse.prefs
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-core/.settings/org.maven.ide.eclipse.prefs?rev=928387&view=auto
==============================================================================
--- incubator/bval/trunk/bval-core/.settings/org.maven.ide.eclipse.prefs (added)
+++ incubator/bval/trunk/bval-core/.settings/org.maven.ide.eclipse.prefs Sun Mar 28 12:28:25 2010
@@ -0,0 +1,9 @@
+#Sun Mar 28 13:33:39 CEST 2010
+activeProfiles=
+eclipse.preferences.version=1
+fullBuildGoals=process-test-resources
+includeModules=false
+resolveWorkspaceProjects=true
+resourceFilterGoals=process-resources resources\:testResources
+skipCompilerPlugin=true
+version=1

Added: incubator/bval/trunk/bval-core/LICENSE.txt
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-core/LICENSE.txt?rev=928387&view=auto
==============================================================================
--- incubator/bval/trunk/bval-core/LICENSE.txt (added)
+++ incubator/bval/trunk/bval-core/LICENSE.txt Sun Mar 28 12:28:25 2010
@@ -0,0 +1,203 @@
+
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+

Propchange: incubator/bval/trunk/bval-core/LICENSE.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/bval/trunk/bval-core/LICENSE.txt
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/bval/trunk/bval-core/LICENSE.txt
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/bval/trunk/bval-core/NOTICE.txt
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-core/NOTICE.txt?rev=928387&view=auto
==============================================================================
--- incubator/bval/trunk/bval-core/NOTICE.txt (added)
+++ incubator/bval/trunk/bval-core/NOTICE.txt Sun Mar 28 12:28:25 2010
@@ -0,0 +1,16 @@
+
+Apache Incubator - Bean Validation project
+Copyright 2010 The Apache Software Foundation.
+
+This product includes software developed by
+The Apache Software Foundation (http://www.apache.org/).
+
+Apache and the Apache feather logo are trademarks of The Apache Software Foundation.
+
+
+The following copyright notice(s) were affixed to portions of this code
+with which this file is now or was at one time distributed.
+
+This product includes software developed by agimatec GmbH.
+Copyright 2007-2010 Agimatec GmbH. All rights reserved.
+

Propchange: incubator/bval/trunk/bval-core/NOTICE.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/bval/trunk/bval-core/NOTICE.txt
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/bval/trunk/bval-core/NOTICE.txt
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/bval/trunk/bval-core/maven-eclipse.xml
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-core/maven-eclipse.xml?rev=928387&view=auto
==============================================================================
--- incubator/bval/trunk/bval-core/maven-eclipse.xml (added)
+++ incubator/bval/trunk/bval-core/maven-eclipse.xml Sun Mar 28 12:28:25 2010
@@ -0,0 +1,8 @@
+<project default="copy-resources">
+  <target name="init"/>
+  <target name="copy-resources" depends="init">
+    <copy todir="target/classes/META-INF" filtering="false">
+      <fileset dir="." includes="NOTICE.txt|LICENSE.txt|DISCLAIMER.txt" excludes="**/*.java"/>
+    </copy>
+  </target>
+</project>
\ No newline at end of file

Propchange: incubator/bval/trunk/bval-core/maven-eclipse.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/bval/trunk/bval-core/maven-eclipse.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/bval/trunk/bval-core/maven-eclipse.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/bval/trunk/bval-core/pom.xml
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-core/pom.xml?rev=928387&view=auto
==============================================================================
--- incubator/bval/trunk/bval-core/pom.xml (added)
+++ incubator/bval/trunk/bval-core/pom.xml Sun Mar 28 12:28:25 2010
@@ -0,0 +1,112 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied.  See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<!--
+    Maven release plugin requires the project tag to be on a single line.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.apache.bval</groupId>
+    <artifactId>bval-parent</artifactId>
+    <version>0.9.6</version>
+  </parent>
+
+  <artifactId>bval-core</artifactId>
+  <name>bval-core :: Validation and Metadata Engine</name>
+  <packaging>jar</packaging>
+
+  <description>
+    This is the implementation of the validation framework of agimatec GmbH,
+    that is in production since 2007. Features:
+    like XML-based extensible metadata, code generation (JSON for AJAX applications),
+    validation of java-beans with relationships.
+  </description>
+
+  <dependencies>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>commons-lang</groupId>
+      <artifactId>commons-lang</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>commons-logging</groupId>
+      <artifactId>commons-logging</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>log4j</groupId>
+      <artifactId>log4j</artifactId>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>commons-beanutils</groupId>
+      <artifactId>commons-beanutils</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>com.thoughtworks.xstream</groupId>
+      <artifactId>xstream</artifactId>
+      <optional>true</optional>
+    </dependency>
+    <dependency>
+      <groupId>commons-collections</groupId>
+      <artifactId>commons-collections</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.freemarker</groupId>
+      <artifactId>freemarker</artifactId>
+      <optional>true</optional>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <defaultGoal>install</defaultGoal>
+
+    <resources>
+      <resource>
+        <directory>src/main/resources</directory>
+      </resource>
+      <!-- also include license and notice files -->
+      <resource>
+        <directory>${basedir}</directory>
+          <includes>
+            <include>NOTICE.txt</include>
+            <include>LICENSE.txt</include>
+            <include>DISCLAIMER.txt</include>
+          </includes>
+        <targetPath>META-INF</targetPath>
+      </resource>
+    </resources>
+
+    <extensions>
+      <extension>
+        <groupId>org.apache.maven.wagon</groupId>
+        <artifactId>wagon-webdav</artifactId>
+        <version>1.0-beta-2</version>
+      </extension>
+    </extensions>
+
+    <plugins>
+    </plugins>
+  </build>
+</project>

Propchange: incubator/bval/trunk/bval-core/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/bval/trunk/bval-core/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/bval/trunk/bval-core/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/bval/trunk/bval-core/readme.txt
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-core/readme.txt?rev=928387&view=auto
==============================================================================
--- incubator/bval/trunk/bval-core/readme.txt (added)
+++ incubator/bval/trunk/bval-core/readme.txt Sun Mar 28 12:28:25 2010
@@ -0,0 +1,62 @@
+agimatec-validation
+===================
+validation and metadata framework by agimatec GmbH
+
+How to compile the project
+==========================
+Requirements:
+0. Sources require java1.5 or higher. (Tested with JDK 1.5.0_12 and 1.6.0_07)
+1. The project is built with maven2 (2.0.9). 
+   You need to download and install maven2 from: http://maven.apache.org/
+2. Invoke maven2 from within the directory of the pom.xml file
+
+compile agimatec-validation project:
+------------------------------------
+mvn install
+
+(artifacts are generated into the target directory)
+
+(optional) generate site, javadoc:
+-----------------------
+mvn site
+
+(optional) generate source-jars:
+---------------------
+mvn source:jar
+mvn source:test-jar
+
+(optional) generate an IntelliJ project:
+-----------------------------
+mvn idea:idea
+
+(optional) deploy maven-site and javadoc:
+------------------------------
+[ Note:
+  You must set the properties ${agimatec-site-id} and ${agimatec-site-url} to
+  adequate values. You can do that by adding them to your maven settings.xml. This is the place
+  where the server credenticals for uploads are kept. ]
+ 
+mvn site-deploy
+
+Getting started
+---------------
+Refer to the project page and WIKI at:
+http://code.google.com/p/agimatec-validation
+
+You can checkout latest sources and releases from there.
+You can also refer to the test cases in src/test/java/** for examples.
+
+Project status
+==============
+* You can use the APIs of agimatec-validation:
+  refer to classes MetaBeanManagerFactory and BeanValidator 
+
+Feedback, questions, contribution
+=================================
+** Feedback is welcome! **
+
+http://code.google.com/p/agimatec-validation
+http://www.agimatec.de
+
+Roman Stumm, agimatec GmbH, 2008, 2009
+email: roman.stumm@agimatec.de

Propchange: incubator/bval/trunk/bval-core/readme.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/bval/trunk/bval-core/readme.txt
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/bval/trunk/bval-core/readme.txt
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/BeanValidationContext.java
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/BeanValidationContext.java?rev=928387&view=auto
==============================================================================
--- incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/BeanValidationContext.java (added)
+++ incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/BeanValidationContext.java Sun Mar 28 12:28:25 2010
@@ -0,0 +1,247 @@
+/**
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.apache.bval;
+
+import org.apache.bval.model.*;
+
+import java.util.IdentityHashMap;
+
+import org.apache.bval.model.FeaturesCapable;
+import org.apache.bval.model.MetaBean;
+import org.apache.bval.model.MetaProperty;
+import org.apache.bval.model.ValidationContext;
+import org.apache.bval.model.ValidationListener;
+import org.apache.bval.util.AccessStrategy;
+import org.apache.bval.util.PropertyAccess;
+
+/**
+ * Description: Context during validation to help the {@link org.apache.bval.model.Validation}
+ * and the {@link BeanValidator} do their jobs.
+ * Used to bundle {@link BeanValidationContext} and {@link ValidationListener}
+ * together <br/>
+ * <b>This class is NOT thread-safe: a new instance will be created for each
+ * validation
+ * processing per thread.<br/></b>
+ * <br/>
+ * User: roman.stumm <br/>
+ * Date: 06.07.2007 <br/>
+ * Time: 12:30:01 <br/>
+ * Copyright: Agimatec GmbH 2008
+ */
+public class BeanValidationContext<T extends ValidationListener>
+      implements ValidationContext<T> {
+    /** represent an unknown propertyValue. */
+    private static final Object UNKNOWN = new Object();
+
+    /** metainfo of current object. */
+    private MetaBean metaBean;
+    /** current object. */
+    private Object bean;
+    /** metainfo of current property. */
+    private MetaProperty metaProperty;
+    /**
+     * cached value of current property.
+     * Cached because of potential redundant access for different Validations
+     */
+    private Object propertyValue = UNKNOWN;
+
+    /** access strategy used for previous access */
+    private AccessStrategy access;
+
+    /** set of objects already validated to avoid endless loops. */
+    protected IdentityHashMap validatedObjects = new IdentityHashMap();
+
+    /**
+     * true when value is fixed, so that it will NOT be dynamically
+     * determined from the annotated element or the metaProperty.
+     * <b><br>Note: When value is UNKNOWN, it will be determined THE FIRST TIME
+     * IT IS ACCESSED.</b>
+     */
+    private boolean fixed;
+
+    /** listener notified of validation constraint violations. */
+    private T listener;
+
+    public BeanValidationContext(T listener) {
+        this.listener = listener;
+    }
+
+    public T getListener() {
+        return listener;
+    }
+
+    public void setListener(T listener) {
+        this.listener = listener;
+    }
+
+    /**
+     * add the object to the collection of validated objects to keep
+     * track of them to avoid endless loops during validation.
+     *
+     * @return true when the object was not already validated in this context
+     */
+    public boolean collectValidated() {
+        return validatedObjects.put(getBean(), Boolean.TRUE) == null;
+    }
+
+    /** @return true when the object has already been validated in this context */
+    public boolean isValidated(Object object) {
+        return validatedObjects.containsKey(object);
+    }
+
+    /**
+     * Clear map of validated objects (invoke when you want to 'reuse' the
+     * context for different validations)
+     */
+    public void resetValidated() {
+        validatedObjects.clear();
+    }
+
+    public void setBean(Object aBean, MetaBean aMetaBean) {
+        bean = aBean;
+        metaBean = aMetaBean;
+        metaProperty = null;
+        unknownValue();
+    }
+
+    /**
+     * get the cached value or access it somehow (via field or method)<br>
+     * <b>you should prefer getPropertyValue(AccessStrategy) instead of this method</b>
+     *
+     * @return the current value of the property accessed by reflection
+     * @throws IllegalArgumentException - error accessing attribute (config error, reflection problem)
+     * @throws IllegalStateException    - when no property is currently set in the context (application logic bug)
+     */
+    public Object getPropertyValue() {
+        if (access == null) { // undefined access strategy
+            return getPropertyValue(
+                  new PropertyAccess(bean.getClass(), metaProperty.getName()));
+        } else {
+            return getPropertyValue(access);
+        }
+    }
+
+    /** get the value by using the given access strategy and cache it */
+    public Object getPropertyValue(AccessStrategy access)
+          throws IllegalArgumentException, IllegalStateException {
+        if (propertyValue == UNKNOWN || (this.access != access && !fixed)) {
+            propertyValue = access.get(bean);
+            this.access = access;
+        }
+        return propertyValue;
+    }
+
+    /**
+     * convenience method to access metaProperty.name
+     *
+     * @return null or the name of the current property
+     */
+    public String getPropertyName() {
+        return metaProperty == null ? null : metaProperty.getName();
+    }
+
+    public void setPropertyValue(Object propertyValue) {
+        this.propertyValue = propertyValue;
+    }
+
+    public void setFixedValue(Object value) {
+        setPropertyValue(value);
+        fixed = true;
+    }
+
+    public boolean isFixed() {
+        return fixed;
+    }
+
+    public void setFixed(boolean fixed) {
+        this.fixed = fixed;
+    }
+
+    /**
+     * depending on whether we have a metaProperty or not,
+     * this returns the metaProperty or otherwise the metaBean.
+     * This is used to have a simple way to request features
+     * in the Validation for both bean- and property-level validations.
+     *
+     * @return something that is capable to deliver features
+     */
+    public FeaturesCapable getMeta() {
+        return (metaProperty == null) ? metaBean : metaProperty;
+    }
+
+    /**
+     * drop cached value.
+     * mark the internal cachedValue as UNKNOWN.
+     * This forces the BeanValidationContext to recompute the value
+     * the next time it is accessed.
+     * Use this method inside tests or when the propertyValue has been
+     * changed during validation.
+     */
+    public void unknownValue() {
+        propertyValue = UNKNOWN;
+        access = null;
+    }
+
+    public MetaBean getMetaBean() {
+        return metaBean;
+    }
+
+    public Object getBean() {
+        return bean;
+    }
+
+    public MetaProperty getMetaProperty() {
+        return metaProperty;
+    }
+
+    public void setMetaBean(MetaBean metaBean) {
+        this.metaBean = metaBean;
+    }
+
+    public void setBean(Object bean) {
+        this.bean = bean;
+        unknownValue();
+    }
+
+    public void setMetaProperty(MetaProperty metaProperty) {
+        this.metaProperty = metaProperty;
+        unknownValue();
+    }
+
+    public String toString() {
+        return "BeanValidationContext{ bean=" + bean + ", metaProperty=" + metaProperty +
+              ", propertyValue=" + propertyValue + '}';
+    }
+
+    public void moveDown(MetaProperty prop, AccessStrategy access) {
+        setMetaProperty(prop);
+        setBean(getPropertyValue(access), prop.getMetaBean());
+    }
+
+    public void moveUp(Object bean, MetaBean aMetaBean) {
+        setBean(bean, aMetaBean); // reset context state
+    }
+
+    public void setCurrentIndex(int index) {
+        // do nothing
+    }
+
+    public void setCurrentKey(Object key) {
+        // do nothing
+    }
+
+}

Propchange: incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/BeanValidationContext.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/BeanValidationContext.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/BeanValidationContext.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/BeanValidator.java
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/BeanValidator.java?rev=928387&view=auto
==============================================================================
--- incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/BeanValidator.java (added)
+++ incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/BeanValidator.java Sun Mar 28 12:28:25 2010
@@ -0,0 +1,353 @@
+/**
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.apache.bval;
+
+import org.apache.bval.model.*;
+
+import java.lang.annotation.Annotation;
+import java.lang.reflect.Method;
+import java.util.Collection;
+import java.util.Iterator;
+import java.util.Map;
+
+import org.apache.bval.model.Features;
+import org.apache.bval.model.MetaBean;
+import org.apache.bval.model.MetaProperty;
+import org.apache.bval.model.Validation;
+import org.apache.bval.model.ValidationContext;
+import org.apache.bval.model.ValidationListener;
+import org.apache.bval.util.AccessStrategy;
+import org.apache.bval.util.PropertyAccess;
+
+/**
+ * Description: Top-Level API-class to validate objects or object-trees.
+ * You can invoke, extend or utilize this class if you need other ways to integrate
+ * validation in your application.
+ * <p/>
+ * This class supports cyclic object graphs by keeping track of
+ * validated instances in the validation context.<br/>
+ * User: roman.stumm <br/>
+ * Date: 06.07.2007 <br/>
+ * Time: 12:28:46 <br/>
+ * Copyright: Agimatec GmbH 2008
+ */
+public class BeanValidator<T extends ValidationListener> {
+    private boolean treatMapsLikeBeans = false;
+    private final MetaBeanFinder metaBeanFinder;
+
+    /**
+     * convenience method. Use the global instance of MetaBeanManagerFactory.getFinder().
+     */
+    public BeanValidator() {
+        this(MetaBeanManagerFactory.getFinder());
+    }
+
+    public BeanValidator(MetaBeanFinder metaBeanFinder) {
+        this.metaBeanFinder = metaBeanFinder;
+    }
+
+    /**
+     * Behavior configuration -
+     * <pre>
+     * parameter: treatMapsLikeBeans - true (validate maps like beans, so that
+     *                             you can use Maps to validate dynamic classes or
+     *                             beans for which you have the MetaBean but no instances)
+     *                           - false (default), validate maps like collections
+     *                             (validating the values only)
+     * </pre>
+     * (is still configuration to better in BeanValidationContext?)
+     */
+    public boolean isTreatMapsLikeBeans() {
+        return treatMapsLikeBeans;
+    }
+
+    public void setTreatMapsLikeBeans(boolean treatMapsLikeBeans) {
+        this.treatMapsLikeBeans = treatMapsLikeBeans;
+    }
+
+    /**
+     * convenience API. validate a root object with all related objects
+     * with its default metaBean definition.
+     *
+     * @return results - validation results found
+     */
+    public T validate(Object bean) {
+        MetaBean metaBean =
+              getMetaBeanFinder().findForClass(bean.getClass());
+        return validate(bean, metaBean);
+    }
+
+    /**
+     * convenience API. validate a root object with all related objects
+     * according to the metaBean.
+     *
+     * @param bean - a single bean or a collection of beans (that share the same metaBean!)
+     * @return results - validation results found
+     */
+    public T validate(Object bean, MetaBean metaBean) {
+        ValidationContext<T> context = createContext();
+        context.setBean(bean, metaBean);
+        validateContext(context);
+        return context.getListener();
+    }
+
+    /**
+     * validate the method parameters based on @Validate annotations.
+     * Requirements:
+     * Parameter, that are to be validated must be annotated with @Validate
+     *
+     * @param method     -  a method
+     * @param parameters - the parameters suitable to the method
+     * @return a validation result or null when there was nothing to validate
+     * @see Validate
+     */
+    public T validateCall(Method method, Object[] parameters) {
+        if (parameters.length > 0) {
+            // shortcut (for performance!)
+            Annotation[][] annotations = method.getParameterAnnotations();
+            ValidationContext<T> context = null;
+            for (int i = 0; i < parameters.length; i++) {
+                for (Annotation anno : annotations[i]) {
+                    if (anno instanceof Validate) {
+                        if(context == null) context = createContext();
+                        if (determineMetaBean((Validate) anno, parameters[i], context)) {
+                            validateContext(context);
+                            break; // next parameter
+                        }
+                    }
+                }
+            }
+            return context != null ? context.getListener() : null;
+        }
+        return null;
+    }
+
+    /** @return true when validation should happen, false to skip it */
+    protected boolean determineMetaBean(Validate validate, Object parameter,
+                                        ValidationContext context) {
+        if (validate.value().length() == 0) {
+            if (parameter == null) return false;
+            Class beanClass;
+            if (parameter instanceof Collection) {   // do not validate empty collection
+                Collection coll = ((Collection) parameter);
+                if (coll.isEmpty()) return false;
+                beanClass = coll.iterator().next().getClass(); // get first object
+            } else if (parameter.getClass().isArray()) {
+                beanClass = parameter.getClass().getComponentType();
+            } else {
+                beanClass = parameter.getClass();
+            }
+            context.setBean(parameter,getMetaBeanFinder().findForClass(beanClass));
+        } else {
+            context.setBean(parameter,getMetaBeanFinder().findForId(validate.value()));
+        }
+        return true;
+    }
+
+    /**
+     * factory method -
+     * overwrite in subclasses
+     */
+    protected T createResults() {
+        return (T) new ValidationResults();
+    }
+
+    /**
+     * factory method -
+     * overwrite in subclasses
+     */
+    protected ValidationContext<T> createContext() {
+        return new BeanValidationContext<T>(createResults());
+    }
+
+    /**
+     * convenience API. validate a single property.
+     *
+     * @param bean         - the root object
+     * @param metaProperty - metadata for the property
+     * @return validation results
+     */
+    public T validateProperty(Object bean, MetaProperty metaProperty) {
+        ValidationContext<T> context = createContext();
+        context.setBean(bean);
+        context.setMetaProperty(metaProperty);
+        validateProperty(context);
+        return context.getListener();
+    }
+
+    /**
+     * validate a single property only. performs all validations
+     * for this property.
+     */
+    public void validateProperty(ValidationContext context) {
+        for (Validation validation : context.getMetaProperty().getValidations()) {
+            validation.validate(context);
+        }
+    }
+
+    /**
+     * validate a complex 'bean' with related beans according to
+     * validation rules in 'metaBean'
+     *
+     * @param context - the context is initialized with:
+     *                <br>&nbsp;&nbsp;bean - the root object start validation at
+     *                or a collection of root objects
+     *                <br>&nbsp;&nbsp;metaBean - the meta information for the root object(s)
+     * @return a new instance of validation results
+     */
+    public void validateContext(ValidationContext context) {
+        if (context.getBean() != null) {
+            if (!treatMapsLikeBeans && context.getBean() instanceof Map) {
+                validateMapInContext(context);
+            } else if (context.getBean() instanceof Iterable) {
+                validateIteratableInContext(context);
+            } else if (context.getBean() instanceof Object[]) {
+                validateArrayInContext(context);
+            } else { // to One Bean (or Map like Bean) 
+                validateBeanInContext(context);
+            }
+        }
+    }
+
+    private void validateBeanInContext(ValidationContext context) {
+        if (getDynamicMetaBean(context) != null) {
+            context.setMetaBean(
+                  getDynamicMetaBean(context).resolveMetaBean(context.getBean()));
+        }
+        validateBeanNet(context);
+    }
+
+    private void validateArrayInContext(ValidationContext context) {
+        int index = 0;
+        DynamicMetaBean dyn = getDynamicMetaBean(context);
+        for (Object each : ((Object[]) context.getBean())) {
+            context.setCurrentIndex(index++);
+            if (each == null) continue; // or throw IllegalArgumentException? (=> spec)
+            if (dyn != null) {
+                context.setBean(each, dyn.resolveMetaBean(each));
+            } else {
+                context.setBean(each);
+            }
+            validateBeanNet(context);
+        }
+    }
+
+    private DynamicMetaBean getDynamicMetaBean(ValidationContext context) {
+        return context.getMetaBean() instanceof DynamicMetaBean ?
+              (DynamicMetaBean) context.getMetaBean() : null;
+    }
+
+    /** Any object implementing java.lang.Iterable is supported */
+    private void validateIteratableInContext(ValidationContext context) {
+        Iterator it = ((Iterable) context.getBean()).iterator();
+        int index = 0;
+        // jsr303 spec: Each object provided by the iterator is validated.
+        final DynamicMetaBean dyn = getDynamicMetaBean(context);
+        while (it.hasNext()) { // to Many
+            Object each = it.next();
+            context.setCurrentIndex(index++);
+            if (each == null)
+                continue; // enhancement: throw IllegalArgumentException? (=> spec)
+            if (dyn != null) {
+                context.setBean(each, dyn.resolveMetaBean(each));
+            } else {
+                context.setBean(each);
+            }
+            validateBeanNet(context);
+        }
+    }
+
+    private void validateMapInContext(ValidationContext context) {
+        // jsr303 spec: For Map, the value of each Map.Entry is validated (key is not validated).
+        Iterator<Map.Entry> it = ((Map) context.getBean()).entrySet().iterator();
+        final DynamicMetaBean dyn = getDynamicMetaBean(context);
+        while (it.hasNext()) { // to Many
+            Map.Entry entry = it.next();
+            context.setCurrentKey(entry.getKey());
+            if (entry.getValue() == null)
+                continue; // enhancement: throw IllegalArgumentException? (=> spec)
+            if (dyn != null) {
+                context.setBean(entry.getValue(), dyn.resolveMetaBean(entry.getValue()));
+            } else {
+                context.setBean(entry.getValue());
+            }
+            validateBeanNet(context);
+        }
+    }
+
+    /** internal validate a bean (=not a collection of beans) and its related beans */
+    protected void validateBeanNet(ValidationContext context) {
+        if (context.collectValidated()) {
+            validateBean(context);
+            for (MetaProperty prop : context.getMetaBean().getProperties()) {
+                validateRelatedBean(context, prop);
+            }
+        }
+    }
+
+    private void validateRelatedBean(ValidationContext context, MetaProperty prop) {
+        AccessStrategy[] access = prop.getFeature(Features.Property.REF_CASCADE);
+        if (access == null && prop.getMetaBean() != null) { // single property access strategy
+            // save old values from context
+            final Object bean = context.getBean();
+            final MetaBean mbean = context.getMetaBean();
+            // modify context state for relationship-target bean
+            context.moveDown(prop, new PropertyAccess(bean.getClass(), prop.getName()));
+            validateContext(context);
+            // restore old values in context
+            context.moveUp(bean, mbean);
+        } else if (access != null) { // different accesses to relation
+            // save old values from context
+            final Object bean = context.getBean();
+            final MetaBean mbean = context.getMetaBean();
+            for (AccessStrategy each : access) {
+                // modify context state for relationship-target bean
+                context.moveDown(prop, each);
+                validateContext(context);
+                // restore old values in context
+                context.moveUp(bean, mbean);
+            }
+        }
+    }
+
+    /** validate a single bean only. no related beans will be validated */
+    public void validateBean(ValidationContext context) {
+        /**
+         * execute all property level validations
+         */
+        for (MetaProperty prop : context.getMetaBean().getProperties()) {
+            context.setMetaProperty(prop);
+            validateProperty(context);
+        }
+        /**
+         * execute all bean level validations
+         */
+        context.setMetaProperty(null);
+        for (Validation validation : context.getMetaBean().getValidations()) {
+            validation.validate(context);
+        }
+    }
+
+    /**
+     * the metabean finder associated with this validator.
+     * @see org.apache.bval.MetaBeanManagerFactory#getFinder() 
+     * @return a MetaBeanFinder
+     */
+    public MetaBeanFinder getMetaBeanFinder() {
+        return metaBeanFinder;
+    }
+}

Propchange: incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/BeanValidator.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/BeanValidator.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/BeanValidator.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/DynamicMetaBean.java
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/DynamicMetaBean.java?rev=928387&view=auto
==============================================================================
--- incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/DynamicMetaBean.java (added)
+++ incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/DynamicMetaBean.java Sun Mar 28 12:28:25 2010
@@ -0,0 +1,44 @@
+/**
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.apache.bval;
+
+import org.apache.bval.model.MetaBean;
+
+/**
+ * Description: <br/>
+ * User: roman.stumm <br/>
+ * Date: 28.04.2008 <br/>
+ * Time: 11:04:21 <br/>
+ * Copyright: Agimatec GmbH
+ */
+final class DynamicMetaBean extends MetaBean {
+    private final MetaBeanFinder finder;
+
+    public DynamicMetaBean(MetaBeanFinder finder) {
+        this.finder = finder;
+    }
+
+    /**
+     * different strategies with hints to find MetaBean of associated object can
+     * be implemented here.
+     */
+    @Override
+    public MetaBean resolveMetaBean(Object bean) {
+        return bean instanceof Class ?
+                finder.findForClass((Class) bean) : finder.findForClass(bean.getClass());
+    }
+}

Propchange: incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/DynamicMetaBean.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/DynamicMetaBean.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/DynamicMetaBean.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain



Mime
View raw message