Changeset 1078
- Timestamp:
- 07/10/08 12:39:08 (4 years ago)
- Location:
- trunk/src/xml/xsl
- Files:
-
- 2 modified
-
generate-log-message-info.xsl (modified) (22 diffs)
-
libcommon.xsl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/xml/xsl/generate-log-message-info.xsl
r1058 r1078 214 214 215 215 /** 216 * Exception thrown when a <xsl:value-of select="$display-name"/> occurred. 216 * <xsl:value-of select="$message/description"/> 217 * 218 * <xsl:value-of select="$message/text"/> 217 219 * 218 220 * This exception encapsulates the log message … … 232 234 233 235 /** 234 * Constructs a <xsl:value-of select="$display-name"/> exception with a <tt>cause</tt>.<xsl:call-template236 * Constructs a <xsl:value-of select="$display-name"/> exception with a <tt>cause</tt>.<xsl:call-template 235 237 name="inner-clazz-log-parameter-javadoc"> 236 238 <xsl:with-param name="tokens" select="$tokens"/> … … 256 258 257 259 /** 258 * Constructs a <xsl:value-of select="$display-name"/> exception with a <tt>cause</tt>.<xsl:call-template260 * Constructs a <xsl:value-of select="$display-name"/> exception with a <tt>cause</tt>.<xsl:call-template 259 261 name="inner-clazz-log-parameter-javadoc"> 260 262 <xsl:with-param name="tokens" select="$tokens"/> … … 280 282 /** 281 283 * Constructor getting an log message info. 284 * This constructor is for generated exceptions internal use only. 282 285 * 283 286 * @param messageInfo the log message info for this exception … … 295 298 /** 296 299 * Constructor getting an log message info and a root exception. 300 * This constructor is for generated exceptions internal use only. 297 301 * 298 302 * @param messageInfo the log message info for this exception … … 312 316 /** 313 317 * Logs the exception 314 * <tt>"<xsl:value-of select="normalize-space($message/text)"/>"</tt>318 * <tt>"<xsl:value-of select="normalize-space($message/text)"/>"</tt> 315 319 * to the custom logger. 316 320 * @param logger the custom logger to log to. … … 368 372 369 373 /** 370 * Exception thrown when a <xsl:value-of select="$display-name"/> occurred.371 *372 374 * This is the base exception for all message in 373 375 * the package {@link <xsl:value-of select="$package"/>}. … … 383 385 /** 384 386 * Constructor getting an log message info. 387 * This constructor is for generated exceptions internal use only. 385 388 * 386 389 * @param messageInfo the log message info for this exception … … 393 396 /** 394 397 * Constructor getting an log message info and a root exception. 398 * This constructor is for generated exceptions internal use only. 395 399 * 396 400 * @param messageInfo the log message info for this exception … … 428 432 429 433 /** 430 * Enumeration of all <xsl:value-of select="$group/@name"/> .434 * Enumeration of all <xsl:value-of select="$group/@name"/> log messages. 431 435 * 432 * Instances of this class are immutable.436 * <p>Instances of this class are immutable.</p> 433 437 * 434 438 * The following <xsl:value-of select="$group/@name"/> are defined: … … 446 450 447 451 /** 448 * Constructor.452 * Private constructor used by the inner classes. 449 453 * @param symbol The symbolic name of the log message. 450 454 * @param id The unique numeric id of the log message. … … 474 478 </xsl:call-template> 475 479 </xsl:variable> 476 /** The log message <code><xsl:value-of select="./@name"/></code>. */ 480 /** 481 <xsl:choose> 482 <xsl:when test="description"> 483 <xsl:value-of select="normalize-space(description)"/> 484 </xsl:when> 485 <xsl:when test="text"> 486 <xsl:value-of select="normalize-space(text)"/> 487 </xsl:when> 488 </xsl:choose> 489 * . 490 * <p>This class holds the static data for the <code><xsl:value-of select="./@name"/></code> 491 * log message.</p> 492 * <p>It holds the following parameters:</p> 493 * <ul> 494 * <xsl:if test="text"> 495 <li>Message: <xsl:value-of select="normalize-space(text)"/></li> 496 </xsl:if> 497 <xsl:if test="description"> 498 <li>Description: <xsl:value-of select="normalize-space(description)"/></li> 499 </xsl:if> 500 <xsl:if test="solution"> 501 <li>Solution <xsl:value-of select="normalize-space(solution)"/></li> 502 </xsl:if> 503 <xsl:if test="procedure"> 504 <li>Procedure <xsl:value-of select="normalize-space(procedure)"/></li> 505 </xsl:if> 506 <xsl:if test="verification"> 507 <li>Verification <xsl:value-of select="normalize-space(verification)"/></li> 508 </xsl:if> 509 * </ul> 510 */ 477 511 public static final class <xsl:value-of select="$inner-classname"/> 478 512 extends <xsl:value-of select="$classname"/> … … 492 526 </xsl:call-template> 493 527 </xsl:variable> 494 /** The log message <code><xsl:value-of select="./@name"/></code>. */528 /** The log message for thwe event <code><xsl:value-of select="./@name"/></code>. */ 495 529 public static final <xsl:value-of select="$inner-classname"/><xsl:text> </xsl:text><xsl:value-of select="./@name"/> 496 530 = new <xsl:value-of select="$inner-classname"/>(); … … 695 729 /** 696 730 * Logs the message 697 * <tt>"<xsl:value-of select="normalize-space($message/text)"/>"</tt>731 * <tt>"<xsl:value-of select="normalize-space($message/text)"/>"</tt> 698 732 * with the given parameters.<xsl:call-template 699 733 name="inner-clazz-log-parameter-javadoc"> … … 724 758 /** 725 759 * Logs the message 726 * <tt>"<xsl:value-of select="normalize-space($message/text)"/>"</tt>760 * <tt>"<xsl:value-of select="normalize-space($message/text)"/>"</tt> 727 761 * with the given parameters.<xsl:call-template 728 762 name="inner-clazz-log-parameter-javadoc"> … … 756 790 /** 757 791 * Logs the message 758 * <tt>"<xsl:value-of select="normalize-space($message/text)"/>"</tt>792 * <tt>"<xsl:value-of select="normalize-space($message/text)"/>"</tt> 759 793 * with the given parameters to the custom logger. 760 794 * @param logger the custom logger to log to.<xsl:call-template … … 764 798 </xsl:call-template> 765 799 */ 766 public static void log (<xsl:value-of select="$custom-logger-class"/> logger<xsl:if 767 test="$isAudit or normalize-space($tokens)">, <xsl:call-template800 public static void log (<xsl:value-of select="$custom-logger-class"/> logger<xsl:if 801 test="$isAudit or normalize-space($tokens)">, <xsl:call-template 768 802 name="inner-clazz-log-parameter-list"> 769 803 <xsl:with-param name="tokens" select="$tokens"/> … … 795 829 /** 796 830 * Logs the message 797 * <tt>"<xsl:value-of select="normalize-space($message/text)"/>"</tt>831 * <tt>"<xsl:value-of select="normalize-space($message/text)"/>"</tt> 798 832 * with the given parameters to the custom logger. 799 833 * @param logger the custom logger to log to.<xsl:call-template … … 804 838 * @param cause the Throwable that causes this message to be logged. 805 839 */ 806 public static void log (<xsl:value-of select="$custom-logger-class"/> logger<xsl:if 807 test="$isAudit or normalize-space($tokens)">, <xsl:call-template840 public static void log (<xsl:value-of select="$custom-logger-class"/> logger<xsl:if 841 test="$isAudit or normalize-space($tokens)">, <xsl:call-template 808 842 name="inner-clazz-log-parameter-list"> 809 843 <xsl:with-param name="tokens" select="$tokens"/> 810 844 <xsl:with-param name="isAudit" select="$isAudit"/> 811 </xsl:call-template></xsl:if>, 845 </xsl:call-template></xsl:if>, 812 846 Throwable cause 813 847 ) … … 842 876 /** 843 877 * Creates the audit log event 844 * <tt>"<xsl:value-of select="normalize-space($message/text)"/>"</tt>878 * <tt>"<xsl:value-of select="normalize-space($message/text)"/>"</tt> 845 879 * with the given parameters.<xsl:call-template 846 880 name="inner-clazz-log-parameter-javadoc"> … … 871 905 /** 872 906 * Creates the audit log event 873 * <tt>"<xsl:value-of select="normalize-space($message/text)"/>"</tt>907 * <tt>"<xsl:value-of select="normalize-space($message/text)"/>"</tt> 874 908 * with the given parameters.<xsl:call-template 875 909 name="inner-clazz-log-parameter-javadoc"> … … 903 937 904 938 /** 905 * Adds the given message parameters to the <tt>loggable</tt>.939 * Adds the given message parameters to the <tt>loggable</tt>. 906 940 * @param loggable the loggable to initialize. <xsl:call-template 907 941 name="inner-clazz-log-parameter-javadoc"> 908 942 <xsl:with-param name="tokens" select="$tokens"/> 909 943 </xsl:call-template> 910 * @return the given initialized <tt>loggable</tt>.944 * @return the given initialized <tt>loggable</tt>. 911 945 */ 912 946 public static Loggable addParameters (Loggable loggable<xsl:if -
trunk/src/xml/xsl/libcommon.xsl
r1076 r1078 1817 1817 1818 1818 /** 1819 * Translates a <tt>BigDecimal</tt> value into a1820 * <tt><xsl:value-of select="$classname"/></tt>.1819 * Translates a <tt>BigDecimal</tt> value into a 1820 * <tt><xsl:value-of select="$classname"/></tt>. 1821 1821 * 1822 * @param bd the <tt>BigDecimal</tt>.1823 * @return a <tt><xsl:value-of select="$classname"/></tt> whose value is equal1822 * @param bd the <tt>BigDecimal</tt>. 1823 * @return a <tt><xsl:value-of select="$classname"/></tt> whose value is equal 1824 1824 * to bd. 1825 1825 * @throws ArgumentMalformedException If the given 1826 * <tt>BigDecimal</tt> violates the restriction1826 * <tt>BigDecimal</tt> violates the restriction 1827 1827 * of the <xsl:value-of select="$classname"/> type. 1828 1828 */ … … 1841 1841 1842 1842 /** 1843 * Translates a <tt>long</tt> value into a1844 * <tt><xsl:value-of select="$classname"/></tt>.1843 * Translates a <tt>long</tt> value into a 1844 * <tt><xsl:value-of select="$classname"/></tt>. 1845 1845 * 1846 * @param val the <tt>long</tt>.1847 * @return a <tt><xsl:value-of select="$classname"/></tt> whose value is equal1846 * @param val the <tt>long</tt>. 1847 * @return a <tt><xsl:value-of select="$classname"/></tt> whose value is equal 1848 1848 * to the given long. 1849 1849 * @throws ArgumentMalformedException If the given 1850 * <tt>long</tt> violates the restriction1850 * <tt>long</tt> violates the restriction 1851 1851 * of the <xsl:value-of select="$classname"/> type. 1852 1852 * @see BigDecimal#valueOf(long) … … 1870 1870 1871 1871 /** 1872 * Translates a <tt>long</tt> with the given scale into a1873 * <tt><xsl:value-of select="$classname"/></tt>.1872 * Translates a <tt>long</tt> with the given scale into a 1873 * <tt><xsl:value-of select="$classname"/></tt>. 1874 1874 * 1875 1875 * @param unscaledVal the unscaled value. 1876 1876 * @param scale the scale to be applied. 1877 * @return a <tt><xsl:value-of select="$classname"/></tt> whose value is1878 * <tt>(unscaledVal &times; 10<sup>-scale</sup>)</tt>.1877 * @return a <tt><xsl:value-of select="$classname"/></tt> whose value is 1878 * <tt>(unscaledVal &times; 10<sup>-scale</sup>)</tt>. 1879 1879 * @throws ArgumentMalformedException If the given 1880 1880 * long and scale violates the restriction
