Class TextBlock
java.lang.Object
com.meterware.httpunit.ParsedHTML
com.meterware.httpunit.BlockElement
com.meterware.httpunit.TextBlock
- All Implemented Interfaces:
HTMLElement, HTMLSegment, ScriptingEventHandler
A class which represents a block of text in a web page. Experimental.
- Since:
- 1.6
- Author:
- Russell Gold
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HTMLElementPredicatePredicate to match part or all of a block's class attribute.static final HTMLElementPredicatePredicate to match the tag associated with a block (case insensitive). -
Constructor Summary
ConstructorsConstructorDescriptionTextBlock(WebResponse response, FrameSelector frame, URL baseURL, String baseTarget, Node rootNode, String characterSet) -
Method Summary
Methods inherited from class BlockElement
doEvent, doEventScript, equals, getAttribute, getAttributeValue, getClassName, getDOM, getID, getName, getNode, getParentDelegate, getScriptingHandler, getTagName, getText, getTitle, handleEvent, hashCode, isSupportedAttribute, newScriptable, removeAttribute, setAttributeMethods inherited from class ParsedHTML
getApplets, getElementNames, getElementsWithAttribute, getElementsWithName, getElementWithID, getFirstMatchingForm, getFirstMatchingLink, getFirstMatchingTable, getFirstMatchingTextBlock, getForms, getFormWithID, getFormWithName, getFrames, getImages, getImageWithAltText, getImageWithName, getImageWithSource, getLinks, getLinkWith, getLinkWithID, getLinkWithImageText, getLinkWithName, getMatchingForms, getMatchingLinks, getMatchingTables, getNextTextBlock, getTables, getTableStartingWith, getTableStartingWithPrefix, getTableWithID, getTableWithSummary, getTextBlocks, isWebLink, toStringMethods inherited from interface HTMLSegment
getApplets, getElementNames, getElementsWithAttribute, getElementsWithName, getElementWithID, getFirstMatchingForm, getFirstMatchingLink, getFirstMatchingTable, getForms, getFormWithID, getFormWithName, getImages, getImageWithAltText, getImageWithName, getImageWithSource, getLinks, getLinkWith, getLinkWithImageText, getMatchingForms, getMatchingLinks, getMatchingTables, getTables, getTableStartingWith, getTableStartingWithPrefix, getTableWithID, getTableWithSummary, getTextBlocks
-
Field Details
-
MATCH_CLASS
Predicate to match part or all of a block's class attribute. -
MATCH_TAG
Predicate to match the tag associated with a block (case insensitive).
-
-
Constructor Details
-
TextBlock
public TextBlock(WebResponse response, FrameSelector frame, URL baseURL, String baseTarget, Node rootNode, String characterSet)
-
-
Method Details
-
getLists
Returns any lists embedded in this text block.
-