📄 verifier.html
字号:
right area of the window, the attributes of the constructor item will bedisplayed. You can edit/select the contents of <i><b>The number of parameters,Advice , Type , Status </b>and <b>Parameters</b></i> .</li><li>Press <b>Save</b> to save the changes on the edited constructor or press<b>Reset</b>to clear any changes on the original constructor.</li><li>You can also add a new constructor to the edited policy file.</li><ul><li>press <b>Add Constructor</b>, then you will get Add Constructor windowpop-up(figure9).</li><li>input the needed data and information in the corresponding blank text field.</li><br> <p> <p><img SRC="image/ver_polediaddconstr.gif" height=320 width=480><h6>Figure9: Add Constructor</h6><li>Press <b>Add </b>to add the new constructor to the policy file or press<b>Cancel</b>toinvalidate the input.</li></ul><li>To remove a constructor item in the <b><i>Constructor list</i></b>:</li><ul><li>Select the constructor item to be removed.</li><li>Press <b>Remove Constructor</b> and press <b>Yes</b> on the <b>Confirmation</b>dialog box, you will see in the Constructor list:, this constructor isremoved.</li></ul></ol><b><font size=-1>Exporting Policies</font></b><p>To export the verifier policy to a file, do as the following steps:<ol><li>Select <b>Policies->Export</b>, select the policy type: <b>System Policy</b>or <b>User Policy</b> to export. Then get the dialog box pop-up(figure10).</li><li>Select a proper directory and in the blank text field, input the name ofthe file to which you want to save the policy.</li><li>Press<b> Save</b> to save the policy file.</li><br> <p> <p><img SRC="image/ver_polexport.gif" height=336 width=512><h6>Figure10: Export policy file</h6></ol>Under the menus, there are some image buttons which are for the quick accessto the applications. The functions of these buttons are the same as somefunctions described above.<p>To get the online help, select the <b>Help</b> menu item.<p><a NAME="Verifier command line"></a><b>Verifier Command-line</b><p>To run Verifier in command line, type: "verifier <parameters>". Thefollowing will describe the Verifier command in detail.<p>USAGE:<br> java com.sun.tdc.toolkit.verifier.Verifier [-h|-help][[-o outputfile] [-s] [-v] files|directories]<p> -h|-help display this information<br> -o outputfile save the verify report into the outputfile when -s is not set,<br> default is verifyReport.html or verifyReport.txt<br> -s save reports separately according to different source files<br> -v display verbose information<br> files|directories the java source files or directories (in) which to be verified<br> <p><a NAME="Setting Verifier Properties"></a><b>Setting Verifier Properties</b><b></b><p>In GUI mode, the properties of editor and verifier result fields canbe set by selecting from the menu <b>Edit -> Options</b>.<p>All the properties of Verifier can be set by editing the propertiesfile Verifier.INI. The properties are descripted in the following table:<br> <br> <center><table BORDER WIDTH="100%" NOSAVE ><tr ALIGN=CENTER NOSAVE><td NOSAVE>Subject</td><td NOSAVE>Property</td><td NOSAVE>Value</td><td NOSAVE>Meaning</td></tr><tr ALIGN=CENTER NOSAVE><td ROWSPAN="2" NOSAVE>system</td><td NOSAVE>messageformat</td><td ALIGN=LEFT NOSAVE>true or false, <br>default true</td><td NOSAVE>if string concateantion will be checked.</td></tr><tr ALIGN=CENTER NOSAVE><td NOSAVE>reservedsuffix</td><td ALIGN=LEFT NOSAVE>default .gif;.jpg;.au;.wav;.java;.htm;.html</td><td NOSAVE>the strings suffixed with any of the reserved suffixes willnot be regarded as message items.</td></tr><tr ALIGN=CENTER NOSAVE><td ROWSPAN="3" NOSAVE>output</td><td NOSAVE>format</td><td ALIGN=LEFT NOSAVE>html or text, default html</td><td NOSAVE>the format of verification report file generated in commandline mode</td></tr><tr ALIGN=CENTER NOSAVE><td NOSAVE>fields</td><td ALIGN=LEFT NOSAVE>FILE;POSITION;STATUS;TYPE;SOURCE;ADVICE</td><td NOSAVE>the fields will be listed in the report</td></tr><tr ALIGN=CENTER NOSAVE><td NOSAVE>stored_separately</td><td ALIGN=LEFT NOSAVE>true or false, <br>default false</td><td NOSAVE>if the reports will be generated separately when lots of sourcefiles are verified in one time.</td></tr><tr ALIGN=CENTER NOSAVE><td NOSAVE>sorting</td><td NOSAVE>fields</td><td ALIGN=LEFT NOSAVE>default FILE;STATUS;POSITION;TYPE</td><td NOSAVE>the fields and the order for sorting</td></tr><tr ALIGN=CENTER NOSAVE><td ROWSPAN="15" NOSAVE>display</td><td NOSAVE>TYPE_COMMON_STR</td><td ALIGN=LEFT NOSAVE>on or off, default on</td><td NOSAVE>if the string message items will be displayed in the report</td></tr><tr ALIGN=CENTER NOSAVE><td NOSAVE>TYPE_SETLABEL_STR</td><td ALIGN=LEFT NOSAVE>on or off, default on</td><td NOSAVE>if the string used for setting label will be displayed in thereport</td></tr><tr ALIGN=CENTER NOSAVE><td NOSAVE>TYPE_SETTEXT_STR</td><td ALIGN=LEFT NOSAVE>on or off, default on</td><td NOSAVE>if the string used for setting text will be displayed in thereport</td></tr><tr ALIGN=CENTER NOSAVE><td NOSAVE>TYPE_SUPER_STR</td><td ALIGN=LEFT NOSAVE>on or off, default on</td><td NOSAVE>if the string used as a parameter in super constructor willbe displayed in the report</td></tr><tr ALIGN=CENTER NOSAVE><td NOSAVE>TYPE_CONSTRUCTOR_STR</td><td ALIGN=LEFT NOSAVE>on or off, default on</td><td NOSAVE>if the string used by a constructor will be displayed in thereport</td></tr><tr ALIGN=CENTER NOSAVE><td NOSAVE>TYPE_LAYOUT_STR</td><td ALIGN=LEFT NOSAVE>on or off, default on</td><td NOSAVE>if the string used for setting layout will be displayed in thereport</td></tr><tr ALIGN=CENTER NOSAVE><td NOSAVE>TYPE_FONT_NAME_STR</td><td ALIGN=LEFT NOSAVE>on or off, default on</td><td NOSAVE>if the string which is a font name will be displayed in thereport</td></tr><tr ALIGN=CENTER NOSAVE><td NOSAVE>TYPE_LOCALE_SENS_METHOD</td><td ALIGN=LEFT NOSAVE>on or off, default on</td><td NOSAVE>if the locale sensitive methods will be displayed in the report</td></tr><tr ALIGN=CENTER NOSAVE><td NOSAVE>TYPE_CONSTRUCTOR</td><td ALIGN=LEFT NOSAVE>on or off, default on</td><td NOSAVE>if the constructors will be displayed in the report</td></tr><tr ALIGN=CENTER NOSAVE><td NOSAVE>STATUS_ERROR</td><td ALIGN=LEFT NOSAVE>on or off, default on</td><td NOSAVE>if the items which have errors for i18n and l10n will be listedin the report</td></tr><tr ALIGN=CENTER NOSAVE><td NOSAVE>STATUS_NOTSURE</td><td ALIGN=LEFT NOSAVE>on or off, default on</td><td NOSAVE>if the items which have not sure status will be listed in thereport</td></tr><tr ALIGN=CENTER NOSAVE><td NOSAVE>STATUS_WARNING</td><td ALIGN=LEFT NOSAVE>on or off, default on</td><td NOSAVE>if the items which status are warning will be listed in thereport</td></tr><tr ALIGN=CENTER NOSAVE><td NOSAVE>STATUS_NOTE</td><td ALIGN=LEFT NOSAVE>on or off, default on</td><td NOSAVE>if the items which status are noting you will be listed in thereport</td></tr><tr ALIGN=CENTER NOSAVE><td NOSAVE>STATUS_FROZEN</td><td ALIGN=LEFT NOSAVE>on or off, default on</td><td NOSAVE>if the items which status are frozen will be listed in the report</td></tr><tr ALIGN=CENTER NOSAVE><td NOSAVE>STATUS_FINISHED</td><td ALIGN=LEFT NOSAVE>on or off, default off</td><td NOSAVE>if the items which status are finished for i18n and l10n willbe listed in the report</td></tr><tr ALIGN=CENTER NOSAVE><td ROWSPAN="4" NOSAVE>policy</td><td NOSAVE>type</td><td ALIGN=LEFT NOSAVE>String;Bundle name;Resource bundle;<br>Retrieved method;Locale sensitive method</td><td NOSAVE>the list of verify item types used for defining policies</td></tr><tr ALIGN=CENTER NOSAVE><td NOSAVE>status</td><td ALIGN=LEFT NOSAVE>Error;Notsure;Warning;Note;Frozen;Finished</td><td NOSAVE>the list of verify item status used for defining policies</td></tr><tr ALIGN=CENTER NOSAVE><td NOSAVE>system</td><td ALIGN=LEFT NOSAVE>default verifier_policy</td><td NOSAVE>the name of system policies used by Verifier</td></tr><tr ALIGN=CENTER NOSAVE><td NOSAVE>user</td><td ALIGN=LEFT NOSAVE>default verifier_user_policy</td><td NOSAVE>the name of user-defined policies</td></tr><tr ALIGN=CENTER NOSAVE><td NOSAVE>gui</td><td NOSAVE>output</td><td ALIGN=LEFT NOSAVE>default SOURCE;STATUS;TYPE;ADVICE</td><td NOSAVE>the fields of verify result table in GUI</td></tr><tr ALIGN=CENTER NOSAVE><td ROWSPAN="3" NOSAVE>Editor</td><td NOSAVE>Font Name</td><td ALIGN=LEFT NOSAVE>Dialog, DialogInput, Serif,SansSerif, or Monospaced,<br>default DialogInput</td><td NOSAVE>the font name used by the editor</td></tr><tr ALIGN=CENTER NOSAVE><td NOSAVE>Font Style</td><td ALIGN=LEFT NOSAVE>Plain, Bold, Italic, or BoldItalic,<br>default Plain</td><td NOSAVE>the font style</td></tr><tr ALIGN=CENTER NOSAVE><td NOSAVE>Font Size</td><td ALIGN=LEFT NOSAVE>8, 10, 12, 14, 16, ... , <br>default 16</td><td NOSAVE>the font size</td></tr></table></center><p><img SRC="image/rainbow.gif" height=6 width=100%><center><p><b><font size=-1> <a href="#top">Top of file</a> | <a href="mailto:i18n-toolkit-comments@Sun.COM">Comments</a>| <a href="mailto:i18n-toolkit-comments@Sun.COM">Submit Bug</a></font></b><br><a href="http://www.sun.com"><img SRC="image/sun-logo.gif" ALT="Sun Home" BORDER=0 height=60 width=84></a><br><font size=-2>Copyright © 1995-1999 Sun Microsystems, Inc.</font><br><font size=-2>China Technical Development Center</font><br><font size=-2>All Rights Reserved.</font></center></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -