Package net.sf.okapi.common.annotation
Class XLIFFToolAnnotation
- java.lang.Object
-
- net.sf.okapi.common.annotation.XLIFFToolAnnotation
-
- All Implemented Interfaces:
Cloneable,IAnnotation
public class XLIFFToolAnnotation extends Object implements IAnnotation
Annotation containing the set of %lt;tool> elements in an XLIFF %lt;file>%lt;header>. Should be attached to a StartSubDocument Event.
-
-
Constructor Summary
Constructors Constructor Description XLIFFToolAnnotation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(XLIFFTool tool, StartSubDocument startSubDoc)XLIFFToolget(String toolId)StringtoXML()voidupdateToolProperty(StartSubDocument startSubDoc)Synchronize the value of the tool property on the StartSubDocument event with the XML representation of this annotation.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.okapi.common.annotation.IAnnotation
toString
-
-
-
-
Method Detail
-
add
public void add(XLIFFTool tool, StartSubDocument startSubDoc)
-
updateToolProperty
public void updateToolProperty(StartSubDocument startSubDoc)
Synchronize the value of the tool property on the StartSubDocument event with the XML representation of this annotation.- Parameters:
startSubDoc- theStartSubDocumentevent
-
toXML
public String toXML()
-
-