|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.g11ntoolkit.xliffutil.mergeXliff
|
+--com.g11ntoolkit.xliffutil.applyXliff
Merge NXL and XL xliff files
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.
| Field Summary | |
protected boolean |
_applyTarget
|
protected java.lang.String |
_matchMode
|
protected boolean |
_removeEmptyElm
|
static java.lang.String |
MATCHED_100
100% match. |
static java.lang.String |
MATCHED_COL
line # isn't match. |
static java.lang.String |
MATCHED_FILE
x-key isn't match. |
static java.lang.String |
MATCHED_NEW
unmatch. |
static java.lang.String |
MATCHED_STRING
file name isn't match. |
| Fields inherited from class com.g11ntoolkit.xliffutil.mergeXliff |
_DBG, _listener, _turnOnApproved |
| Constructor Summary | |
applyXliff()
Create a new applyXliff. |
|
| Method Summary | |
protected void |
addAltTrans(org.w3c.dom.Element dest,
org.w3c.dom.Element src,
java.lang.String match)
Add alt-trans element |
private void |
addProp(org.w3c.dom.Element e,
java.lang.String name,
java.lang.String val)
Add property element |
void |
apply(org.w3c.dom.Document in1,
org.w3c.dom.Document in2)
Merge 2nd document into 1st document. |
void |
apply(org.w3c.dom.Element file,
org.w3c.dom.Node body)
Merge 2nd document into 1st document. |
void |
apply(java.util.List in1,
java.util.List in2)
Merge 2nd document into 1st document. |
static void |
main(java.lang.String[] args)
Main |
protected org.w3c.dom.Node |
searchTU(org.w3c.dom.Node dest,
org.w3c.dom.Node tu)
Search TU from old document. |
void |
setTranslation(boolean b)
|
| Methods inherited from class com.g11ntoolkit.xliffutil.mergeXliff |
addNote, getDebugmode, getDestFile, getDestFile, merge, merge, merge, setDebugmode, setStatusListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.String _matchMode
public static final java.lang.String MATCHED_100
public static final java.lang.String MATCHED_COL
public static final java.lang.String MATCHED_FILE
public static final java.lang.String MATCHED_STRING
public static final java.lang.String MATCHED_NEW
protected boolean _applyTarget
protected boolean _removeEmptyElm
| Constructor Detail |
public applyXliff()
| Method Detail |
public static void main(java.lang.String[] args)
throws java.lang.Exception
args - XML File name
java.lang.Exceptionpublic void setTranslation(boolean b)
b - Set 100% match translation flag
public void apply(org.w3c.dom.Document in1,
org.w3c.dom.Document in2)
in1 - master Document classin2 - slave Document class
public void apply(java.util.List in1,
java.util.List in2)
in1 - master List class which contains XLIFF file elementsin2 - slave List class which contains XLIFF file elements
public void apply(org.w3c.dom.Element file,
org.w3c.dom.Node body)
file - file node of new XLIFF filebody - body node of old XLIFF file
protected org.w3c.dom.Node searchTU(org.w3c.dom.Node dest,
org.w3c.dom.Node tu)
dest - file element of old XLIFF filetu - TU element of new XLIFF file
protected void addAltTrans(org.w3c.dom.Element dest,
org.w3c.dom.Element src,
java.lang.String match)
throws javax.xml.transform.TransformerException
dest - TU element of new XLIFF filesrc - TU element of old XLIFF filematch - Match quality string
javax.xml.transform.TransformerException
private void addProp(org.w3c.dom.Element e,
java.lang.String name,
java.lang.String val)
e - TU element of new XLIFF filename - Property nameval - Property value
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||