123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html>
- <head>
- <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
- <title>PropertyConsts Description</title>
- <link type="text/css" href="../../../page.css" rel="stylesheet">
- </head>
- <body marginheight="0" marginwidth="0" topmargin="0" leftmargin="0"
- text="#000000" bgcolor="#FFFFFF">
- <div class="content">
- <h1>PropertyConsts Description</h1>
- <p>
- <font size="-2">by Peter B. West</font>
- </p>
- <ul class="minitoc">
- <li>
- <a href="#N10014">Introduction</a>
- </li>
- </ul>
-
- <a name="N10014"></a>
- <h3>Introduction</h3>
- <p>
-
- <a href="javascript:window.top.displayCode(
- 'PropertyConsts.html#PropertyConstsClass'
- )">This class</a>, and the singleton object which is <a
- href="javascript:window.top.displayCode(
- 'PropertyConsts.html#pconsts' )">generated by the static
- initializer</a>, is essentially a repository of
- <property> class instances and the static data from
- those classes of <span
- class="codefrag">org.apache.fop.fo.property</span>.
- The heart of this class is the method <a href=
- "javascript:window.top.displayCode(
- 'PropertyConsts.html#setupProperty' )"><span class="codefrag"
- >setupProperty</span ></a>. Whenever access to the data or
- methods of a property class is required, this method in the
- singleton must be called to ensure that an instance of the
- property exists and that the static data from that instance
- has been extracted.
- </p>
-
- <div class="frame note">
- <div class="label">Note</div>
- <div class="content">
- An alternative to this requirement would be to pre-load all
- of the individual property classes during the system
- initialization phase. This is not done currently because of
- the start-up expense of the required class loading for over
- three hundred classes, and the relatively low added expense
- of checking for the existence of a property instance before
- every access. Given that FOP is increasingly used in a
- server environment, it may prove acceptable in the long run
- to change to pre-loading.
- </div>
- </div>
-
- <p>
- The class name is generated and stored in the <a
- href="javascript:window.top.displayCode(
- 'PropertyConsts.html#classNames' )"><span class="codefrag"
- >classNames</span ></a> array; a class instance is generated
- from the name and stored in the <a
- href="javascript:window.top.displayCode(
- 'PropertyConsts.html#classes' )"><span class="codefrag"
- >classes</span ></a> array; and an instance of the class is
- generated from the class object and stored in the <a
- href="javascript:window.top.displayCode(
- 'PropertyConsts.html#properties' )"><span class="codefrag"
- >properties</span ></a> array.
- </p>
-
- <p>
- The other data gathering facilities and access methods of this
- class will be examined in conjunction with the various types
- of property classes.
- </p>
-
- <p>
- <strong>Previous:</strong> <a href = "classes-overview.html"
- >Property classes overview</a>
- </p>
- <p>
- <strong>Next:</strong> <a href= "simple-properties.html"
- >Simple property classes</a>
- </p>
- </div>
- <table summary="footer" cellspacing="0" cellpadding="0"
- width="100%" height="20" border="0">
- <tr>
- <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>
- </tr>
- <tr>
- <td colspan="2" bgcolor="#CFDCED" class="copyright" align="center"><font size="2" face="Arial, Helvetica, Sans-Serif">Copyright ©
- 1999-2002 The Apache Software Foundation. All rights reserved.<script type="text/javascript" language="JavaScript"><!--
- document.write(" - "+"Last Published: " + document.lastModified);
- // --></script></font></td>
- </tr>
- <tr>
- <td align="left" bgcolor="#CFDCED" class="logos"></td><td align="right" bgcolor="#CFDCED" class="logos"></td>
- </tr>
- </table>
- </body>
- </html>
|