commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From di...@apache.org
Subject svn commit: r155401 [1/4] - in jakarta/commons/proper/beanutils/trunk: ./ optional/bean-collections/ optional/bean-collections/src/conf/ optional/bean-collections/src/java/ optional/bean-collections/src/java/org/apache/commons/beanutils/ optional/bean-collections/src/test/org/apache/commons/beanutils/ optional/bean-collections/xdocs/ src/conf/ src/java/ src/java/org/apache/commons/beanutils/ src/java/org/apache/commons/beanutils/converters/ src/java/org/apache/commons/beanutils/locale/ src/java/org/apache/commons/beanutils/locale/converters/ src/java/org/apache/commons/collections/ src/test/org/apache/commons/beanutils/ src/test/org/apache/commons/beanutils/converters/ src/test/org/apache/commons/beanutils/locale/ src/test/org/apache/commons/beanutils/locale/converters/ src/test/org/apache/commons/beanutils/priv/ src/test/org/apache/commons/collections/ src/test/org/apache/commons/collections/keyvalue/ xdocs/ xdocs/style/
Date Sat, 26 Feb 2005 12:52:07 GMT
Author: dirkv
Date: Sat Feb 26 04:51:00 2005
New Revision: 155401

URL: http://svn.apache.org/viewcvs?view=rev&rev=155401
Log:
svn:keywords correction

Modified:
    jakarta/commons/proper/beanutils/trunk/LICENSE.txt   (props changed)
    jakarta/commons/proper/beanutils/trunk/NOTICE.txt   (props changed)
    jakarta/commons/proper/beanutils/trunk/PROPOSAL.html   (props changed)
    jakarta/commons/proper/beanutils/trunk/README.txt   (props changed)
    jakarta/commons/proper/beanutils/trunk/RELEASE-NOTES.txt   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/STATUS.html   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/build.properties.sample   (props changed)
    jakarta/commons/proper/beanutils/trunk/build.xml   (props changed)
    jakarta/commons/proper/beanutils/trunk/maven.xml   (props changed)
    jakarta/commons/proper/beanutils/trunk/optional/bean-collections/LICENSE.txt   (props changed)
    jakarta/commons/proper/beanutils/trunk/optional/bean-collections/build.properties.sample   (props changed)
    jakarta/commons/proper/beanutils/trunk/optional/bean-collections/build.xml   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/optional/bean-collections/project.xml   (props changed)
    jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/conf/MANIFEST.MF   (props changed)
    jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/java/org/apache/commons/beanutils/BeanComparator.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/java/org/apache/commons/beanutils/BeanMap.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/java/org/apache/commons/beanutils/BeanPredicate.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/java/org/apache/commons/beanutils/BeanPropertyValueChangeClosure.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/java/org/apache/commons/beanutils/BeanPropertyValueEqualsPredicate.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/java/org/apache/commons/beanutils/BeanToPropertyValueTransformer.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/java/overview.html   (props changed)
    jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/test/org/apache/commons/beanutils/AbstractParent.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/test/org/apache/commons/beanutils/AlphaBean.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/test/org/apache/commons/beanutils/BeanCollectionsTestSuite.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/test/org/apache/commons/beanutils/BeanComparatorTestCase.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/test/org/apache/commons/beanutils/BeanPredicateTestCase.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/test/org/apache/commons/beanutils/BeanPropertyValueChangeClosureTest.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/test/org/apache/commons/beanutils/BeanPropertyValueEqualsPredicateTest.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/test/org/apache/commons/beanutils/BeanToPropertyValueTransformerTest.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/test/org/apache/commons/beanutils/Child.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/test/org/apache/commons/beanutils/TestBean.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/test/org/apache/commons/beanutils/TestBeanMap.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/optional/bean-collections/xdocs/index.xml   (props changed)
    jakarta/commons/proper/beanutils/trunk/optional/bean-collections/xdocs/navigation.xml   (props changed)
    jakarta/commons/proper/beanutils/trunk/project.properties   (props changed)
    jakarta/commons/proper/beanutils/trunk/project.xml   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/conf/MANIFEST.MF   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/BasicDynaBean.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/BasicDynaClass.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/BeanAccessLanguageException.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/BeanUtils.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/BeanUtilsBean.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/ConstructorUtils.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/ContextClassLoaderLocal.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/ConversionException.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/ConvertUtils.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/ConvertUtilsBean.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/Converter.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/ConvertingWrapDynaBean.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/DynaBean.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/DynaClass.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/DynaProperty.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/JDBCDynaClass.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/LazyDynaBean.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/LazyDynaClass.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/LazyDynaMap.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/MappedPropertyDescriptor.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/MethodUtils.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/MutableDynaClass.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/NestedNullException.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/PropertyUtils.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/PropertyUtilsBean.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/ResultSetDynaClass.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/ResultSetIterator.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/RowSetDynaClass.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/WrapDynaBean.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/WrapDynaClass.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/converters/AbstractArrayConverter.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/converters/BigDecimalConverter.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/converters/BigIntegerConverter.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/converters/BooleanArrayConverter.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/converters/BooleanConverter.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/converters/ByteArrayConverter.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/converters/ByteConverter.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/converters/CharacterArrayConverter.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/converters/CharacterConverter.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/converters/ClassConverter.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/converters/DoubleArrayConverter.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/converters/DoubleConverter.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/converters/FileConverter.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/converters/FloatArrayConverter.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/converters/FloatConverter.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/converters/IntegerArrayConverter.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/converters/IntegerConverter.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/converters/LongArrayConverter.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/converters/LongConverter.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/converters/ShortArrayConverter.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/converters/ShortConverter.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/converters/SqlDateConverter.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/converters/SqlTimeConverter.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/converters/SqlTimestampConverter.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/converters/StringArrayConverter.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/converters/StringConverter.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/converters/URLConverter.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/converters/package.html   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/locale/BaseLocaleConverter.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/locale/LocaleBeanUtils.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/locale/LocaleBeanUtilsBean.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/locale/LocaleConvertUtils.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/locale/LocaleConvertUtilsBean.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/locale/LocaleConverter.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/locale/converters/BigDecimalLocaleConverter.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/locale/converters/BigIntegerLocaleConverter.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/locale/converters/ByteLocaleConverter.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/locale/converters/DateLocaleConverter.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/locale/converters/DecimalLocaleConverter.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/locale/converters/DoubleLocaleConverter.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/locale/converters/FloatLocaleConverter.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/locale/converters/IntegerLocaleConverter.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/locale/converters/LongLocaleConverter.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/locale/converters/ShortLocaleConverter.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/locale/converters/SqlDateLocaleConverter.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/locale/converters/SqlTimeLocaleConverter.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/locale/converters/SqlTimestampLocaleConverter.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/locale/converters/StringLocaleConverter.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/locale/converters/package.html   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/locale/package.html   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/package.html   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/collections/ArrayStack.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/collections/Buffer.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/collections/BufferUnderflowException.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/collections/FastHashMap.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/collections/package.html   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/java/overview.html   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/A.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/AbstractChild.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/AbstractParent.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/AlphaBean.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/BasicDynaBeanTestCase.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/BeanUtilsBenchCase.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/BeanUtilsTestCase.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/BeanWithInnerBean.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/BeanificationTestCase.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/BenchBean.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/BetaBean.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/Child.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/ConstructorUtilsTestCase.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/ConvertUtilsTestCase.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/DynaBeanUtilsTestCase.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/DynaPropertyUtilsTestCase.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/DynaResultSetTestCase.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/DynaRowSetTestCase.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/ExtendMapBean.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/IndexedPropertyTestCase.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/IndexedTestBean.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/LazyDynaBeanTestCase.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/LazyDynaClassTestCase.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/LazyDynaMapTestCase.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/MappedPropertyTestBean.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/MethodUtilsTestCase.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/NestedTestBean.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/PassTestException.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/PrimitiveBean.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/PropertyUtilsBenchCase.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/PropertyUtilsTestCase.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/SonOfAlphaBean.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/TestBean.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/TestBeanPackageSubclass.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/TestBeanPublicSubclass.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/TestResultSet.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/TestResultSetMetaData.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/ThrowExceptionConverter.java   (props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/WrapDynaBeanTestCase.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/converters/ByteConverterTestCase.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/converters/ConverterTestSuite.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/converters/DoubleConverterTestCase.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/converters/FileConverterTestCase.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/converters/FloatConverterTestCase.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/converters/IntegerConverterTestCase.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/converters/LongConverterTestCase.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/converters/NumberConverterTestBase.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/converters/ShortConverterTestCase.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/converters/StringArrayConverterTestCase.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/converters/URLConverterTestCase.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/locale/LocaleBeanificationTestCase.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/locale/LocaleConvertTestSuite.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/locale/LocaleConvertUtilsTestCase.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/locale/converters/BaseLocaleConverterTestCase.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/locale/converters/BigDecimalLocaleConverterTestCase.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/locale/converters/BigIntegerLocaleConverterTestCase.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/locale/converters/ByteLocaleConverterTestCase.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/locale/converters/DateLocaleConverterTestCase.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/locale/converters/DoubleLocaleConverterTestCase.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/locale/converters/FloatLocaleConverterTestCase.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/locale/converters/IntegerLocaleConverterTestCase.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/locale/converters/LongLocaleConverterTestCase.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/locale/converters/ShortLocaleConverterTestCase.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/priv/PackageBean.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/priv/PrivateBean.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/priv/PrivateBeanFactory.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/priv/PrivateBeanSubclass.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/priv/PrivateDirect.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/priv/PrivateIndirect.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/priv/PublicSubBean.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/collections/KeyValue.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/collections/ReferenceMap.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/collections/keyvalue/AbstractKeyValue.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/collections/keyvalue/AbstractMapEntry.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/collections/keyvalue/DefaultMapEntry.java   (contents, props changed)
    jakarta/commons/proper/beanutils/trunk/xdocs/index.xml   (props changed)
    jakarta/commons/proper/beanutils/trunk/xdocs/navigation.xml   (props changed)
    jakarta/commons/proper/beanutils/trunk/xdocs/proposal.xml   (props changed)
    jakarta/commons/proper/beanutils/trunk/xdocs/style/project.css   (props changed)

Propchange: jakarta/commons/proper/beanutils/trunk/LICENSE.txt
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL

Propchange: jakarta/commons/proper/beanutils/trunk/NOTICE.txt
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL

Propchange: jakarta/commons/proper/beanutils/trunk/PROPOSAL.html
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL

Propchange: jakarta/commons/proper/beanutils/trunk/README.txt
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL

Modified: jakarta/commons/proper/beanutils/trunk/RELEASE-NOTES.txt
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/beanutils/trunk/RELEASE-NOTES.txt?view=diff&r1=155400&r2=155401
==============================================================================
--- jakarta/commons/proper/beanutils/trunk/RELEASE-NOTES.txt (original)
+++ jakarta/commons/proper/beanutils/trunk/RELEASE-NOTES.txt Sat Feb 26 04:51:00 2005
@@ -1,4 +1,4 @@
-$Id: RELEASE-NOTES.txt,v 1.12 2004/08/02 19:49:20 rdonkin Exp $
+$Id$
 
    Copyright 2001-2004 The Apache Software Foundation
 

Propchange: jakarta/commons/proper/beanutils/trunk/RELEASE-NOTES.txt
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL

Modified: jakarta/commons/proper/beanutils/trunk/STATUS.html
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/beanutils/trunk/STATUS.html?view=diff&r1=155400&r2=155401
==============================================================================
--- jakarta/commons/proper/beanutils/trunk/STATUS.html (original)
+++ jakarta/commons/proper/beanutils/trunk/STATUS.html Sat Feb 26 04:51:00 2005
@@ -22,7 +22,7 @@
 
 <div align="center">
 <h1>The Jakarta Commons <em>BeanUtils</em> Component</h1>
-$Id: STATUS.html,v 1.17 2004/07/05 00:40:32 niallp Exp $<br>
+$Id$<br>
 <a href="#Introduction">[Introduction]</a>
 <a href="#Dependencies">[Dependencies]</a>
 <a href="#Release Info">[Release Info]</a>

Propchange: jakarta/commons/proper/beanutils/trunk/STATUS.html
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL

Propchange: jakarta/commons/proper/beanutils/trunk/build.properties.sample
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL

Propchange: jakarta/commons/proper/beanutils/trunk/build.xml
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL

Propchange: jakarta/commons/proper/beanutils/trunk/maven.xml
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL

Propchange: jakarta/commons/proper/beanutils/trunk/optional/bean-collections/LICENSE.txt
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL

Propchange: jakarta/commons/proper/beanutils/trunk/optional/bean-collections/build.properties.sample
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL

Modified: jakarta/commons/proper/beanutils/trunk/optional/bean-collections/build.xml
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/beanutils/trunk/optional/bean-collections/build.xml?view=diff&r1=155400&r2=155401
==============================================================================
--- jakarta/commons/proper/beanutils/trunk/optional/bean-collections/build.xml (original)
+++ jakarta/commons/proper/beanutils/trunk/optional/bean-collections/build.xml Sat Feb 26 04:51:00 2005
@@ -18,7 +18,7 @@
 
 <!--
         "Bean Utilities" component of the Jakarta Commons Subproject
-        $Id: build.xml,v 1.4 2004/08/02 21:06:04 rdonkin Exp $
+        $Id$
 -->
 
 

Propchange: jakarta/commons/proper/beanutils/trunk/optional/bean-collections/build.xml
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL

Propchange: jakarta/commons/proper/beanutils/trunk/optional/bean-collections/project.xml
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL

Propchange: jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/conf/MANIFEST.MF
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL

Propchange: jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/java/org/apache/commons/beanutils/BeanComparator.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL

Modified: jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/java/org/apache/commons/beanutils/BeanMap.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/java/org/apache/commons/beanutils/BeanMap.java?view=diff&r1=155400&r2=155401
==============================================================================
--- jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/java/org/apache/commons/beanutils/BeanMap.java (original)
+++ jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/java/org/apache/commons/beanutils/BeanMap.java Sat Feb 26 04:51:00 2005
@@ -42,7 +42,7 @@
  * If an exception occurs during attempts to get or set a property then the
  * property is considered non existent in the Map
  *
- * @version $Revision: 1.3 $ $Date: 2004/08/02 19:49:21 $
+ * @version $Revision$ $Date$
  * 
  * @author James Strachan
  * @author Stephen Colebourne

Propchange: jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/java/org/apache/commons/beanutils/BeanMap.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL

Propchange: jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/java/org/apache/commons/beanutils/BeanPredicate.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL

Modified: jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/java/org/apache/commons/beanutils/BeanPropertyValueChangeClosure.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/java/org/apache/commons/beanutils/BeanPropertyValueChangeClosure.java?view=diff&r1=155400&r2=155401
==============================================================================
--- jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/java/org/apache/commons/beanutils/BeanPropertyValueChangeClosure.java (original)
+++ jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/java/org/apache/commons/beanutils/BeanPropertyValueChangeClosure.java Sat Feb 26 04:51:00 2005
@@ -12,213 +12,213 @@
  * 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.commons.beanutils;
-
-import org.apache.commons.collections.Closure;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-
-import java.lang.reflect.InvocationTargetException;
-
-
-/**
- * <p><code>Closure</code> that sets a property.</p>
- * <p>
- * An implementation of <code>org.apache.commons.collections.Closure</code> that updates
- * a specified property on the object provided with a specified value.
- * The <code>BeanPropertyValueChangeClosure</code> constructor takes two parameters which determine
- * what property will be updated and with what value.
- * <dl>
- *    <dt>
- *       <b><code><pre>public BeanPropertyValueChangeClosure( String propertyName, Object propertyValue )</pre></code></b>
- *    </dt>
- *    <dd>
- *       Will create a <code>Closure</code> that will update an object by setting the property
- *       specified by <code>propertyName</code> to the value specified by <code>propertyValue</code>.
- *    </dd>
- * </dl>
- *
- * <p/>
- * <strong>Note:</strong> Property names can be a simple, nested, indexed, or mapped property as defined by
- * <code>org.apache.commons.beanutils.PropertyUtils</code>.  If any object in the property path
- * specified by <code>propertyName</code> is <code>null</code> then the outcome is based on the
- * value of the <code>ignoreNull</code> attribute.
- *
- * <p/>
- * A typical usage might look like:
- * <code><pre>
- * // create the closure
- * BeanPropertyValueChangeClosure closure =
- *    new BeanPropertyValueChangeClosure( "activeEmployee", Boolean.TRUE );
- *
- * // update the Collection
- * CollectionUtils.forAllDo( peopleCollection, closure );
- * </pre></code>
- * <p/>
- *
- * This would take a <code>Collection</code> of person objects and update the
- * <code>activeEmployee</code> property of each object in the <code>Collection</code> to
- * <code>true</code>. Assuming...
- * <ul>
- *    <li>
- *       The top level object in the <code>peopleCollection</code> is an object which represents a
- *       person.
- *    </li>
- *    <li>
- *       The person object has a <code>setActiveEmployee( boolean )</code> method which updates
- *       the value for the object's <code>activeEmployee</code> property.
- *    </li>
- * </ul>
- *
- * @author Norm Deane
- * @see org.apache.commons.beanutils.PropertyUtils
- * @see org.apache.commons.collections.Closure
- */
-public class BeanPropertyValueChangeClosure implements Closure {
-   
-    /** For logging. */
-    private final Log log = LogFactory.getLog(this.getClass());
-
-    /**
-     * The name of the property which will be updated when this <code>Closure</code> executes.
-     */
-    private String propertyName;
-
-    /**
-     * The value that the property specified by <code>propertyName</code>
-     * will be updated to when this <code>Closure</code> executes.
-     */
-    private Object propertyValue;
-
-    /**
-     * Determines whether <code>null</code> objects in the property path will genenerate an
-     * <code>IllegalArgumentException</code> or not. If set to <code>true</code> then if any objects
-     * in the property path leading up to the target property evaluate to <code>null</code> then the
-     * <code>IllegalArgumentException</code> throw by <code>PropertyUtils</code> will be logged but
-     * not rethrown.  If set to <code>false</code> then if any objects in the property path leading
-     * up to the target property evaluate to <code>null</code> then the
-     * <code>IllegalArgumentException</code> throw by <code>PropertyUtils</code> will be logged and
-     * rethrown.
-     */
-    private boolean ignoreNull;
-
-    /**
-     * Constructor which takes the name of the property to be changed, the new value to set
-     * the property to, and assumes <code>ignoreNull</code> to be <code>false</code>.
-     *
-     * @param propertyName The name of the property that will be updated with the value specified by
-     * <code>propertyValue</code>.
-     * @param propertyValue The value that <code>propertyName</code> will be set to on the target
-     * object.
-     * @throws IllegalArgumentException If the propertyName provided is null or empty.
-     */
-    public BeanPropertyValueChangeClosure(String propertyName, Object propertyValue) {
-        this(propertyName, propertyValue, false);
-    }
-
-    /**
-     * Constructor which takes the name of the property to be changed, the new value to set
-     * the property to and a boolean which determines whether <code>null</code> objects in the
-     * property path will genenerate an <code>IllegalArgumentException</code> or not.
-     *
-     * @param propertyName The name of the property that will be updated with the value specified by
-     * <code>propertyValue</code>.
-     * @param propertyValue The value that <code>propertyName</code> will be set to on the target
-     * object.
-     * @param ignoreNull Determines whether <code>null</code> objects in the property path will
-     * genenerate an <code>IllegalArgumentException</code> or not.
-     * @throws IllegalArgumentException If the propertyName provided is null or empty.
-     */
-    public BeanPropertyValueChangeClosure(String propertyName, Object propertyValue, boolean ignoreNull) {
-        super();
-
-        if ((propertyName != null) && (propertyName.length() > 0)) {
-            this.propertyName = propertyName;
-            this.propertyValue = propertyValue;
-            this.ignoreNull = ignoreNull;
-        } else {
-            throw new IllegalArgumentException("propertyName cannot be null or empty");
-        }
-    }
-
-    /**
-     * Updates the target object provided using the property update criteria provided when this
-     * <code>BeanPropertyValueChangeClosure</code> was constructed.  If any object in the property
-     * path leading up to the target property is <code>null</code> then the outcome will be based on
-     * the value of the <code>ignoreNull</code> attribute. By default, <code>ignoreNull</code> is
-     * <code>false</code> and would result in an <code>IllegalArgumentException</code> if an object
-     * in the property path leading up to the target property is <code>null</code>.
-     *
-     * @param object The object to be updated.
-     * @throws IllegalArgumentException If an IllegalAccessException, InvocationTargetException, or
-     * NoSuchMethodException is thrown when trying to access the property specified on the object
-     * provided. Or if an object in the property path provided is <code>null</code> and
-     * <code>ignoreNull</code> is set to <code>false</code>.
-     */
-    public void execute(Object object) {
-       
-        try {
-            PropertyUtils.setProperty(object, propertyName, propertyValue);
-        } catch (IllegalArgumentException e) {
-            final String errorMsg = "Unable to execute Closure. Null value encountered in property path...";
-
-            if (ignoreNull) {
-                log.warn("WARNING: " + errorMsg, e);
-            } else {
-                log.error("ERROR: " + errorMsg, e);
-                throw e;
-            }
-        } catch (IllegalAccessException e) {
-            final String errorMsg = "Unable to access the property provided.";
-            log.error(errorMsg, e);
-            throw new IllegalArgumentException(errorMsg);
-        } catch (InvocationTargetException e) {
-            final String errorMsg = "Exception occurred in property's getter";
-            log.error(errorMsg, e);
-            throw new IllegalArgumentException(errorMsg);
-        } catch (NoSuchMethodException e) {
-            final String errorMsg = "Property not found";
-            log.error(errorMsg, e);
-            throw new IllegalArgumentException(errorMsg);
-        }
-    }
-
-    /**
-     * Returns the name of the property which will be updated when this <code>Closure</code> executes.
-     *
-     * @return The name of the property which will be updated when this <code>Closure</code> executes.
-     */
-    public String getPropertyName() {
-        return propertyName;
-    }
-
-    /**
-     * Returns the value that the property specified by <code>propertyName</code>
-     * will be updated to when this <code>Closure</code> executes.
-     *
-     * @return The value that the property specified by <code>propertyName</code>
-     * will be updated to when this <code>Closure</code> executes.
-     */
-    public Object getPropertyValue() {
-        return propertyValue;
-    }
-
-    /**
-     * Returns the flag that determines whether <code>null</code> objects in the property path will
-     * genenerate an <code>IllegalArgumentException</code> or not. If set to <code>true</code> then
-     * if any objects in the property path leading up to the target property evaluate to
-     * <code>null</code> then the <code>IllegalArgumentException</code> throw by
-     * <code>PropertyUtils</code> will be logged but not rethrown.  If set to <code>false</code> then
-     * if any objects in the property path leading up to the target property evaluate to
-     * <code>null</code> then the <code>IllegalArgumentException</code> throw by
-     * <code>PropertyUtils</code> will be logged and rethrown.
-     *
-     * @return The flag that determines whether <code>null</code> objects in the property path will
-     * genenerate an <code>IllegalArgumentException</code> or not.
-     */
-    public boolean isIgnoreNull() {
-        return ignoreNull;
-    }
-}
+ */ 
+ 
+package org.apache.commons.beanutils;
+
+import org.apache.commons.collections.Closure;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+import java.lang.reflect.InvocationTargetException;
+
+
+/**
+ * <p><code>Closure</code> that sets a property.</p>
+ * <p>
+ * An implementation of <code>org.apache.commons.collections.Closure</code> that updates
+ * a specified property on the object provided with a specified value.
+ * The <code>BeanPropertyValueChangeClosure</code> constructor takes two parameters which determine
+ * what property will be updated and with what value.
+ * <dl>
+ *    <dt>
+ *       <b><code><pre>public BeanPropertyValueChangeClosure( String propertyName, Object propertyValue )</pre></code></b>
+ *    </dt>
+ *    <dd>
+ *       Will create a <code>Closure</code> that will update an object by setting the property
+ *       specified by <code>propertyName</code> to the value specified by <code>propertyValue</code>.
+ *    </dd>
+ * </dl>
+ *
+ * <p/>
+ * <strong>Note:</strong> Property names can be a simple, nested, indexed, or mapped property as defined by
+ * <code>org.apache.commons.beanutils.PropertyUtils</code>.  If any object in the property path
+ * specified by <code>propertyName</code> is <code>null</code> then the outcome is based on the
+ * value of the <code>ignoreNull</code> attribute.
+ *
+ * <p/>
+ * A typical usage might look like:
+ * <code><pre>
+ * // create the closure
+ * BeanPropertyValueChangeClosure closure =
+ *    new BeanPropertyValueChangeClosure( "activeEmployee", Boolean.TRUE );
+ *
+ * // update the Collection
+ * CollectionUtils.forAllDo( peopleCollection, closure );
+ * </pre></code>
+ * <p/>
+ *
+ * This would take a <code>Collection</code> of person objects and update the
+ * <code>activeEmployee</code> property of each object in the <code>Collection</code> to
+ * <code>true</code>. Assuming...
+ * <ul>
+ *    <li>
+ *       The top level object in the <code>peopleCollection</code> is an object which represents a
+ *       person.
+ *    </li>
+ *    <li>
+ *       The person object has a <code>setActiveEmployee( boolean )</code> method which updates
+ *       the value for the object's <code>activeEmployee</code> property.
+ *    </li>
+ * </ul>
+ *
+ * @author Norm Deane
+ * @see org.apache.commons.beanutils.PropertyUtils
+ * @see org.apache.commons.collections.Closure
+ */
+public class BeanPropertyValueChangeClosure implements Closure {
+   
+    /** For logging. */
+    private final Log log = LogFactory.getLog(this.getClass());
+
+    /**
+     * The name of the property which will be updated when this <code>Closure</code> executes.
+     */
+    private String propertyName;
+
+    /**
+     * The value that the property specified by <code>propertyName</code>
+     * will be updated to when this <code>Closure</code> executes.
+     */
+    private Object propertyValue;
+
+    /**
+     * Determines whether <code>null</code> objects in the property path will genenerate an
+     * <code>IllegalArgumentException</code> or not. If set to <code>true</code> then if any objects
+     * in the property path leading up to the target property evaluate to <code>null</code> then the
+     * <code>IllegalArgumentException</code> throw by <code>PropertyUtils</code> will be logged but
+     * not rethrown.  If set to <code>false</code> then if any objects in the property path leading
+     * up to the target property evaluate to <code>null</code> then the
+     * <code>IllegalArgumentException</code> throw by <code>PropertyUtils</code> will be logged and
+     * rethrown.
+     */
+    private boolean ignoreNull;
+
+    /**
+     * Constructor which takes the name of the property to be changed, the new value to set
+     * the property to, and assumes <code>ignoreNull</code> to be <code>false</code>.
+     *
+     * @param propertyName The name of the property that will be updated with the value specified by
+     * <code>propertyValue</code>.
+     * @param propertyValue The value that <code>propertyName</code> will be set to on the target
+     * object.
+     * @throws IllegalArgumentException If the propertyName provided is null or empty.
+     */
+    public BeanPropertyValueChangeClosure(String propertyName, Object propertyValue) {
+        this(propertyName, propertyValue, false);
+    }
+
+    /**
+     * Constructor which takes the name of the property to be changed, the new value to set
+     * the property to and a boolean which determines whether <code>null</code> objects in the
+     * property path will genenerate an <code>IllegalArgumentException</code> or not.
+     *
+     * @param propertyName The name of the property that will be updated with the value specified by
+     * <code>propertyValue</code>.
+     * @param propertyValue The value that <code>propertyName</code> will be set to on the target
+     * object.
+     * @param ignoreNull Determines whether <code>null</code> objects in the property path will
+     * genenerate an <code>IllegalArgumentException</code> or not.
+     * @throws IllegalArgumentException If the propertyName provided is null or empty.
+     */
+    public BeanPropertyValueChangeClosure(String propertyName, Object propertyValue, boolean ignoreNull) {
+        super();
+
+        if ((propertyName != null) && (propertyName.length() > 0)) {
+            this.propertyName = propertyName;
+            this.propertyValue = propertyValue;
+            this.ignoreNull = ignoreNull;
+        } else {
+            throw new IllegalArgumentException("propertyName cannot be null or empty");
+        }
+    }
+
+    /**
+     * Updates the target object provided using the property update criteria provided when this
+     * <code>BeanPropertyValueChangeClosure</code> was constructed.  If any object in the property
+     * path leading up to the target property is <code>null</code> then the outcome will be based on
+     * the value of the <code>ignoreNull</code> attribute. By default, <code>ignoreNull</code> is
+     * <code>false</code> and would result in an <code>IllegalArgumentException</code> if an object
+     * in the property path leading up to the target property is <code>null</code>.
+     *
+     * @param object The object to be updated.
+     * @throws IllegalArgumentException If an IllegalAccessException, InvocationTargetException, or
+     * NoSuchMethodException is thrown when trying to access the property specified on the object
+     * provided. Or if an object in the property path provided is <code>null</code> and
+     * <code>ignoreNull</code> is set to <code>false</code>.
+     */
+    public void execute(Object object) {
+       
+        try {
+            PropertyUtils.setProperty(object, propertyName, propertyValue);
+        } catch (IllegalArgumentException e) {
+            final String errorMsg = "Unable to execute Closure. Null value encountered in property path...";
+
+            if (ignoreNull) {
+                log.warn("WARNING: " + errorMsg, e);
+            } else {
+                log.error("ERROR: " + errorMsg, e);
+                throw e;
+            }
+        } catch (IllegalAccessException e) {
+            final String errorMsg = "Unable to access the property provided.";
+            log.error(errorMsg, e);
+            throw new IllegalArgumentException(errorMsg);
+        } catch (InvocationTargetException e) {
+            final String errorMsg = "Exception occurred in property's getter";
+            log.error(errorMsg, e);
+            throw new IllegalArgumentException(errorMsg);
+        } catch (NoSuchMethodException e) {
+            final String errorMsg = "Property not found";
+            log.error(errorMsg, e);
+            throw new IllegalArgumentException(errorMsg);
+        }
+    }
+
+    /**
+     * Returns the name of the property which will be updated when this <code>Closure</code> executes.
+     *
+     * @return The name of the property which will be updated when this <code>Closure</code> executes.
+     */
+    public String getPropertyName() {
+        return propertyName;
+    }
+
+    /**
+     * Returns the value that the property specified by <code>propertyName</code>
+     * will be updated to when this <code>Closure</code> executes.
+     *
+     * @return The value that the property specified by <code>propertyName</code>
+     * will be updated to when this <code>Closure</code> executes.
+     */
+    public Object getPropertyValue() {
+        return propertyValue;
+    }
+
+    /**
+     * Returns the flag that determines whether <code>null</code> objects in the property path will
+     * genenerate an <code>IllegalArgumentException</code> or not. If set to <code>true</code> then
+     * if any objects in the property path leading up to the target property evaluate to
+     * <code>null</code> then the <code>IllegalArgumentException</code> throw by
+     * <code>PropertyUtils</code> will be logged but not rethrown.  If set to <code>false</code> then
+     * if any objects in the property path leading up to the target property evaluate to
+     * <code>null</code> then the <code>IllegalArgumentException</code> throw by
+     * <code>PropertyUtils</code> will be logged and rethrown.
+     *
+     * @return The flag that determines whether <code>null</code> objects in the property path will
+     * genenerate an <code>IllegalArgumentException</code> or not.
+     */
+    public boolean isIgnoreNull() {
+        return ignoreNull;
+    }
+}

Propchange: jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/java/org/apache/commons/beanutils/BeanPropertyValueChangeClosure.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL

Modified: jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/java/org/apache/commons/beanutils/BeanPropertyValueEqualsPredicate.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/java/org/apache/commons/beanutils/BeanPropertyValueEqualsPredicate.java?view=diff&r1=155400&r2=155401
==============================================================================
--- jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/java/org/apache/commons/beanutils/BeanPropertyValueEqualsPredicate.java (original)
+++ jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/java/org/apache/commons/beanutils/BeanPropertyValueEqualsPredicate.java Sat Feb 26 04:51:00 2005
@@ -12,264 +12,264 @@
  * 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.commons.beanutils;
-
-import org.apache.commons.collections.Predicate;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-
-import java.lang.reflect.InvocationTargetException;
-
-
-/**
- * <p><code>Predicate</code> that evaluates a property value against a specified value.</p>
- * <p>
- * An implementation of <code>org.apache.commons.collections.Predicate</code> that evaluates a
- * property value on the object provided against a specified value and returns <code>true</code>
- * if equal; <code>false</code> otherwise.
- * The <code>BeanPropertyValueEqualsPredicate</code> constructor takes two parameters which
- * determine what property will be evaluated on the target object and what its expected value should
- * be.
- * <dl>
- *    <dt>
- *       <strong><code><pre>public BeanPropertyValueEqualsPredicate( String propertyName, Object propertyValue )</pre></code></strong>
- *    </dt>
- *    <dd>
- *       Will create a <code>Predicate</code> that will evaluate the target object and return
- *       <code>true</code> if the property specified by <code>propertyName</code> has a value which
- *       is equal to the the value specified by <code>propertyValue</code>. Or return
- *       <code>false</code> otherwise.
- *    </dd>
- * </dl>
- * </p>
- * <p>
- * <strong>Note:</strong> Property names can be a simple, nested, indexed, or mapped property as defined by
- * <code>org.apache.commons.beanutils.PropertyUtils</code>.  If any object in the property path
- * specified by <code>propertyName</code> is <code>null</code> then the outcome is based on the
- * value of the <code>ignoreNull</code> attribute.
- * </p>
- * <p>
- * A typical usage might look like:
- * <code><pre>
- * // create the closure
- * BeanPropertyValueEqualsPredicate predicate =
- *    new BeanPropertyValueEqualsPredicate( "activeEmployee", Boolean.FALSE );
- *
- * // filter the Collection
- * CollectionUtils.filter( peopleCollection, predicate );
- * </pre></code>
- * </p>
- * <p>
- * This would take a <code>Collection</code> of person objects and filter out any people whose
- * <code>activeEmployee</code> property is <code>false</code>. Assuming...
- * <ul>
- *    <li>
- *       The top level object in the <code>peeopleCollection</code> is an object which represents a
- *       person.
- *    </li>
- *    <li>
- *       The person object has a <code>getActiveEmployee()</code> method which returns
- *       the boolean value for the object's <code>activeEmployee</code> property.
- *    </li>
- * </ul>
- * </p>
- * <p>
- * Another typical usage might look like:
- * <code><pre>
- * // create the closure
- * BeanPropertyValueEqualsPredicate predicate =
- *    new BeanPropertyValueEqualsPredicate( "personId", "456-12-1234" );
- *
- * // search the Collection
- * CollectionUtils.find( peopleCollection, predicate );
- * </pre><code>
- * </p>
- * <p>
- * This would search a <code>Collection</code> of person objects and return the first object whose
- * <code>personId</code> property value equals <code>456-12-1234</code>. Assuming...
- * <ul>
- *    <li>
- *       The top level object in the <code>peeopleCollection</code> is an object which represents a
- *       person.
- *    </li>
- *    <li>
- *       The person object has a <code>getPersonId()</code> method which returns
- *       the value for the object's <code>personId</code> property.
- *    </li>
- * </ul>
- * </p>
- *
- * @author Norm Deane
- * @see org.apache.commons.beanutils.PropertyUtils
- * @see org.apache.commons.collections.Predicate
- */
-public class BeanPropertyValueEqualsPredicate implements Predicate {
-   
-    /** For logging. */
-    private final Log log = LogFactory.getLog(this.getClass());
-
-    /**
-     * The name of the property which will be evaluated when this <code>Predicate</code> is executed.
-     */
-    private String propertyName;
-
-    /**
-     * The value that the property specified by <code>propertyName</code>
-     * will be compared to when this <code>Predicate</code> executes.
-     */
-    private Object propertyValue;
-
-    /**
-     * <p>Should <code>null</code> objects in the property path be ignored?</p>
-     * <p>
-     * Determines whether <code>null</code> objects in the property path will genenerate an
-     * <code>IllegalArgumentException</code> or not. If set to <code>true</code> then if any objects
-     * in the property path evaluate to <code>null</code> then the
-     * <code>IllegalArgumentException</code> throw by <code>PropertyUtils</code> will be logged but
-     * not rethrown and <code>false</code> will be returned.  If set to <code>false</code> then if
-     * any objects in the property path evaluate to <code>null</code> then the
-     * <code>IllegalArgumentException</code> throw by <code>PropertyUtils</code> will be logged and
-     * rethrown.
-     * </p>
-     */
-    private boolean ignoreNull;
-
-    /**
-     * Constructor which takes the name of the property, its expected value to be used in evaluation,
-     * and assumes <code>ignoreNull</code> to be <code>false</code>.
-     *
-     * @param propertyName The name of the property that will be evaluated against the expected value.
-     * @param propertyValue The value to use in object evaluation.
-     * @throws IllegalArgumentException If the property name provided is null or empty.
-     */
-    public BeanPropertyValueEqualsPredicate(String propertyName, Object propertyValue) {
-        this(propertyName, propertyValue, false);
-    }
-
-    /**
-     * Constructor which takes the name of the property, its expected value
-     * to be used in evaluation, and a boolean which determines whether <code>null</code> objects in
-     * the property path will genenerate an <code>IllegalArgumentException</code> or not.
-     *
-     * @param propertyName The name of the property that will be evaluated against the expected value.
-     * @param propertyValue The value to use in object evaluation.
-     * @param ignoreNull Determines whether <code>null</code> objects in the property path will
-     * genenerate an <code>IllegalArgumentException</code> or not.
-     * @throws IllegalArgumentException If the property name provided is null or empty.
-     */
-    public BeanPropertyValueEqualsPredicate(String propertyName, Object propertyValue, boolean ignoreNull) {
-        super();
-
-        if ((propertyName != null) && (propertyName.length() > 0)) {
-            this.propertyName = propertyName;
-            this.propertyValue = propertyValue;
-            this.ignoreNull = ignoreNull;
-        } else {
-            throw new IllegalArgumentException("propertyName cannot be null or empty");
-        }
-    }
-
-    /**
-     * Evaulates the object provided against the criteria specified when this
-     * <code>BeanPropertyValueEqualsPredicate</code> was constructed.  Equality is based on
-     * either reference or logical equality as defined by the property object's equals method. If
-     * any object in the property path leading up to the target property is <code>null</code> then
-     * the outcome will be based on the value of the <code>ignoreNull</code> attribute. By default,
-     * <code>ignoreNull</code> is <code>false</code> and would result in an
-     * <code>IllegalArgumentException</code> if an object in the property path leading up to the
-     * target property is <code>null</code>.
-     *
-     * @param object The object to be evaluated.
-     * @return True if the object provided meets all the criteria for this <code>Predicate</code>;
-     * false otherwise.
-     * @throws IllegalArgumentException If an IllegalAccessException, InvocationTargetException, or
-     * NoSuchMethodException is thrown when trying to access the property specified on the object
-     * provided. Or if an object in the property path provided is <code>null</code> and
-     * <code>ignoreNull</code> is set to <code>false</code>.
-     */
-    public boolean evaluate(Object object) {
-       
-        boolean evaluation = false;
-
-        try {
-            evaluation = evaluateValue(propertyValue,
-                    PropertyUtils.getProperty(object, propertyName));
-        } catch (IllegalArgumentException e) {
-            final String errorMsg = "Problem during evaluation. Null value encountered in property path...";
-
-            if (ignoreNull) {
-                log.warn("WARNING: " + errorMsg, e);
-            } else {
-                log.error("ERROR: " + errorMsg, e);
-                throw e;
-            }
-        } catch (IllegalAccessException e) {
-            final String errorMsg = "Unable to access the property provided.";
-            log.error(errorMsg, e);
-            throw new IllegalArgumentException(errorMsg);
-        } catch (InvocationTargetException e) {
-            final String errorMsg = "Exception occurred in property's getter";
-            log.error(errorMsg, e);
-            throw new IllegalArgumentException(errorMsg);
-        } catch (NoSuchMethodException e) {
-            final String errorMsg = "Property not found.";
-            log.error(errorMsg, e);
-            throw new IllegalArgumentException(errorMsg);
-        }
-
-        return evaluation;
-    }
-
-    /**
-     * Utility method which evaluates whether the actual property value equals the expected property
-     * value.
-     *
-     * @param expected The expected value.
-     * @param actual The actual value.
-     * @return True if they are equal; false otherwise.
-     */
-    private boolean evaluateValue(Object expected, Object actual) {
-        return (expected == actual) || ((expected != null) && expected.equals(actual));
-    }
-
-    /**
-     * Returns the name of the property which will be evaluated when this <code>Predicate</code> is
-     * executed.
-     *
-     * @return The name of the property which will be evaluated when this <code>Predicate</code> is
-     * executed.
-     */
-    public String getPropertyName() {
-        return propertyName;
-    }
-
-    /**
-     * Returns the value that the property specified by <code>propertyName</code> will be compared to
-     * when this <code>Predicate</code> executes.
-     *
-     * @return The value that the property specified by <code>propertyName</code> will be compared to
-     * when this <code>Predicate</code> executes.
-     */
-    public Object getPropertyValue() {
-        return propertyValue;
-    }
-
-    /**
-     * Returns the flag which determines whether <code>null</code> objects in the property path will
-     * genenerate an <code>IllegalArgumentException</code> or not. If set to <code>true</code> then
-     * if any objects in the property path evaluate to <code>null</code> then the
-     * <code>IllegalArgumentException</code> throw by <code>PropertyUtils</code> will be logged but
-     * not rethrown and <code>false</code> will be returned.  If set to <code>false</code> then if
-     * any objects in the property path evaluate to <code>null</code> then the
-     * <code>IllegalArgumentException</code> throw by <code>PropertyUtils</code> will be logged and
-     * rethrown.
-     *
-     * @return The flag which determines whether <code>null</code> objects in the property path will
-     * genenerate an <code>IllegalArgumentException</code> or not.
-     */
-    public boolean isIgnoreNull() {
-        return ignoreNull;
-    }
-}
+ */ 
+ 
+package org.apache.commons.beanutils;
+
+import org.apache.commons.collections.Predicate;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+import java.lang.reflect.InvocationTargetException;
+
+
+/**
+ * <p><code>Predicate</code> that evaluates a property value against a specified value.</p>
+ * <p>
+ * An implementation of <code>org.apache.commons.collections.Predicate</code> that evaluates a
+ * property value on the object provided against a specified value and returns <code>true</code>
+ * if equal; <code>false</code> otherwise.
+ * The <code>BeanPropertyValueEqualsPredicate</code> constructor takes two parameters which
+ * determine what property will be evaluated on the target object and what its expected value should
+ * be.
+ * <dl>
+ *    <dt>
+ *       <strong><code><pre>public BeanPropertyValueEqualsPredicate( String propertyName, Object propertyValue )</pre></code></strong>
+ *    </dt>
+ *    <dd>
+ *       Will create a <code>Predicate</code> that will evaluate the target object and return
+ *       <code>true</code> if the property specified by <code>propertyName</code> has a value which
+ *       is equal to the the value specified by <code>propertyValue</code>. Or return
+ *       <code>false</code> otherwise.
+ *    </dd>
+ * </dl>
+ * </p>
+ * <p>
+ * <strong>Note:</strong> Property names can be a simple, nested, indexed, or mapped property as defined by
+ * <code>org.apache.commons.beanutils.PropertyUtils</code>.  If any object in the property path
+ * specified by <code>propertyName</code> is <code>null</code> then the outcome is based on the
+ * value of the <code>ignoreNull</code> attribute.
+ * </p>
+ * <p>
+ * A typical usage might look like:
+ * <code><pre>
+ * // create the closure
+ * BeanPropertyValueEqualsPredicate predicate =
+ *    new BeanPropertyValueEqualsPredicate( "activeEmployee", Boolean.FALSE );
+ *
+ * // filter the Collection
+ * CollectionUtils.filter( peopleCollection, predicate );
+ * </pre></code>
+ * </p>
+ * <p>
+ * This would take a <code>Collection</code> of person objects and filter out any people whose
+ * <code>activeEmployee</code> property is <code>false</code>. Assuming...
+ * <ul>
+ *    <li>
+ *       The top level object in the <code>peeopleCollection</code> is an object which represents a
+ *       person.
+ *    </li>
+ *    <li>
+ *       The person object has a <code>getActiveEmployee()</code> method which returns
+ *       the boolean value for the object's <code>activeEmployee</code> property.
+ *    </li>
+ * </ul>
+ * </p>
+ * <p>
+ * Another typical usage might look like:
+ * <code><pre>
+ * // create the closure
+ * BeanPropertyValueEqualsPredicate predicate =
+ *    new BeanPropertyValueEqualsPredicate( "personId", "456-12-1234" );
+ *
+ * // search the Collection
+ * CollectionUtils.find( peopleCollection, predicate );
+ * </pre><code>
+ * </p>
+ * <p>
+ * This would search a <code>Collection</code> of person objects and return the first object whose
+ * <code>personId</code> property value equals <code>456-12-1234</code>. Assuming...
+ * <ul>
+ *    <li>
+ *       The top level object in the <code>peeopleCollection</code> is an object which represents a
+ *       person.
+ *    </li>
+ *    <li>
+ *       The person object has a <code>getPersonId()</code> method which returns
+ *       the value for the object's <code>personId</code> property.
+ *    </li>
+ * </ul>
+ * </p>
+ *
+ * @author Norm Deane
+ * @see org.apache.commons.beanutils.PropertyUtils
+ * @see org.apache.commons.collections.Predicate
+ */
+public class BeanPropertyValueEqualsPredicate implements Predicate {
+   
+    /** For logging. */
+    private final Log log = LogFactory.getLog(this.getClass());
+
+    /**
+     * The name of the property which will be evaluated when this <code>Predicate</code> is executed.
+     */
+    private String propertyName;
+
+    /**
+     * The value that the property specified by <code>propertyName</code>
+     * will be compared to when this <code>Predicate</code> executes.
+     */
+    private Object propertyValue;
+
+    /**
+     * <p>Should <code>null</code> objects in the property path be ignored?</p>
+     * <p>
+     * Determines whether <code>null</code> objects in the property path will genenerate an
+     * <code>IllegalArgumentException</code> or not. If set to <code>true</code> then if any objects
+     * in the property path evaluate to <code>null</code> then the
+     * <code>IllegalArgumentException</code> throw by <code>PropertyUtils</code> will be logged but
+     * not rethrown and <code>false</code> will be returned.  If set to <code>false</code> then if
+     * any objects in the property path evaluate to <code>null</code> then the
+     * <code>IllegalArgumentException</code> throw by <code>PropertyUtils</code> will be logged and
+     * rethrown.
+     * </p>
+     */
+    private boolean ignoreNull;
+
+    /**
+     * Constructor which takes the name of the property, its expected value to be used in evaluation,
+     * and assumes <code>ignoreNull</code> to be <code>false</code>.
+     *
+     * @param propertyName The name of the property that will be evaluated against the expected value.
+     * @param propertyValue The value to use in object evaluation.
+     * @throws IllegalArgumentException If the property name provided is null or empty.
+     */
+    public BeanPropertyValueEqualsPredicate(String propertyName, Object propertyValue) {
+        this(propertyName, propertyValue, false);
+    }
+
+    /**
+     * Constructor which takes the name of the property, its expected value
+     * to be used in evaluation, and a boolean which determines whether <code>null</code> objects in
+     * the property path will genenerate an <code>IllegalArgumentException</code> or not.
+     *
+     * @param propertyName The name of the property that will be evaluated against the expected value.
+     * @param propertyValue The value to use in object evaluation.
+     * @param ignoreNull Determines whether <code>null</code> objects in the property path will
+     * genenerate an <code>IllegalArgumentException</code> or not.
+     * @throws IllegalArgumentException If the property name provided is null or empty.
+     */
+    public BeanPropertyValueEqualsPredicate(String propertyName, Object propertyValue, boolean ignoreNull) {
+        super();
+
+        if ((propertyName != null) && (propertyName.length() > 0)) {
+            this.propertyName = propertyName;
+            this.propertyValue = propertyValue;
+            this.ignoreNull = ignoreNull;
+        } else {
+            throw new IllegalArgumentException("propertyName cannot be null or empty");
+        }
+    }
+
+    /**
+     * Evaulates the object provided against the criteria specified when this
+     * <code>BeanPropertyValueEqualsPredicate</code> was constructed.  Equality is based on
+     * either reference or logical equality as defined by the property object's equals method. If
+     * any object in the property path leading up to the target property is <code>null</code> then
+     * the outcome will be based on the value of the <code>ignoreNull</code> attribute. By default,
+     * <code>ignoreNull</code> is <code>false</code> and would result in an
+     * <code>IllegalArgumentException</code> if an object in the property path leading up to the
+     * target property is <code>null</code>.
+     *
+     * @param object The object to be evaluated.
+     * @return True if the object provided meets all the criteria for this <code>Predicate</code>;
+     * false otherwise.
+     * @throws IllegalArgumentException If an IllegalAccessException, InvocationTargetException, or
+     * NoSuchMethodException is thrown when trying to access the property specified on the object
+     * provided. Or if an object in the property path provided is <code>null</code> and
+     * <code>ignoreNull</code> is set to <code>false</code>.
+     */
+    public boolean evaluate(Object object) {
+       
+        boolean evaluation = false;
+
+        try {
+            evaluation = evaluateValue(propertyValue,
+                    PropertyUtils.getProperty(object, propertyName));
+        } catch (IllegalArgumentException e) {
+            final String errorMsg = "Problem during evaluation. Null value encountered in property path...";
+
+            if (ignoreNull) {
+                log.warn("WARNING: " + errorMsg, e);
+            } else {
+                log.error("ERROR: " + errorMsg, e);
+                throw e;
+            }
+        } catch (IllegalAccessException e) {
+            final String errorMsg = "Unable to access the property provided.";
+            log.error(errorMsg, e);
+            throw new IllegalArgumentException(errorMsg);
+        } catch (InvocationTargetException e) {
+            final String errorMsg = "Exception occurred in property's getter";
+            log.error(errorMsg, e);
+            throw new IllegalArgumentException(errorMsg);
+        } catch (NoSuchMethodException e) {
+            final String errorMsg = "Property not found.";
+            log.error(errorMsg, e);
+            throw new IllegalArgumentException(errorMsg);
+        }
+
+        return evaluation;
+    }
+
+    /**
+     * Utility method which evaluates whether the actual property value equals the expected property
+     * value.
+     *
+     * @param expected The expected value.
+     * @param actual The actual value.
+     * @return True if they are equal; false otherwise.
+     */
+    private boolean evaluateValue(Object expected, Object actual) {
+        return (expected == actual) || ((expected != null) && expected.equals(actual));
+    }
+
+    /**
+     * Returns the name of the property which will be evaluated when this <code>Predicate</code> is
+     * executed.
+     *
+     * @return The name of the property which will be evaluated when this <code>Predicate</code> is
+     * executed.
+     */
+    public String getPropertyName() {
+        return propertyName;
+    }
+
+    /**
+     * Returns the value that the property specified by <code>propertyName</code> will be compared to
+     * when this <code>Predicate</code> executes.
+     *
+     * @return The value that the property specified by <code>propertyName</code> will be compared to
+     * when this <code>Predicate</code> executes.
+     */
+    public Object getPropertyValue() {
+        return propertyValue;
+    }
+
+    /**
+     * Returns the flag which determines whether <code>null</code> objects in the property path will
+     * genenerate an <code>IllegalArgumentException</code> or not. If set to <code>true</code> then
+     * if any objects in the property path evaluate to <code>null</code> then the
+     * <code>IllegalArgumentException</code> throw by <code>PropertyUtils</code> will be logged but
+     * not rethrown and <code>false</code> will be returned.  If set to <code>false</code> then if
+     * any objects in the property path evaluate to <code>null</code> then the
+     * <code>IllegalArgumentException</code> throw by <code>PropertyUtils</code> will be logged and
+     * rethrown.
+     *
+     * @return The flag which determines whether <code>null</code> objects in the property path will
+     * genenerate an <code>IllegalArgumentException</code> or not.
+     */
+    public boolean isIgnoreNull() {
+        return ignoreNull;
+    }
+}

Propchange: jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/java/org/apache/commons/beanutils/BeanPropertyValueEqualsPredicate.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message