public class InlineTagHandler
extends java.lang.Object
Constructor and Description |
---|
InlineTagHandler() |
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
endBPT()
Handle "bpt" tag end.
|
java.lang.Integer |
endEPT()
Handle "ept" tag end.
|
java.lang.Integer |
endIT()
Handle "IT" tag end.
|
int |
endOTHER()
Handle other tag end.
|
java.lang.Integer |
endPH()
Handle "PH" tag end.
|
java.lang.String |
getCurrentPos()
Returns current begin/end mark of "it" tag.
|
boolean |
getIsExternallyMatched()
Returns whether the current tag is externally matched (has a TMX "x" attribute)
|
int |
getOtherTagShortcutLetter()
Get stored shortcut letter for current other tag.
|
int |
getTagShortcutLetter()
Get stored shortcut letter for current 'i' value.
|
int |
paired(java.lang.String tagName,
Tag.Type tagType)
Handle paired tag end.
|
void |
reset()
Reset stored info for process new part of XML.
|
void |
setCurrentPos(java.lang.String currentPos)
Remember current begin/end mark of "it" tag.
|
void |
setOtherTagShortcutLetter(int letter)
Store shortcut letter for current other tag.
|
void |
setTagShortcutLetter(int letter)
Store shortcut letter for current 'i' value.
|
void |
startBPT(java.lang.String... attributeValues)
Handle "bpt" tag start.
|
void |
startBPT(java.lang.String i,
java.lang.String x)
Handle "bpt" tag start for TMX.
|
void |
startEPT(java.lang.String... attributeValues)
Handle "ept" tag start.
|
void |
startIT(java.lang.String x)
Handle "it" tag start for TMX.
|
void |
startOTHER()
Handle other tag start.
|
void |
startPH(java.lang.String x)
Handle "ph" tag start for TMX.
|
public void reset()
public void startBPT(java.lang.String i, java.lang.String x)
i
- TMX i attribute valuex
- TMX x attribute value (can be null)public void startIT(java.lang.String x)
x
- TMX x attribute value (can be null)public void startPH(java.lang.String x)
i
- TMX i attribute valuex
- TMX x attribute value (can be null)public void startBPT(java.lang.String... attributeValues)
attributeValues
- attributes to identify pairspublic void setTagShortcutLetter(int letter)
letter
- letter to storepublic int getTagShortcutLetter()
public void setOtherTagShortcutLetter(int letter)
letter
- letter to storepublic int getOtherTagShortcutLetter()
public void startEPT(java.lang.String... attributeValues)
attributeValues
- attributes to identify pairspublic void startOTHER()
public java.lang.Integer endBPT()
public java.lang.Integer endIT()
public java.lang.Integer endPH()
public java.lang.Integer endEPT()
public int endOTHER()
public int paired(java.lang.String tagName, Tag.Type tagType)
public void setCurrentPos(java.lang.String currentPos)
public java.lang.String getCurrentPos()
public boolean getIsExternallyMatched()