|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.quiotix.html.parser.HtmlDocument.HtmlElement com.quiotix.html.parser.HtmlDocument.Tag
public static class HtmlDocument.Tag
HTML start tag. Stores the tag name and a list of tag attributes.
Field Summary | |
---|---|
HtmlDocument.AttributeList |
attributeList
A List of the tags Attributes. |
boolean |
emptyTag
Whether the tag has an empty content model eg the BR and HR tags. |
String |
tagName
The name of the tag. |
Constructor Summary | |
---|---|
HtmlDocument.Tag(String t,
HtmlDocument.AttributeList a)
Constructor. |
Method Summary | |
---|---|
void |
accept(HtmlVisitor v)
Allow the Visitor to visit. |
String |
getAttributeValue(String name)
|
int |
getLength()
|
boolean |
hasAttribute(String name)
Whether Tag has an Attribute with given name. |
boolean |
hasAttributeValue(String name)
Whether Tag has an Attribute with given name and that Attribute has a non-null value. |
void |
setEmpty(boolean b)
Set Tag type to Empty. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public String tagName
public HtmlDocument.AttributeList attributeList
public boolean emptyTag
Constructor Detail |
---|
public HtmlDocument.Tag(String t, HtmlDocument.AttributeList a)
Method Detail |
---|
public void setEmpty(boolean b)
public void accept(HtmlVisitor v)
Visitable
accept
in interface Visitable
accept
in class HtmlDocument.HtmlElement
v
- the visitor which has come to callpublic boolean hasAttribute(String name)
public boolean hasAttributeValue(String name)
public String getAttributeValue(String name)
public int getLength()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |