Package net.sf.okapi.common.annotation
Class XLIFFPhaseAnnotation
- java.lang.Object
-
- net.sf.okapi.common.annotation.XLIFFPhaseAnnotation
-
- All Implemented Interfaces:
Cloneable,IAnnotation
public class XLIFFPhaseAnnotation extends Object implements IAnnotation
Annotation used to expose the %lt;phase-group> element containing the multiple phases in a %lt;file> element when attached to a StartSubDocument event or resolve the phase-name reference otherwise.
-
-
Constructor Summary
Constructors Constructor Description XLIFFPhaseAnnotation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(XLIFFPhase phase)Add a dereferenced phase element to the annotation.voidadd(XLIFFPhase phase, StartSubDocument startSubDoc)Add a parsed %lt;phase> element to a StartSubDocument Event.XLIFFPhaseget(String phaseName)XLIFFPhasegetReferencedPhase()StringtoXML()voidupdatePhaseAnnotation(StartSubDocument startSubDoc)-
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(XLIFFPhase phase)
Add a dereferenced phase element to the annotation.- Parameters:
phase- - XLIFFPhase pulled from a StartSubDocument using the phase-name attribute.
-
add
public void add(XLIFFPhase phase, StartSubDocument startSubDoc)
Add a parsed %lt;phase> element to a StartSubDocument Event.- Parameters:
phase- the phase elementstartSubDoc- theStartSubDocumentEvent
-
get
public XLIFFPhase get(String phaseName)
-
getReferencedPhase
public XLIFFPhase getReferencedPhase()
-
updatePhaseAnnotation
public void updatePhaseAnnotation(StartSubDocument startSubDoc)
-
toXML
public String toXML()
-
-