Class 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 Detail

      • XLIFFPhaseAnnotation

        public XLIFFPhaseAnnotation()
    • 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 element
        startSubDoc - the StartSubDocument Event
      • getReferencedPhase

        public XLIFFPhase getReferencedPhase()
      • updatePhaseAnnotation

        public void updatePhaseAnnotation​(StartSubDocument startSubDoc)
      • toXML

        public String toXML()