public class ImageStatData extends Object implements IPageStatisticsTag
Modifier and Type | Field and Description |
---|---|
static String |
ISMAP |
static String |
LONGDESC |
static String |
USEMAP |
ALIGN, ALT, BASE, BGCOLOR, DEST, ERROR, EXISTENCE, FLASH, FLASH_INFO, HEADING, HEADINGS, HEIGHT, HREF, ID, IMAGE, IMAGES, ITEM, JAVASCRIPT, MAX, MEAN, MIN, MISSING, NAME, ORG_MAX, ORG_MEAN, ORG_MIN, REACHINGTIME, SKIPMAIN, SRC, TARGET_STRING, TOTAL, URL, VALID, VALUE, WIDTH, WRONG, XPATH
Constructor and Description |
---|
ImageStatData(org.w3c.dom.html.HTMLImageElement target,
URL baseURL)
Constructor of the class
|
Modifier and Type | Method and Description |
---|---|
void |
addProblemItem(Attributes atts)
Extract problem item information relates to the image from XML fragment
and add the information into this instance.
|
void |
addProblemItem(IProblemItem problemItem)
Add problem item relates to image
|
String |
getAlt() |
Element |
getAncestorLink() |
String |
getDestUrl() |
String |
getHeight() |
String |
getItemXML()
Get image information as XML fragment
|
String |
getLongDesc() |
Vector<IProblemItem> |
getProblemV() |
String |
getSrc() |
String |
getUrl() |
String |
getUseMap() |
String |
getWidth() |
boolean |
isHasAlt() |
boolean |
isHasHeight() |
boolean |
isHasLongDesc() |
boolean |
isHasUseMap() |
boolean |
isHasWidth() |
boolean |
isInLink() |
boolean |
isMap() |
public static final String ISMAP
public static final String USEMAP
public static final String LONGDESC
public ImageStatData(org.w3c.dom.html.HTMLImageElement target, URL baseURL)
target
- target image elementbaseURL
- base URLpublic void addProblemItem(Attributes atts) throws StatisticsDataFormatException
atts
- target Attributes
StatisticsDataFormatException
public void addProblemItem(IProblemItem problemItem)
problemItem
- target problem itempublic String getAlt()
public Element getAncestorLink()
Element
, or null if not availablepublic String getDestUrl()
public String getHeight()
public String getItemXML()
public String getLongDesc()
public Vector<IProblemItem> getProblemV()
public String getSrc()
public String getUrl()
URL.URL(URL, String)
public String getUseMap()
public String getWidth()
public boolean isHasAlt()
public boolean isHasHeight()
public boolean isHasLongDesc()
public boolean isHasUseMap()
public boolean isHasWidth()
public boolean isInLink()
public boolean isMap()