All Packages Class Hierarchy This Package Previous Next Index
Class Webcrawler.Crawler.HTMLAttribute
java.lang.Object
|
+----Webcrawler.Crawler.HTMLAttribute
- public class HTMLAttribute
- extends Object
Represents an attribute of an HTML-tag. A tag consists of one or more attributes,
an attribute can have a value (after the = character).
-
attribute
- The attribute's name (e.g.
-
value
- The value (=the part after the = in the HTML-tag) of the attribute.
-
HTMLAttribute(String, String)
-
Creates a new HTMLAttribute-object with the specified attribute and value.
-
valueWOQ()
-
attribute
public String attribute
- The attribute's name (e.g. "A HREF" or "BODY BACKGROUND")
value
public String value
- The value (=the part after the = in the HTML-tag) of the attribute.
This is null if the attribute doesn't have a vlaue.
HTMLAttribute
public HTMLAttribute(String a,
String v)
- Creates a new HTMLAttribute-object with the specified attribute and value.
If the attribute doesn't have a value, call ..=new HTMLAttribute(a,null)
valueWOQ
public String valueWOQ()
- Returns:
- The value without the quotation-marks at the beginning and the end
All Packages Class Hierarchy This Package Previous Next Index