Class XMLBlock

java.lang.Object
org.omegat.util.xml.XMLBlock

@Deprecated(forRemoval=true, since="5.8") public class XMLBlock extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    getAttribute(int n)
    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.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    int
    Deprecated, 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.
     
    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
    boolean
    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).
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Whether this is a closing tag.
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Whether this block is a comment.
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Whether this block is a standalone tag.
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Whether this block is a tag.
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    setAttribute(String attribute, String value)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Sets that this block is a closing tag.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    setShortcut(String shortcut)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    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.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Sets that this block is a stand-alone tag.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    setTypeChar(char c)
    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.
    Returns a string representation for debugging purposes mainly.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • XMLBlock

      public XMLBlock()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • setAttribute

      public void setAttribute(String attribute, String value)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setText

      public void setText(String text)
      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

      public void setShortcut(String shortcut)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getShortcut

      public String 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

      public void setTagName(String name)
      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

      public String 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

      public String 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

      public XMLAttribute getAttribute(int n)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getAttribute

      public String getAttribute(String name)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • toString

      public String toString()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns a string representation for debugging purposes mainly.
      Overrides:
      toString in class Object
    • 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.