|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectwebapplicationtestcase.Tag
public class Tag
Represents an HTML tag.
| Constructor Summary | |
|---|---|
Tag()
Constructs a new instance. |
|
Tag(java.lang.String text)
Constructs a new instance with the given tag text. |
|
| Method Summary | |
|---|---|
java.util.Map |
getAttributes()
A map of the attributes of this tag. |
java.lang.String |
getName()
Accessor for the name of this tag. |
int |
getNodeId()
Accessor for the index of this node in HttpResponse.nodes |
java.lang.String |
getText()
Accessor for the text of the tag. |
boolean |
isComment()
|
boolean |
isEndTag()
|
boolean |
isSelfClosing()
Specifies if this tag is self closing. |
void |
setNodeId(int nodeId)
Setter for the index of this node in HttpResponse.nodes |
void |
setText(java.lang.String text)
Setter for the text of the tag. |
java.lang.String |
toString()
Returns a string representation of this tag. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Tag()
public Tag(java.lang.String text)
text - the text of the tag.| Method Detail |
|---|
public int getNodeId()
HttpResponse.nodes
public void setNodeId(int nodeId)
HttpResponse.nodes
nodeId - the index of this nodepublic java.lang.String getText()
public void setText(java.lang.String text)
"span class=\"error\" id=\"errorMessage\"",. This
method parses the tag into
text - the text of the tag.public boolean isComment()
true if this tag is a comment, false otherwise.public boolean isEndTag()
true if this tag is a closing, false otherwise.public boolean isSelfClosing()
true if this is a self closing tag, false otherwise.public java.lang.String getName()
String containing the name of this tag, e.g. "span", "div", or "a".public java.util.Map getAttributes()
String containing the
name of the attribute, and the value is a String containing the value of the attribute.public java.lang.String toString()
toString in class java.lang.Object
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||