Java Doc for HTMLSegment.java in  » Testing » HttpUnit » com » meterware » httpunit » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Testing » HttpUnit » com.meterware.httpunit 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.meterware.httpunit.HTMLSegment

All known Subclasses:   com.meterware.httpunit.BlockElement,  com.meterware.httpunit.WebResponse,
HTMLSegment
public interface HTMLSegment (Code)
Represents the parse tree for a segment of HTML.
author:
   Russell Gold




Method Summary
public  WebApplet[]getApplets()
     Returns the applets found in the page in the order in which they appear.
public  String[]getElementNames()
     Returns a list of HTML element names contained in this HTML section.
public  HTMLElementgetElementWithID(String id)
     Returns the HTMLElement found in this segment with the specified ID.
public  HTMLElement[]getElementsWithAttribute(String name, String value)
     Returns the HTMLElements found with the specified attribute value.
public  HTMLElement[]getElementsWithName(String name)
     Returns the HTMLElements found in this segment with the specified name.
public  WebFormgetFirstMatchingForm(HTMLElementPredicate predicate, Object value)
     Returns the first form found in the page matching the specified criteria.
public  WebLinkgetFirstMatchingLink(HTMLElementPredicate predicate, Object value)
     Returns the first link found in the page matching the specified criteria.
public  WebTablegetFirstMatchingTable(HTMLElementPredicate predicate, Object criteria)
     Returns the first table in the response which matches the specified predicate and value.
public  WebFormgetFormWithID(String ID)
     Returns the form found in this HTML segment with the specified ID.
public  WebFormgetFormWithName(String name)
     Returns the form found in this HTML segment with the specified name.
public  WebForm[]getForms()
     Returns the forms found in this HTML segment in the order in which they appear.
public  WebImagegetImageWithAltText(String source)
     Returns the first image found in the page with the specified alt attribute.
public  WebImagegetImageWithName(String name)
     Returns the image found in the page with the specified name.
public  WebImagegetImageWithSource(String source)
     Returns the first image found in the page with the specified src attribute.
public  WebImage[]getImages()
     Returns the images found in the page in the order in which they appear.
public  WebLinkgetLinkWith(String text)
     Returns the first link which contains the specified text.
public  WebLinkgetLinkWithImageText(String text)
     Returns the first link which contains an image with the specified text as its 'alt' attribute.
public  WebLink[]getLinks()
     Returns the links found in this HTML segment in the order in which they appear.
public  WebForm[]getMatchingForms(HTMLElementPredicate predicate, Object criteria)
     Returns all forms found in the page matching the specified criteria.
public  WebLink[]getMatchingLinks(HTMLElementPredicate predicate, Object criteria)
     Returns all links found in the page matching the specified criteria.
public  WebTable[]getMatchingTables(HTMLElementPredicate predicate, Object criteria)
     Returns all tables found in the page matching the specified criteria.
public  WebTablegetTableStartingWith(String text)
     Returns the first table in this HTML segment which has the specified text as the full text of its first non-blank row and non-blank column.
public  WebTablegetTableStartingWithPrefix(String text)
     Returns the first table in this HTML segment which has the specified text as a prefix of the text in its first non-blank row and non-blank column.
public  WebTablegetTableWithID(String ID)
     Returns the first table in this HTML segment which has the specified text as its ID attribute.
public  WebTablegetTableWithSummary(String summary)
     Returns the first table in this HTML segment which has the specified text as its summary attribute.
public  WebTable[]getTables()
     Returns the top-level tables found in this HTML segment in the order in which they appear.
public  TextBlock[]getTextBlocks()
     Returns the top-level block elements found in the page in the order in which they appear.



Method Detail
getApplets
public WebApplet[] getApplets() throws SAXException(Code)
Returns the applets found in the page in the order in which they appear.
exception:
  SAXException - thrown if there is an error parsing the segment.



getElementNames
public String[] getElementNames() throws SAXException(Code)
Returns a list of HTML element names contained in this HTML section.



getElementWithID
public HTMLElement getElementWithID(String id) throws SAXException(Code)
Returns the HTMLElement found in this segment with the specified ID.
exception:
  SAXException - thrown if there is an error parsing the segment.



getElementsWithAttribute
public HTMLElement[] getElementsWithAttribute(String name, String value) throws SAXException(Code)
Returns the HTMLElements found with the specified attribute value.
since:
   1.6



getElementsWithName
public HTMLElement[] getElementsWithName(String name) throws SAXException(Code)
Returns the HTMLElements found in this segment with the specified name.



getFirstMatchingForm
public WebForm getFirstMatchingForm(HTMLElementPredicate predicate, Object value) throws SAXException(Code)
Returns the first form found in the page matching the specified criteria.
exception:
  SAXException - thrown if there is an error parsing the response.



getFirstMatchingLink
public WebLink getFirstMatchingLink(HTMLElementPredicate predicate, Object value) throws SAXException(Code)
Returns the first link found in the page matching the specified criteria.
exception:
  SAXException - thrown if there is an error parsing the response.



getFirstMatchingTable
public WebTable getFirstMatchingTable(HTMLElementPredicate predicate, Object criteria) throws SAXException(Code)
Returns the first table in the response which matches the specified predicate and value. Will recurse into any nested tables, as needed. the selected table, or null if none is found



getFormWithID
public WebForm getFormWithID(String ID) throws SAXException(Code)
Returns the form found in this HTML segment with the specified ID.
exception:
  SAXException - thrown if there is an error parsing the segment.



getFormWithName
public WebForm getFormWithName(String name) throws SAXException(Code)
Returns the form found in this HTML segment with the specified name.
exception:
  SAXException - thrown if there is an error parsing the segment.



getForms
public WebForm[] getForms() throws SAXException(Code)
Returns the forms found in this HTML segment in the order in which they appear.
exception:
  SAXException - thrown if there is an error parsing the segment.



getImageWithAltText
public WebImage getImageWithAltText(String source) throws SAXException(Code)
Returns the first image found in the page with the specified alt attribute.
exception:
  SAXException - thrown if there is an error parsing the segment.



getImageWithName
public WebImage getImageWithName(String name) throws SAXException(Code)
Returns the image found in the page with the specified name.
exception:
  SAXException - thrown if there is an error parsing the segment.



getImageWithSource
public WebImage getImageWithSource(String source) throws SAXException(Code)
Returns the first image found in the page with the specified src attribute.
exception:
  SAXException - thrown if there is an error parsing the segment.



getImages
public WebImage[] getImages() throws SAXException(Code)
Returns the images found in the page in the order in which they appear.
exception:
  SAXException - thrown if there is an error parsing the segment.



getLinkWith
public WebLink getLinkWith(String text) throws SAXException(Code)
Returns the first link which contains the specified text.
exception:
  SAXException - thrown if there is an error parsing the segment.



getLinkWithImageText
public WebLink getLinkWithImageText(String text) throws SAXException(Code)
Returns the first link which contains an image with the specified text as its 'alt' attribute.
exception:
  SAXException - thrown if there is an error parsing the segment.



getLinks
public WebLink[] getLinks() throws SAXException(Code)
Returns the links found in this HTML segment in the order in which they appear.
exception:
  SAXException - thrown if there is an error parsing the segment.



getMatchingForms
public WebForm[] getMatchingForms(HTMLElementPredicate predicate, Object criteria) throws SAXException(Code)
Returns all forms found in the page matching the specified criteria.
exception:
  SAXException - thrown if there is an error parsing the response.



getMatchingLinks
public WebLink[] getMatchingLinks(HTMLElementPredicate predicate, Object criteria) throws SAXException(Code)
Returns all links found in the page matching the specified criteria.
exception:
  SAXException - thrown if there is an error parsing the response.



getMatchingTables
public WebTable[] getMatchingTables(HTMLElementPredicate predicate, Object criteria) throws SAXException(Code)
Returns all tables found in the page matching the specified criteria.
exception:
  SAXException - thrown if there is an error parsing the response.



getTableStartingWith
public WebTable getTableStartingWith(String text) throws SAXException(Code)
Returns the first table in this HTML segment which has the specified text as the full text of its first non-blank row and non-blank column. Will recurse into any nested tables, as needed. the selected table, or null if none is found
exception:
  SAXException - thrown if there is an error parsing the segment.



getTableStartingWithPrefix
public WebTable getTableStartingWithPrefix(String text) throws SAXException(Code)
Returns the first table in this HTML segment which has the specified text as a prefix of the text in its first non-blank row and non-blank column. Will recurse into any nested tables, as needed. the selected table, or null if none is found
exception:
  SAXException - thrown if there is an error parsing the segment.



getTableWithID
public WebTable getTableWithID(String ID) throws SAXException(Code)
Returns the first table in this HTML segment which has the specified text as its ID attribute. Will recurse into any nested tables, as needed. the selected table, or null if none is found
exception:
  SAXException - thrown if there is an error parsing the segment.



getTableWithSummary
public WebTable getTableWithSummary(String summary) throws SAXException(Code)
Returns the first table in this HTML segment which has the specified text as its summary attribute. Will recurse into any nested tables, as needed. the selected table, or null if none is found
exception:
  SAXException - thrown if there is an error parsing the segment.



getTables
public WebTable[] getTables() throws SAXException(Code)
Returns the top-level tables found in this HTML segment in the order in which they appear.
exception:
  SAXException - thrown if there is an error parsing the segment.



getTextBlocks
public TextBlock[] getTextBlocks() throws SAXException(Code)
Returns the top-level block elements found in the page in the order in which they appear.
exception:
  SAXException - thrown if there is an error parsing the segment.
since:
   1.6



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.