public void assertOne ( final String propertyName , final PropertyList properties ) throws ValidationException { if ( properties . getProperties ( propertyName ) . size ( ) != 1 ) { throw new ValidationException ( ASSERT_ONE_MESSAGE , new Object [ ] { propertyName } ) ; } }
Ensure a property occurs once .