|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jsoup.parser.Tag
public class Tag
HTML Tag specifications. This is a very simplistic model without the full expressiveness as the DTD, but it should capture most of what we need to know to intelligently parse a doc.
Method Summary | |
---|---|
boolean |
canContainBlock()
Gets if this tag can contain block tags. |
boolean |
equals(Object o)
|
String |
getName()
|
int |
hashCode()
|
boolean |
isBlock()
Gets if this is a block tag. |
boolean |
isData()
Gets if this tag is a data only tag. |
boolean |
isEmpty()
Get if this is an empty tag |
boolean |
isInline()
Gets if this tag is an inline tag. |
boolean |
preserveWhitespace()
Get if this tag should preserve whitespace within child text nodes. |
String |
toString()
|
static Tag |
valueOf(String tagName)
Get a Tag by name. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public String getName()
public static Tag valueOf(String tagName)
Pre-defined tags (P, DIV etc) will be ==, but unknown tags are not registered and will only .equals().
tagName
- Name of tag, e.g. "p". Case insensitive.
public boolean isBlock()
public boolean canContainBlock()
public boolean isInline()
public boolean isData()
public boolean isEmpty()
public boolean preserveWhitespace()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |