public class HeadingsData extends Object implements IPageStatisticsTag
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 |
---|
HeadingsData(Element targetE,
String text)
Constructor of the class
|
HeadingsData(String tagName,
String text,
String xpath)
Constructor of the class
|
Modifier and Type | Method and Description |
---|---|
String |
getItemXML()
Get heading tag information as XML fragment
|
String |
getTagName()
Get tag name of the heading
|
String |
getText()
Get heading text
|
String |
getXpath()
Get XPath of the heading
|
static HeadingsData |
parseItem(Attributes atts)
Extract heading tag information from XML fragment and store information
into new
HeadingsData instance. |
void |
setTagName(String tagName)
Set tag name of the heading
|
void |
setText(String text)
Set heading text
|
void |
setXpath(String xpath)
Set XPath of the heading
|
public HeadingsData(Element targetE, String text)
targetE
- target heading elementtext
- heading textpublic String getXpath()
public void setXpath(String xpath)
xpath
- public String getTagName()
public String getText()
public void setTagName(String tagName)
tagName
- tag namepublic void setText(String text)
text
- heading textpublic String getItemXML()
public static HeadingsData parseItem(Attributes atts) throws StatisticsDataFormatException
HeadingsData
instance.atts
- target Attributes
HeadingsData
StatisticsDataFormatException