You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

PropertyConsts-class.html 4.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html>
  3. <head>
  4. <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  5. <title>PropertyConsts Description</title>
  6. <link type="text/css" href="../../../page.css" rel="stylesheet">
  7. </head>
  8. <body marginheight="0" marginwidth="0" topmargin="0" leftmargin="0"
  9. text="#000000" bgcolor="#FFFFFF">
  10. <div class="content">
  11. <h1>PropertyConsts Description</h1>
  12. <p>
  13. <font size="-2">by&nbsp;Peter B. West</font>
  14. </p>
  15. <ul class="minitoc">
  16. <li>
  17. <a href="#N10014">Introduction</a>
  18. </li>
  19. </ul>
  20. <a name="N10014"></a>
  21. <h3>Introduction</h3>
  22. <p>
  23. <a href="javascript:window.top.displayCode(
  24. 'PropertyConsts.html#PropertyConstsClass'
  25. )">This class</a>, and the singleton object which is <a
  26. href="javascript:window.top.displayCode(
  27. 'PropertyConsts.html#pconsts' )">generated by the static
  28. initializer</a>, is essentially a repository of
  29. &lt;property&gt; class instances and the static data from
  30. those classes of <span
  31. class="codefrag">org.apache.fop.fo.property</span>.
  32. The heart of this class is the method <a href=
  33. "javascript:window.top.displayCode(
  34. 'PropertyConsts.html#setupProperty' )"><span class="codefrag"
  35. >setupProperty</span ></a>. Whenever access to the data or
  36. methods of a property class is required, this method in the
  37. singleton must be called to ensure that an instance of the
  38. property exists and that the static data from that instance
  39. has been extracted.
  40. </p>
  41. <div class="frame note">
  42. <div class="label">Note</div>
  43. <div class="content">
  44. An alternative to this requirement would be to pre-load all
  45. of the individual property classes during the system
  46. initialization phase. This is not done currently because of
  47. the start-up expense of the required class loading for over
  48. three hundred classes, and the relatively low added expense
  49. of checking for the existence of a property instance before
  50. every access. Given that FOP is increasingly used in a
  51. server environment, it may prove acceptable in the long run
  52. to change to pre-loading.
  53. </div>
  54. </div>
  55. <p>
  56. The class name is generated and stored in the <a
  57. href="javascript:window.top.displayCode(
  58. 'PropertyConsts.html#classNames' )"><span class="codefrag"
  59. >classNames</span ></a> array; a class instance is generated
  60. from the name and stored in the <a
  61. href="javascript:window.top.displayCode(
  62. 'PropertyConsts.html#classes' )"><span class="codefrag"
  63. >classes</span ></a> array; and an instance of the class is
  64. generated from the class object and stored in the <a
  65. href="javascript:window.top.displayCode(
  66. 'PropertyConsts.html#properties' )"><span class="codefrag"
  67. >properties</span ></a> array.
  68. </p>
  69. <p>
  70. The other data gathering facilities and access methods of this
  71. class will be examined in conjunction with the various types
  72. of property classes.
  73. </p>
  74. <p>
  75. <strong>Previous:</strong> <a href = "classes-overview.html"
  76. >Property classes overview</a>
  77. </p>
  78. <p>
  79. <strong>Next:</strong> <a href= "simple-properties.html"
  80. >Simple property classes</a>
  81. </p>
  82. </div>
  83. <table summary="footer" cellspacing="0" cellpadding="0"
  84. width="100%" height="20" border="0">
  85. <tr>
  86. <td colspan="2" height="1" bgcolor="#4C6C8F"><img height="1" width="1" alt="" src="../../skin/images/spacer.gif"><a href="../../skin/images/label.gif"></a><a href="../../skin/images/page.gif"></a><a href="../../skin/images/chapter.gif"></a><a href="../../skin/images/chapter_open.gif"></a><a href="../../skin/images/current.gif"></a><a href="../..//favicon.ico"></a></td>
  87. </tr>
  88. <tr>
  89. <td colspan="2" bgcolor="#CFDCED" class="copyright" align="center"><font size="2" face="Arial, Helvetica, Sans-Serif">Copyright &copy;
  90. 1999-2002&nbsp;The Apache Software Foundation. All rights reserved.<script type="text/javascript" language="JavaScript"><!--
  91. document.write(" - "+"Last Published: " + document.lastModified);
  92. // --></script></font></td>
  93. </tr>
  94. <tr>
  95. <td align="left" bgcolor="#CFDCED" class="logos"></td><td align="right" bgcolor="#CFDCED" class="logos"></td>
  96. </tr>
  97. </table>
  98. </body>
  99. </html>