📄 messagetoolinterface.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc on Thu Aug 26 16:16:41 CST 1999 --><TITLE>Java Internationalization and Localization Toolkit public api document: Interface MessageToolInterface</TITLE><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style"></HEAD><BODY BGCOLOR="white"><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" ID="NavBarCell1"><A NAME="navbar_top_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT ID="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" ID="NavBarCell1Rev"> <FONT ID="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" ID="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../com/sun/tdc/toolkit/api/DictionaryCachable.html"><B>PREV CLASS</B></A> <A HREF="../../../../../com/sun/tdc/toolkit/api/ResourceToolInterface.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" ID="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="MessageToolInterface.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">com.sun.tdc.toolkit.api</FONT><BR>Interface MessageToolInterface</H2><DL><DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../../../../com/sun/tdc/toolkit/messagetool/MessageToolImpl.html">MessageToolImpl</A></DD></DL><HR><DL><DT>public abstract interface <B>MessageToolInterface</B><DT>extends <A HREF="../../../../../com/sun/tdc/toolkit/api/VerifierInterface.html">VerifierInterface</A></DL><P><HR><P><!-- ======== INNER CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><!-- ======== CONSTRUCTOR SUMMARY ======== --><!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" ID="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <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#addMessageToolResource(java.lang.String, java.lang.String, java.lang.String, int)">addMessageToolResource</A></B>(java.lang.String className, java.lang.String bundleName, java.lang.String bundleVarName, int type)</CODE><BR> add 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> <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#addMessageToolResource(java.lang.String, java.lang.String, java.lang.String, int, java.lang.String, int, java.lang.String)">addMessageToolResource</A></B>(java.lang.String className, java.lang.String bundleName, java.lang.String bundleVarName, int type, java.lang.String bundleClassName, int extractStrType, java.lang.String localeStr)</CODE><BR> add 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> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/api/MessageToolInterface.html#convert(com.sun.tdc.toolkit.api.internal.Unit)">convert</A></B>(<A HREF="../../../../../com/sun/tdc/toolkit/api/internal/Unit.html">Unit</A> unit)</CODE><BR> Convert the unit into internationalized unit.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/api/MessageToolInterface.html#convert(com.sun.tdc.toolkit.api.internal.Unit, java.lang.String)">convert</A></B>(<A HREF="../../../../../com/sun/tdc/toolkit/api/internal/Unit.html">Unit</A> unit, java.lang.String bundleVarName)</CODE><BR> Convert the unit into internationalized unit.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/api/MessageToolInterface.html#convertAll()">convertAll</A></B>()</CODE><BR> Automatically internationlize the whole file.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/api/MessageToolInterface.html#convertAll(java.lang.String)">convertAll</A></B>(java.lang.String bundleVarName)</CODE><BR> Automatically internationlize the whole file.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <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#freeze(com.sun.tdc.toolkit.api.internal.Unit)">freeze</A></B>(<A HREF="../../../../../com/sun/tdc/toolkit/api/internal/Unit.html">Unit</A> unit)</CODE><BR> Freeze the message unit.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../../com/sun/tdc/toolkit/api/internal/ClassUnit.html">ClassUnit</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/api/MessageToolInterface.html#getAllClassUnits()">getAllClassUnits</A></B>()</CODE><BR> Get all class units in the java source file.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../../com/sun/tdc/toolkit/api/internal/ClassUnit.html">ClassUnit</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/api/MessageToolInterface.html#getMessageToolClassUnit(int)">getMessageToolClassUnit</A></B>(int offset)</CODE><BR> Get a MessageTool class unit by the offset from the beginning of the file.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <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#getMessageUnits()">getMessageUnits</A></B>()</CODE><BR> Get all message units in the java source file.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../../com/sun/tdc/toolkit/api/internal/ToolkitData.html">ToolkitData</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/api/MessageToolInterface.html#getResourceDocument(java.lang.String, boolean)">getResourceDocument</A></B>(java.lang.String bundleName, boolean inUnicode)</CODE><BR> Get resource document</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/api/MessageToolInterface.html#isMessageUnit(com.sun.tdc.toolkit.api.internal.Unit)">isMessageUnit</A></B>(<A HREF="../../../../../com/sun/tdc/toolkit/api/internal/Unit.html">Unit</A> unit)</CODE><BR> Decide whether the specified unit is message unit.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <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#removeMessageToolResource(java.lang.String, java.lang.String)">removeMessageToolResource</A></B>(java.lang.String className, java.lang.String bundleVarName)</CODE><BR> remove 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> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/api/MessageToolInterface.html#revert(com.sun.tdc.toolkit.api.internal.Unit)">revert</A></B>(<A HREF="../../../../../com/sun/tdc/toolkit/api/internal/Unit.html">Unit</A> unit)</CODE><BR> Revert the internationalized unit.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/api/MessageToolInterface.html#revert(com.sun.tdc.toolkit.api.internal.Unit, boolean)">revert</A></B>(<A HREF="../../../../../com/sun/tdc/toolkit/api/internal/Unit.html">Unit</A> unit, boolean needRemoveBundle)</CODE><BR> Revert the internationalized unit.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/api/MessageToolInterface.html#revertAll()">revertAll</A></B>()</CODE><BR> Automatically revert all internation of the whole file.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/api/MessageToolInterface.html#revertAll(boolean)">revertAll</A></B>(boolean needRemoveBundles)</CODE><BR> Automatically revert all internation of the whole file.</TD></TR><TR BGCOLOR="white" ID="TableRowColor">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -