public void assertOne ( final String paramName , final ParameterList parameters ) throws ValidationException { if ( parameters . getParameters ( paramName ) . size ( ) != 1 ) { throw new ValidationException ( ASSERT_ONE_MESSAGE , new Object [ ] { paramName } ) ; } }
Ensure a parameter occurs once .