⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 messagetoolinterface.html

📁 是一个加快Java应用程序国际化和本地化开发的工具集。它将大大减少国际化和本地化开发的所消耗的时间和资源。
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/api/MessageToolInterface.html#saveAsResource(java.lang.String, java.lang.String, java.lang.String)">saveAsResource</A></B>(java.lang.String&nbsp;bundleName,               java.lang.String&nbsp;localeName,               java.lang.String&nbsp;outputDir)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Save the resource bundle by specified bundle name as the specified locale name  and output directory.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/api/MessageToolInterface.html#saveResource(java.lang.String)">saveResource</A></B>(java.lang.String&nbsp;bundleName)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Save the resource bundle by specified bundle name</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/api/MessageToolInterface.html#saveResources()">saveResources</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Save resource bundles used in this java source file</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../../com/sun/tdc/toolkit/api/internal/Unit.html">Unit</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/api/MessageToolInterface.html#unfreeze(com.sun.tdc.toolkit.api.internal.Unit)">unfreeze</A></B>(<A HREF="../../../../../com/sun/tdc/toolkit/api/internal/Unit.html">Unit</A>&nbsp;unit)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Refreeze the message unit.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../../com/sun/tdc/toolkit/api/internal/Unit.html">Unit</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/api/MessageToolInterface.html#unify(com.sun.tdc.toolkit.api.internal.Unit[], java.lang.String, java.lang.String)">unify</A></B>(<A HREF="../../../../../com/sun/tdc/toolkit/api/internal/Unit.html">Unit</A>[]&nbsp;units,      java.lang.String&nbsp;key,      java.lang.String&nbsp;bundleVarName)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Unify the message units.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../../com/sun/tdc/toolkit/api/internal/Unit.html">Unit</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/api/MessageToolInterface.html#ununify(com.sun.tdc.toolkit.api.internal.Unit[])">ununify</A></B>(<A HREF="../../../../../com/sun/tdc/toolkit/api/internal/Unit.html">Unit</A>[]&nbsp;units)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ununify the message units.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../../com/sun/tdc/toolkit/api/internal/Unit.html">Unit</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/api/MessageToolInterface.html#updateMessageToolResource(java.lang.String, java.lang.String, java.lang.String, java.lang.String, int)">updateMessageToolResource</A></B>(java.lang.String&nbsp;className,                          java.lang.String&nbsp;oldBundleVarName,                          java.lang.String&nbsp;bundleName,                          java.lang.String&nbsp;bundleVarName,                          int&nbsp;type)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;update a resource bundle definition statement in a class.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../../com/sun/tdc/toolkit/api/internal/Unit.html">Unit</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/api/MessageToolInterface.html#updateMessageToolResource(java.lang.String, java.lang.String, java.lang.String, java.lang.String, int, java.lang.String, int, java.lang.String)">updateMessageToolResource</A></B>(java.lang.String&nbsp;className,                          java.lang.String&nbsp;oldBundleVarName,                          java.lang.String&nbsp;bundleName,                          java.lang.String&nbsp;bundleVarName,                          int&nbsp;type,                          java.lang.String&nbsp;bundleClassName,                          int&nbsp;extractStrType,                          java.lang.String&nbsp;localeStr)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;update a resource bundle definition statement in a class.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_com.sun.tdc.toolkit.api.VerifierInterface"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" ID="TableSubHeadingColor"><TD><B>Methods inherited from interface com.sun.tdc.toolkit.api.<A HREF="../../../../../com/sun/tdc/toolkit/api/VerifierInterface.html">VerifierInterface</A></B></TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD><CODE><A HREF="../../../../../com/sun/tdc/toolkit/api/VerifierInterface.html#getItemCollector()">getItemCollector</A>, <A HREF="../../../../../com/sun/tdc/toolkit/api/VerifierInterface.html#process(java.io.InputStream)">process</A>, <A HREF="../../../../../com/sun/tdc/toolkit/api/VerifierInterface.html#process(java.io.InputStream, boolean)">process</A>, <A HREF="../../../../../com/sun/tdc/toolkit/api/VerifierInterface.html#process(java.lang.String)">process</A>, <A HREF="../../../../../com/sun/tdc/toolkit/api/VerifierInterface.html#process(java.lang.String, boolean)">process</A>, <A HREF="../../../../../com/sun/tdc/toolkit/api/VerifierInterface.html#saveReport(java.io.OutputStream)">saveReport</A>, <A HREF="../../../../../com/sun/tdc/toolkit/api/VerifierInterface.html#saveReport(java.lang.String)">saveReport</A>, <A HREF="../../../../../com/sun/tdc/toolkit/api/VerifierInterface.html#setItemCollector(com.sun.tdc.toolkit.api.VerifyListener)">setItemCollector</A></CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" ID="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="addMessageToolResource(java.lang.String, java.lang.String, java.lang.String, int)"><!-- --></A><H3>addMessageToolResource</H3><PRE>public <A HREF="../../../../../com/sun/tdc/toolkit/api/internal/Unit.html">Unit</A> <B>addMessageToolResource</B>(java.lang.String&nbsp;className,                                   java.lang.String&nbsp;bundleName,                                   java.lang.String&nbsp;bundleVarName,                                   int&nbsp;type)</PRE><DL><DD>add a resource bundle definition statement in a class.<DD><DL><DT><B>Parameters:</B><DD><CODE>bundleName</CODE> - the resource bundle name<DD><CODE>bundleVarName</CODE> - the resource bundle variable name<DD><CODE>type</CODE> - the resource bundle type<DD><CODE>className</CODE> - the class name in which the definition statement nests.</DL></DD></DL><HR><A NAME="addMessageToolResource(java.lang.String, java.lang.String, java.lang.String, int, java.lang.String, int, java.lang.String)"><!-- --></A><H3>addMessageToolResource</H3><PRE>public <A HREF="../../../../../com/sun/tdc/toolkit/api/internal/Unit.html">Unit</A> <B>addMessageToolResource</B>(java.lang.String&nbsp;className,                                   java.lang.String&nbsp;bundleName,                                   java.lang.String&nbsp;bundleVarName,                                   int&nbsp;type,                                   java.lang.String&nbsp;bundleClassName,                                   int&nbsp;extractStrType,                                   java.lang.String&nbsp;localeStr)</PRE><DL><DD>add a resource bundle definition statement in a class.<DD><DL><DT><B>Parameters:</B><DD><CODE>className</CODE> - the class name in which the definition statement nests<DD><CODE>bundleName</CODE> - the resource bundle name<DD><CODE>bundleVarName</CODE> - the resource bundle variable name<DD><CODE>type</CODE> - the resource bundle type<DD><CODE>bundleClassName</CODE> - the class name of the resource bundle which may be user defined<DD><CODE>extractStrType</CODE> - the type of extracting string method(getString(key),  getString(key, defaultVal), getString(key, locale), or getString(key, defaultVal, locale))<DD><CODE>localeStr</CODE> - the locale variable string</DL></DD></DL><HR><A NAME="updateMessageToolResource(java.lang.String, java.lang.String, java.lang.String, java.lang.String, int)"><!-- --></A><H3>updateMessageToolResource</H3><PRE>public <A HREF="../../../../../com/sun/tdc/toolkit/api/internal/Unit.html">Unit</A> <B>updateMessageToolResource</B>(java.lang.String&nbsp;className,                                      java.lang.String&nbsp;oldBundleVarName,                                      java.lang.String&nbsp;bundleName,                                      java.lang.String&nbsp;bundleVarName,                                      int&nbsp;type)</PRE><DL><DD>update a resource bundle definition statement in a class.<DD><DL><DT><B>Parameters:</B><DD><CODE>className</CODE> - the class name in which the definition statement nests.<DD><CODE>oldBundleVarName</CODE> - the old bundle variable name<DD><CODE>bundleName</CODE> - the resource bundle name<DD><CODE>bundleVarName</CODE> - the resource bundle variable name<DD><CODE>type</CODE> - the resource bundle type</DL></DD></DL><HR><A NAME="updateMessageToolResource(java.lang.String, java.lang.String, java.lang.String, java.lang.String, int, java.lang.String, int, java.lang.String)"><!-- --></A><H3>updateMessageToolResource</H3><PRE>public <A HREF="../../../../../com/sun/tdc/toolkit/api/internal/Unit.html">Unit</A> <B>updateMessageToolResource</B>(java.lang.String&nbsp;className,                                      java.lang.String&nbsp;oldBundleVarName,                                      java.lang.String&nbsp;bundleName,                                      java.lang.String&nbsp;bundleVarName,                                      int&nbsp;type,                                      java.lang.String&nbsp;bundleClassName,                                      int&nbsp;extractStrType,                                      java.lang.String&nbsp;localeStr)</PRE><DL><DD>update a resource bundle definition statement in a class.<DD><DL><DT><B>Parameters:</B><DD><CODE>className</CODE> - the class name in which the definition statement nests<DD><CODE>oldBundleVarName</CODE> - the old bundle variable name<DD><CODE>bundleName</CODE> - the resource bundle name<DD><CODE>bundleVarName</CODE> - the resource bundle variable name<DD><CODE>type</CODE> - the resource bundle type<DD><CODE>bundleClassName</CODE> - the class name of the resource bundle which may be user defined<DD><CODE>extractStrType</CODE> - the type of extracting string method(getString(key),  getString(key, defaultVal), getString(key, locale), or getString(key, defaultVal, locale))<DD><CODE>localeStr</CODE> - the locale variable string</DL></DD></DL><HR><A NAME="removeMessageToolResource(java.lang.String, java.lang.String)"><!-- --></A><H3>removeMessageToolResource</H3><PRE>public <A HREF="../../../../../com/sun/tdc/toolkit/api/internal/Unit.html">Unit</A> <B>removeMessageToolResource</B>(java.lang.String&nbsp;className,                                      java.lang.String&nbsp;bundleVarName)</PRE><DL><DD>remove a resource bundle definition statement in a class.<DD><DL><DT><B>Parameters:</B><DD><CODE>className</CODE> - the class name in which the definition statement nests.<DD><CODE>bundleVarName</CODE> - the variable name of the resource bundle</DL></DD></DL><HR><A NAME="getMessageToolClassUnit(int)"><!-- --></A><H3>getMessageToolClassUnit</H3><PRE>public <A HREF="../../../../../com/sun/tdc/toolkit/api/internal/ClassUnit.html">ClassUnit</A> <B>getMessageToolClassUnit</B>(int&nbsp;offset)</PRE><DL><DD>Get a MessageTool class unit by the offset from the beginning of the file.<DD><DL><DT><B>Parameters:</B><DD><CODE>offset</CODE> - the offset in the java file<DT><B>Returns:</B><DD>the class unit according to the offset</DL></DD></DL><HR><A NAME="convert(com.sun.tdc.toolkit.api.internal.Unit)"><!-- --></A><H3>convert</H3><PRE>public java.lang.String <B>convert</B>(<A HREF="../../../../../com/sun/tdc/toolkit/api/internal/Unit.html">Unit</A>&nbsp;unit)                         throws <A HREF="../../../../../com/sun/tdc/toolkit/api/NoBundleDefinedException.html">NoBundleDefinedException</A></PRE><DL><DD>Convert the unit into internationalized unit.<DD><DL><DT><B>Parameters:</B><DD><CODE>unit</CODE> - the unit to be converted<DT><B>Returns:</B><DD>the unit which was converted into.</DL></DD></DL><HR><A NAME="convert(com.sun.tdc.toolkit.api.internal.Unit, java.lang.String)"><!-- --></A><H3>convert</H3><PRE>public java.lang.String <B>convert</B>(<A HREF="../../../../../com/sun/tdc/toolkit/api/internal/Unit.html">Unit</A>&nbsp;unit,                                java.lang.String&nbsp;bundleVarName)                         throws <A HREF="../../../../../com/sun/tdc/toolkit/api/NoBundleDefinedException.html">NoBundleDefinedException</A></PRE><DL><DD>Convert the unit into internationalized unit.<DD><DL><DT><B>Parameters:</B><DD><CODE>unit</CODE> - the unit to be converted<DD><CODE>bundleVarName</CODE> - the variable name of the resource bundle<DT><B>Returns:</B><DD>the unit which was converted into.</DL></DD></DL><HR><A NAME="revert(com.sun.tdc.toolkit.api.internal.Unit)"><!-- --></A><H3>revert</H3><PRE>public java.lang.String <B>revert</B>(<A HREF="../../../../../com/sun/tdc/toolkit/api/internal/Unit.html">Unit</A>&nbsp;unit)</PRE><DL><DD>Revert the internationalized unit.<DD><DL><DT><B>Parameters:</B><DD><CODE>unit</CODE> - the unit to be reverted<DT><B>Returns:</B><DD>the unit which was reconverted into.</DL></DD>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -