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).


Variable Index

 o attribute
The attribute's name (e.g.
 o value
The value (=the part after the = in the HTML-tag) of the attribute.

Constructor Index

 o HTMLAttribute(String, String)
Creates a new HTMLAttribute-object with the specified attribute and value.

Method Index

 o valueWOQ()

Variables

 o attribute
 public String attribute
The attribute's name (e.g. "A HREF" or "BODY BACKGROUND")

 o 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.

Constructors

 o 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)

Methods

 o 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