|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.g11ntoolkit.parser.html.XLIFFFormat
|
+--com.g11ntoolkit.parser.html.XLIFFFile
|
+--com.g11ntoolkit.parser.html.XLIFFEditor
DOM Document writer as XHTML format
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
See License Agreement.
| Nested Class Summary | |
class |
XLIFFEditor.XLIFFSkeletonEditor
Skeleton string class for XLIFF file |
| Nested classes inherited from class com.g11ntoolkit.parser.html.XLIFFFile |
XLIFFFile.XLIFFFileTU |
| Nested classes inherited from class com.g11ntoolkit.parser.html.XLIFFFormat |
XLIFFFormat.XLIFFTransUnit |
| Field Summary | |
private java.lang.String |
_laststr
|
protected XLIFFEditor.XLIFFSkeletonEditor |
_sklEditor
Replace key for script tag |
(package private) java.lang.String |
SCRIPT_KEY
For Test case # br27 and br44 of paragTes.jsp |
| Constructor Summary | |
XLIFFEditor()
Create a new XLIFFFile. |
|
| Method Summary | |
java.lang.String |
addAttrString(java.lang.String element,
java.lang.String attr,
java.lang.String str)
Add attribute value into new Translation Unit class |
java.lang.String[] |
addBodyString(java.lang.String element,
java.lang.String str,
java.lang.String datatype,
boolean create)
Add body text strings into new Translation Unit class |
void |
addScriptString(java.lang.String from,
java.lang.String to,
java.lang.String datatype)
Add script stings into new Translation Unit class |
java.lang.String[] |
mergeTransString(java.lang.String from,
java.lang.String to,
boolean create,
java.lang.String datatype)
Add paragraph stings into new Translation Unit class |
void |
removeCRLines(int count,
boolean includeID)
Remove empty line from skeleton string in the XLIFF class |
| Methods inherited from class com.g11ntoolkit.parser.html.XLIFFFile |
normalizer, normalizer, read, readSkeleton, setSkeleton, write, writeDocType, writeHeader, writeSkeleton, writeTail |
| Methods inherited from class com.g11ntoolkit.parser.html.XLIFFFormat |
addNotes, addTransUnit, createTransUnit, getSkeleton, getSklKey, getTransUnit, init, makeSklKey, setDebug, setLanguage, setProduct, setSkeleton, setSklTUID, setSource |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private java.lang.String _laststr
final java.lang.String SCRIPT_KEY
protected XLIFFEditor.XLIFFSkeletonEditor _sklEditor
| Constructor Detail |
public XLIFFEditor()
| Method Detail |
public java.lang.String addAttrString(java.lang.String element,
java.lang.String attr,
java.lang.String str)
element - Current element nameattr - Attribute namestr - Attribute value strings
public java.lang.String[] addBodyString(java.lang.String element,
java.lang.String str,
java.lang.String datatype,
boolean create)
element - Last element namestr - Body text stringsdatatype - Data type (see XLIFFFile)create - Create new Translation Unit flag
public java.lang.String[] mergeTransString(java.lang.String from,
java.lang.String to,
boolean create,
java.lang.String datatype)
from - Current element namecreate - Create new Translation Unit flagdatatype - Data type (see XLIFFFile)
public void addScriptString(java.lang.String from,
java.lang.String to,
java.lang.String datatype)
from - key Acript tag namedatatype - Data type (see XLIFFFile)
public void removeCRLines(int count,
boolean includeID)
count - Remove line countincludeID - Flag for remove CR/LF of token key
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||