Package org.omegat.util.xml
Class XMLBlock
java.lang.Object
org.omegat.util.xml.XMLBlock
Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Summary
ConstructorsConstructorDescriptionXMLBlock()Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(int n) Deprecated, for removal: This API element is subject to removal in a future version.getAttribute(String name) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.intDeprecated, for removal: This API element is subject to removal in a future version.What's the shortcut number of this tag.Deprecated, for removal: This API element is subject to removal in a future version.getText()Deprecated, for removal: This API element is subject to removal in a future version.Returns the block as text - either raw text if not a tag, or the tag and attributes in text form if it isbooleanhasText()Deprecated, for removal: This API element is subject to removal in a future version.Whether this block is a chunk of text (not a tag).booleanisClose()Deprecated, for removal: This API element is subject to removal in a future version.Whether this is a closing tag.booleanDeprecated, for removal: This API element is subject to removal in a future version.Whether this block is a comment.booleanDeprecated, for removal: This API element is subject to removal in a future version.Whether this block is a standalone tag.booleanisTag()Deprecated, for removal: This API element is subject to removal in a future version.Whether this block is a tag.intDeprecated, for removal: This API element is subject to removal in a future version.voidsetAttribute(String attribute, String value) Deprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.Sets that this block is a closing tag.voidDeprecated, for removal: This API element is subject to removal in a future version.voidsetShortcut(String shortcut) Deprecated, for removal: This API element is subject to removal in a future version.voidsetShortcutNumber(int shortcutNumber) Deprecated, for removal: This API element is subject to removal in a future version.Sets the shortcut number of this tag.voidDeprecated, for removal: This API element is subject to removal in a future version.Sets that this block is a stand-alone tag.voidsetTagName(String name) Deprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.voidsetTypeChar(char c) Deprecated, for removal: This API element is subject to removal in a future version.toString()Deprecated, for removal: This API element is subject to removal in a future version.Returns a string representation for debugging purposes mainly.
-
Constructor Details
-
XMLBlock
public XMLBlock()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
setAttribute
Deprecated, for removal: This API element is subject to removal in a future version. -
setText
Deprecated, for removal: This API element is subject to removal in a future version. -
setTypeChar
public void setTypeChar(char c) Deprecated, for removal: This API element is subject to removal in a future version. -
setShortcut
Deprecated, for removal: This API element is subject to removal in a future version. -
getShortcut
Deprecated, for removal: This API element is subject to removal in a future version. -
setCloseFlag
public void setCloseFlag()Deprecated, for removal: This API element is subject to removal in a future version.Sets that this block is a closing tag. -
setStandaloneFlag
public void setStandaloneFlag()Deprecated, for removal: This API element is subject to removal in a future version.Sets that this block is a stand-alone tag. -
setComment
public void setComment()Deprecated, for removal: This API element is subject to removal in a future version. -
setTagName
Deprecated, for removal: This API element is subject to removal in a future version. -
hasText
public boolean hasText()Deprecated, for removal: This API element is subject to removal in a future version.Whether this block is a chunk of text (not a tag). -
isTag
public boolean isTag()Deprecated, for removal: This API element is subject to removal in a future version.Whether this block is a tag. -
isStandalone
public boolean isStandalone()Deprecated, for removal: This API element is subject to removal in a future version.Whether this block is a standalone tag. -
isClose
public boolean isClose()Deprecated, for removal: This API element is subject to removal in a future version.Whether this is a closing tag. -
isComment
public boolean isComment()Deprecated, for removal: This API element is subject to removal in a future version.Whether this block is a comment. -
getText
Deprecated, for removal: This API element is subject to removal in a future version.Returns the block as text - either raw text if not a tag, or the tag and attributes in text form if it is -
getTagName
Deprecated, for removal: This API element is subject to removal in a future version. -
numAttributes
public int numAttributes()Deprecated, for removal: This API element is subject to removal in a future version. -
getAttribute
Deprecated, for removal: This API element is subject to removal in a future version. -
getAttribute
Deprecated, for removal: This API element is subject to removal in a future version. -
toString
Deprecated, for removal: This API element is subject to removal in a future version.Returns a string representation for debugging purposes mainly. -
getShortcutNumber
public int getShortcutNumber()Deprecated, for removal: This API element is subject to removal in a future version.What's the shortcut number of this tag. -
setShortcutNumber
public void setShortcutNumber(int shortcutNumber) Deprecated, for removal: This API element is subject to removal in a future version.Sets the shortcut number of this tag.
-