public abstract class OutOfTurnTag extends Tag
Constructor and Description |
---|
OutOfTurnTag(XMLDialect xmlDialect,
Handler handler,
java.lang.String tag,
java.lang.String shortcut,
Attributes attributes)
Creates a new instance of out of turn tag.
|
Modifier and Type | Method and Description |
---|---|
Entry |
getEntry()
Returns the entry that embodies this out of turn tag.
|
abstract java.lang.String |
toOriginal()
Returns the tag in its original form as it was in original document.
|
protected java.lang.String |
toPartialTMX()
Returns short XML-encoded representation of the out of turn tag to store
in TMX, without enclosing <ph>.
|
getAttribute, getAttributeObject, getAttributes, getIndex, getShortcut, getStartAttributes, getTag, getType, setIndex, setStartAttributes, setType, toSafeCalcShortcut, toShortcut, toTMX
public OutOfTurnTag(XMLDialect xmlDialect, Handler handler, java.lang.String tag, java.lang.String shortcut, Attributes attributes)
public Entry getEntry()
public abstract java.lang.String toOriginal()
E.g. for OpenDocument footnote (out of turn tag "text:note-body")
<text:note-body><text:p text:style-name="Endnote">The endnote
appears at the end of the document in OO but in the middle of
the segment in OmegaT.</text:p></text:note-body>
this method should return the same if not translated, namely
<text:note-body><text:p text:style-name="Endnote">The endnote
appears at the end of the document in OO but in the middle of
the segment in OmegaT.</text:p></text:note-body>
.
toOriginal
in interface Element
toOriginal
in class Tag
protected java.lang.String toPartialTMX()
E.g. for OpenDocument footnote (out of turn tag "text:note-body")
<text:note-body><text:p text:style-name="Endnote">The endnote
appears at the end of the document in OO but in the middle of
the segment in OmegaT.</text:p></text:note-body>
this method should return the following, if not translated,
<text:note-body><text:p text:style-name="Endnote">The
endnote appears at the end of the document in OO but in the middle of
the segment in
OmegaT.</text:p></text:note-body>
.
toPartialTMX
in class Tag