|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.dbsystems.simplescrape.HTMLTagAttributes
public class HTMLTagAttributes
Defines a class for parsing and storing the attributes of an HTML tag. Note that the attributes are not parsed until they are actually needed.
Field Summary | |
---|---|
static java.lang.String |
NO_VALUE
|
static java.lang.String |
QUOTATION_CHARS
|
Constructor Summary | |
---|---|
HTMLTagAttributes(java.lang.String attributesString)
Constructs new attributes from a string. |
Method Summary | |
---|---|
boolean |
exists(java.lang.String name)
Returns, whether an attribute was defined within this tag. |
java.lang.String |
get(java.lang.String name)
Get the value of a given attribute. |
java.util.Enumeration<java.lang.String> |
getAttributeNames()
Returns an enumeration of all the attribute names found. |
int |
getSize()
Return the number of attributes stored herein. |
boolean |
match(HTMLTagAttributes other,
ScrapeOptions options)
|
java.lang.String |
toString()
Returns the attribute string. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String NO_VALUE
public static final java.lang.String QUOTATION_CHARS
Constructor Detail |
---|
public HTMLTagAttributes(java.lang.String attributesString)
attributesString
- The attribute string from inside the
tag. Example: if the tag is "Method Detail |
---|
public boolean exists(java.lang.String name)
name
- The name of the attribute to be checked.
public java.lang.String get(java.lang.String name)
name
- The attribute name (not case-sensitive).
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Enumeration<java.lang.String> getAttributeNames()
public int getSize()
public boolean match(HTMLTagAttributes other, ScrapeOptions options)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |