|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.erowid.sperowider.htmlshredding.HTMLTag
Represents a generic HTML Tag, which consists of a name, lead and following characters (for closing tags, or for self closing tags), and a collection of attributes, some of which have values.
Constructor Summary | |
HTMLTag()
Creates an empty tag |
|
HTMLTag(String tagName)
This is instantiated with the tag name (the command at the start of the tag) *only*. |
Method Summary | |
void |
addAttributesFromTag(HTMLTag tag)
Adds in the attributes from one tag into this one. |
void |
addHTMLTagAttribute(HTMLTagAttribute hta)
Adds a new HTMLTagAttribute to this tag |
String |
getFollowChar()
Returns the follow character for this tag. |
HTMLTagAttribute |
getHTMLTagAttribute(String name)
Returns the HTMLTagAttribute with the given attribute name. |
Iterator |
getHTMLTagAttributes()
Returns an Iterator pointing to the list of HTMLTagAttribute |
String |
getLeadChar()
Returns the lead character. |
String |
getTagName()
Returns the tag name, the thing that starts a tag off (the "a" in "", etc.) |
void |
setFollowChar(char value)
Sets the follow character for this tag. |
void |
setLeadChar(char value)
Sets the lead character for this tag. |
void |
setTagName(String name)
Sets the tag name, the thing that starts a tag off (the "a" in "", etc.) |
String |
toString()
Returns the text of this tag |
void |
write(Writer w)
Writes the text version of this tag to the passed in Writer |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public HTMLTag(String tagName)
public HTMLTag()
Method Detail |
public void setLeadChar(char value)
public void setFollowChar(char value)
public String getLeadChar()
public String getFollowChar()
public void setTagName(String name)
public String getTagName()
public Iterator getHTMLTagAttributes()
public void addAttributesFromTag(HTMLTag tag)
public void addHTMLTagAttribute(HTMLTagAttribute hta)
public HTMLTagAttribute getHTMLTagAttribute(String name)
public void write(Writer w) throws IOException
write
in interface HTMLElement
w
-
IOException
public String toString()
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |