public void assertOneOrLess ( final String propertyName , final PropertyList properties ) throws ValidationException { if ( properties . getProperties ( propertyName ) . size ( ) > 1 ) { throw new ValidationException ( ASSERT_ONE_OR_LESS_MESSAGE , new Object [ ] { propertyName } ) ; } }
Ensure a property occurs no more than once .