|
162 | 162 | protected void validate<xsl:value-of select="$javaName"/>(<xsl:value-of select="$propertyType"/> param){ |
163 | 163 | <xsl:if test="not(@unbound) and @array"> |
164 | 164 | if ((param != null) && (param.length > <xsl:value-of select="@maxOccurs"/>)){ |
165 | | - throw new java.lang.RuntimeException("Input values do not follow defined XSD restrictions"); |
| 165 | + throw new java.lang.RuntimeException("Input values do not follow defined XSD restrictions, not unbound and array found XSL condition 'param != null' and param.length greater than maxOccurs"); |
166 | 166 | } |
167 | 167 | </xsl:if> |
168 | 168 | <xsl:if test="$min!=0 and @array"> |
169 | 169 | if ((param != null) && (param.length < <xsl:value-of select="$min"/>)){ |
170 | | - throw new java.lang.RuntimeException("Input values do not follow defined XSD restrictions"); |
| 170 | + throw new java.lang.RuntimeException("Input values do not follow defined XSD restrictions, min!=0 and array found XSL condition 'param != null' and param.length less than min"); |
171 | 171 | } |
172 | 172 | </xsl:if> |
173 | 173 | } |
|
334 | 334 | protected void validate<xsl:value-of select="$javaName"/>(<xsl:value-of select="$propertyType"/> param){ |
335 | 335 | <xsl:if test="not(@unbound)"> |
336 | 336 | if ((param != null) && (param.length > <xsl:value-of select="@maxOccurs"/>)){ |
337 | | - throw new java.lang.RuntimeException("Input values do not follow defined XSD restrictions"); |
| 337 | + throw new java.lang.RuntimeException("Input values do not follow defined XSD restrictions, not unbound found XSL condition 'param != null' and param.length greater than maxOccurs"); |
338 | 338 | } |
339 | 339 | </xsl:if> |
340 | 340 | <xsl:if test="$min!=0"> |
341 | 341 | if ((param != null) && (param.length < <xsl:value-of select="$min"/>)){ |
342 | | - throw new java.lang.RuntimeException("Input values do not follow defined XSD restrictions"); |
| 342 | + throw new java.lang.RuntimeException("Input values do not follow defined XSD restrictions, min!=0 found XSL condition 'param != null' and param.length less than min"); |
343 | 343 | } |
344 | 344 | </xsl:if> |
345 | 345 | } |
|
463 | 463 |
|
464 | 464 | } |
465 | 465 | else { |
466 | | - throw new java.lang.RuntimeException("Input values do not follow defined XSD restrictions"); |
| 466 | + throw new java.lang.RuntimeException("Input values do not follow defined XSD restrictions, on restrictionBaseType with maxLenFacet and minLenFacet and patternFacet failed XSL 'if' condition 'org.apache.axis2.databinding.utils.ConverterUtil.convertToString(param).matches()'"); |
467 | 467 | } |
468 | 468 | </xsl:when> |
469 | 469 | <xsl:when test="(@patternFacet)"> |
470 | 470 | if (org.apache.axis2.databinding.utils.ConverterUtil.convertToString(param).matches("<xsl:value-of select="$patternFacet"/>")) { |
471 | 471 | this.<xsl:value-of select="$varName"/>=param; |
472 | 472 | } |
473 | 473 | else { |
474 | | - throw new java.lang.RuntimeException("Input values do not follow defined XSD restrictions"); |
| 474 | + throw new java.lang.RuntimeException("Input values do not follow defined XSD restrictions, on restrictionBaseType with patternFacet failed XSL 'if' condition 'org.apache.axis2.databinding.utils.ConverterUtil.convertToString(param).matches(patternFacet)'"); |
475 | 475 | } |
476 | 476 | </xsl:when> |
477 | 477 | <xsl:when test="(@lenFacet)"> |
478 | 478 | if (org.apache.axis2.databinding.utils.ConverterUtil.convertToString(param).length() == <xsl:value-of select="@lenFacet"/> ) { |
479 | 479 | this.<xsl:value-of select="$varName"/>=param; |
480 | 480 | } |
481 | 481 | else { |
482 | | - throw new java.lang.RuntimeException("Input values do not follow defined XSD restrictions"); |
| 482 | + throw new java.lang.RuntimeException("Input values do not follow defined XSD restrictions, on restrictionBaseType with lenFacet failed XSL 'if' condition 'org.apache.axis2.databinding.utils.ConverterUtil.convertToString(param).length() == lenFacet)'"); |
483 | 483 | } |
484 | 484 | </xsl:when> |
485 | 485 | <xsl:when test="(@maxLenFacet) or (@minLenFacet)"> |
|
488 | 488 | this.<xsl:value-of select="$varName"/>=param; |
489 | 489 | } |
490 | 490 | else { |
491 | | - throw new java.lang.RuntimeException("Input values do not follow defined XSD restrictions"); |
| 491 | + throw new java.lang.RuntimeException("Input values do not follow defined XSD restrictions, on restrictionBaseType with maxLenFacet or minLenFacetlen failed XSL 'if' condition 'org.apache.axis2.databinding.utils.ConverterUtil.convertToString(param).length() == maxLenFacet)'"); |
492 | 492 | } |
493 | 493 | </xsl:when> |
494 | 494 | <xsl:when test="(@totalDigitsFacet)"> |
|
497 | 497 | this.<xsl:value-of select="$varName"/>=param; |
498 | 498 | } |
499 | 499 | else { |
500 | | - throw new java.lang.RuntimeException("Input values do not follow defined XSD restrictions"); |
| 500 | + throw new java.lang.RuntimeException("Input values do not follow defined XSD restrictions, on restrictionBaseType with totalDigitsFacet failed XSL 'if' condition 'org.apache.axis2.databinding.utils.ConverterUtil.compare(param, totalDigitsDecimal) less than zero'"); |
501 | 501 | } |
502 | 502 | </xsl:when> |
503 | 503 | <xsl:when test="@maxExFacet or @minExFacet or @maxInFacet or @minInFacet"> |
|
506 | 506 | this.<xsl:value-of select="$varName"/>=param; |
507 | 507 | } |
508 | 508 | else { |
509 | | - throw new java.lang.RuntimeException("Input values do not follow defined XSD restrictions"); |
| 509 | + throw new java.lang.RuntimeException("Input values do not follow defined XSD restrictions, on restrictionBaseType with maxExFacet failed XSL 'if' condition 'org.apache.axis2.databinding.utils.ConverterUtil.compare(param, maxExFacet)' less than zero"); |
510 | 510 | } |
511 | 511 | </xsl:if> |
512 | 512 | <xsl:if test="@minExFacet"> |
513 | 513 | if (org.apache.axis2.databinding.utils.ConverterUtil.compare(param, "<xsl:value-of select="$minExFacet"/>") > 0){ |
514 | 514 | this.<xsl:value-of select="$varName"/>=param; |
515 | 515 | } |
516 | 516 | else { |
517 | | - throw new java.lang.RuntimeException("Input values do not follow defined XSD restrictions"); |
| 517 | + throw new java.lang.RuntimeException("Input values do not follow defined XSD restrictions, on restrictionBaseType with minExFacet failed XSL 'if' condition 'org.apache.axis2.databinding.utils.ConverterUtil.compare(param, minExFacet) greater than zero'"); |
518 | 518 | } |
519 | 519 | </xsl:if> |
520 | 520 | <xsl:if test="@maxInFacet"> |
521 | 521 | if (org.apache.axis2.databinding.utils.ConverterUtil.compare(param, "<xsl:value-of select="$maxInFacet"/>") <= 0){ |
522 | 522 | this.<xsl:value-of select="$varName"/>=param; |
523 | 523 | } |
524 | 524 | else { |
525 | | - throw new java.lang.RuntimeException("Input values do not follow defined XSD restrictions"); |
| 525 | + throw new java.lang.RuntimeException("Input values do not follow defined XSD restrictions, on restrictionBaseType with maxInFacet failed XSL 'if' condition 'org.apache.axis2.databinding.utils.ConverterUtil.compare(param, maxInFacet) less than or equal zero'"); |
526 | 526 | } |
527 | 527 | </xsl:if> |
528 | 528 | <xsl:if test="@minInFacet"> |
529 | 529 | if (org.apache.axis2.databinding.utils.ConverterUtil.compare(param, "<xsl:value-of select="$minInFacet"/>") >= 0){ |
530 | 530 | this.<xsl:value-of select="$varName"/>=param; |
531 | 531 | } |
532 | 532 | else { |
533 | | - throw new java.lang.RuntimeException("Input values do not follow defined XSD restrictions"); |
| 533 | + throw new java.lang.RuntimeException("Input values do not follow defined XSD restrictions, on restrictionBaseType with minInFacet failed XSL 'if' condition 'org.apache.axis2.databinding.utils.ConverterUtil.compare(param, minInFacet) greater than or equal zero'"); |
534 | 534 | } |
535 | 535 | </xsl:if> |
536 | 536 | </xsl:when> |
|
0 commit comments