protected void parseDeclaredParameters ( ) { ItemRuleMap parameterItemRuleMap = getRequestRule ( ) . getParameterItemRuleMap ( ) ; if ( parameterItemRuleMap != null && ! parameterItemRuleMap . isEmpty ( ) ) { ItemEvaluator evaluator = null ; ItemRuleList missingItemRules = null ; for ( ItemRule itemRule : parameterItemRuleMap . values ( ) ) { Token [ ] tokens = itemRule . getTokens ( ) ; if ( tokens != null ) { if ( evaluator == null ) { evaluator = new ItemExpression ( this ) ; } String [ ] values = evaluator . evaluateAsStringArray ( itemRule ) ; String [ ] oldValues = getRequestAdapter ( ) . getParameterValues ( itemRule . getName ( ) ) ; if ( values != oldValues ) { getRequestAdapter ( ) . setParameter ( itemRule . getName ( ) , values ) ; } } if ( itemRule . isMandatory ( ) ) { String [ ] values = getRequestAdapter ( ) . getParameterValues ( itemRule . getName ( ) ) ; if ( values == null ) { if ( missingItemRules == null ) { missingItemRules = new ItemRuleList ( ) ; } missingItemRules . add ( itemRule ) ; } } } if ( missingItemRules != null ) { throw new MissingMandatoryParametersException ( missingItemRules ) ; } } }
Parses the declared parameters .