Class XMLBlock


  • public class XMLBlock
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      XMLBlock()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      XMLAttribute getAttribute​(int n)  
      java.lang.String getAttribute​(java.lang.String name)  
      java.lang.String getShortcut()  
      int getShortcutNumber()
      What's the shortcut number of this tag.
      java.lang.String getTagName()  
      java.lang.String getText()
      Returns the block as text - either raw text if not a tag, or the tag and attributes in text form if it is
      boolean hasText()
      Whether this block is a chunk of text (not a tag).
      boolean isClose()
      Whether this is a closing tag.
      boolean isComment()
      Whether this block is a comment.
      boolean isStandalone()
      Whether this block is a standalone tag.
      boolean isTag()
      Whether this block is a tag.
      int numAttributes()  
      void setAttribute​(java.lang.String attribute, java.lang.String value)  
      void setCloseFlag()
      Sets that this block is a closing tag.
      void setComment()  
      void setShortcut​(java.lang.String shortcut)  
      void setShortcutNumber​(int shortcutNumber)
      Sets the shortcut number of this tag.
      void setStandaloneFlag()
      Sets that this block is a stand-alone tag.
      void setTagName​(java.lang.String name)  
      void setText​(java.lang.String text)  
      void setTypeChar​(char c)  
      java.lang.String toString()
      Returns a string representation for debugging purposes mainly.
      • Methods inherited from class java.lang.Object

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

      • XMLBlock

        public XMLBlock()
    • Method Detail

      • setAttribute

        public void setAttribute​(java.lang.String attribute,
                                 java.lang.String value)
      • setText

        public void setText​(java.lang.String text)
      • setTypeChar

        public void setTypeChar​(char c)
      • setShortcut

        public void setShortcut​(java.lang.String shortcut)
      • getShortcut

        public java.lang.String getShortcut()
      • setCloseFlag

        public void setCloseFlag()
        Sets that this block is a closing tag.
      • setStandaloneFlag

        public void setStandaloneFlag()
        Sets that this block is a stand-alone tag.
      • setComment

        public void setComment()
      • setTagName

        public void setTagName​(java.lang.String name)
      • hasText

        public boolean hasText()
        Whether this block is a chunk of text (not a tag).
      • isTag

        public boolean isTag()
        Whether this block is a tag.
      • isStandalone

        public boolean isStandalone()
        Whether this block is a standalone tag.
      • isClose

        public boolean isClose()
        Whether this is a closing tag.
      • isComment

        public boolean isComment()
        Whether this block is a comment.
      • getText

        public java.lang.String getText()
        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 java.lang.String getTagName()
      • numAttributes

        public int numAttributes()
      • getAttribute

        public XMLAttribute getAttribute​(int n)
      • getAttribute

        public java.lang.String getAttribute​(java.lang.String name)
      • toString

        public java.lang.String toString()
        Returns a string representation for debugging purposes mainly.
        Overrides:
        toString in class java.lang.Object
      • getShortcutNumber

        public int getShortcutNumber()
        What's the shortcut number of this tag.
      • setShortcutNumber

        public void setShortcutNumber​(int shortcutNumber)
        Sets the shortcut number of this tag.