public class XMLBlock
extends java.lang.Object
Constructor and Description |
---|
XMLBlock() |
Modifier and Type | Method and 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.
|
public void setAttribute(java.lang.String attribute, java.lang.String value)
public void setText(java.lang.String text)
public void setTypeChar(char c)
public void setShortcut(java.lang.String shortcut)
public java.lang.String getShortcut()
public void setCloseFlag()
public void setStandaloneFlag()
public void setComment()
public void setTagName(java.lang.String name)
public boolean hasText()
public boolean isTag()
public boolean isStandalone()
public boolean isClose()
public boolean isComment()
public java.lang.String getText()
public java.lang.String getTagName()
public int numAttributes()
public XMLAttribute getAttribute(int n)
public java.lang.String getAttribute(java.lang.String name)
public java.lang.String toString()
toString
in class java.lang.Object
public int getShortcutNumber()
public void setShortcutNumber(int shortcutNumber)