Java Doc for ParsedHTML.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) 


java.lang.Object
   com.meterware.httpunit.ParsedHTML

All known Subclasses:   com.meterware.httpunit.BlockElement,  com.meterware.httpunit.HTMLPage,
ParsedHTML
class ParsedHTML (Code)

author:
   Russell Gold
author:
   Benoit Xhenseval

Inner Class :static class HtmlElementRecorder
Inner Class :abstract static class HTMLElementFactory extends HtmlElementRecorder
Inner Class :static class DefaultElementFactory extends HTMLElementFactory
Inner Class :static class WebFormFactory extends HTMLElementFactory
Inner Class :static class WebLinkFactory extends HTMLElementFactory
Inner Class :static class TextBlockFactory extends HTMLElementFactory
Inner Class :static class ScriptFactory extends HTMLElementFactory
Inner Class :static class NoScriptFactory extends HTMLElementFactory
Inner Class :static class WebFrameFactory extends HTMLElementFactory
Inner Class :static class WebIFrameFactory extends HTMLElementFactory
Inner Class :static class WebImageFactory extends HTMLElementFactory
Inner Class :static class WebAppletFactory extends HTMLElementFactory
Inner Class :static class WebTableFactory extends HTMLElementFactory
Inner Class :static class TableRowFactory extends HTMLElementFactory
Inner Class :static class TableCellFactory extends HTMLElementFactory
Inner Class :static class FormControlFactory extends HTMLElementFactory
Inner Class :static class WebListFactory extends HTMLElementFactory
Inner Class :static class ListItemFactory extends HTMLElementFactory
Inner Class :class WebIFrame extends WebFrame implements ContentConcealer
Inner Class :class NoScriptElement extends HTMLElementBase implements ContentConcealer


Constructor Summary
 ParsedHTML(WebResponse response, FrameSelector frame, URL baseURL, String baseTarget, Node rootNode, String characterSet)
    

Method Summary
public  WebApplet[]getApplets()
     Returns a proxy for each applet found embedded in this page.
 URLgetBaseURL()
     Returns the base URL for this HTML segment.
public  NodegetDOM()
     Returns a copy of the domain object model associated with this page.
public  String[]getElementNames()
     Returns a list of HTML element names contained in this HTML section.
public  HTMLElementgetElementWithID(String id)
     Returns the HTMLElement with the specified ID.
 HTMLElement[]getElementsByTagName(Node dom, String name)
    
public  HTMLElement[]getElementsWithAttribute(String name, String value)
     Returns the HTML elements with an attribute with the specified name and value.
public  HTMLElement[]getElementsWithName(String name)
     Returns the HTML elements with the specified name.
public  WebFormgetFirstMatchingForm(HTMLElementPredicate predicate, Object criteria)
     Returns the first link found in the page matching the specified criteria.
public  WebLinkgetFirstMatchingLink(HTMLElementPredicate predicate, Object criteria)
     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  TextBlockgetFirstMatchingTextBlock(HTMLElementPredicate predicate, Object criteria)
     Returns the first text block found in the page which matches the specified predicate and value.
public  WebFormgetFormWithID(String id)
     Returns the form found in the page with the specified ID.
public  WebFormgetFormWithName(String name)
     Returns the form found in the page with the specified name.
public  WebForm[]getForms()
     Returns the forms found in the page in the order in which they appear.
public  WebFrame[]getFrames()
     Returns the frames found in the page in the order in which they appear.
public  WebImagegetImageWithAltText(String altText)
     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.
 StringgetIncludedScript(String srcAttribute)
     Returns the contents of an included script, given its src attribute.
public  WebLinkgetLinkWith(String text)
     Returns the first link which contains the specified text.
public  WebLinkgetLinkWithID(String id)
     Returns the link found in the page with the specified ID.
public  WebLinkgetLinkWithImageText(String text)
     Returns the link which contains the first image with the specified text as its 'alt' attribute.
public  WebLinkgetLinkWithName(String name)
     Returns the link found in the page with the specified name.
public  WebLink[]getLinks()
     Returns the links found in the page in the order in which they appear.
public  WebForm[]getMatchingForms(HTMLElementPredicate predicate, Object criteria)
     Returns all links 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 the tables in the response which match the specified predicate and value.
public  TextBlockgetNextTextBlock(TextBlock block)
    
 NodegetOriginalDOM()
     Returns the domain object model associated with this page, to be used internally.
 WebResponsegetResponse()
    
 NodegetRootNode()
    
public  WebTablegetTableStartingWith(String text)
     Returns the first table in the response 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 the response 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 the response which has the specified text as its ID attribute.
public  WebTablegetTableWithSummary(String summary)
     Returns the first table in the response which has the specified text as its summary attribute.
public  WebTable[]getTables()
     Returns the top-level tables found in the page 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.
 voidsetRootNode(Node rootNode)
     Specifies the root node for this HTML fragment.
public  StringtoString()
    


Constructor Detail
ParsedHTML
ParsedHTML(WebResponse response, FrameSelector frame, URL baseURL, String baseTarget, Node rootNode, String characterSet)(Code)




Method Detail
getApplets
public WebApplet[] getApplets()(Code)
Returns a proxy for each applet found embedded in this page.



getBaseURL
URL getBaseURL()(Code)
Returns the base URL for this HTML segment.



getDOM
public Node getDOM()(Code)
Returns a copy of the domain object model associated with this page.



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



getElementWithID
public HTMLElement getElementWithID(String id)(Code)
Returns the HTMLElement with the specified ID.



getElementsByTagName
HTMLElement[] getElementsByTagName(Node dom, String name)(Code)



getElementsWithAttribute
public HTMLElement[] getElementsWithAttribute(String name, String value)(Code)
Returns the HTML elements with an attribute with the specified name and value.



getElementsWithName
public HTMLElement[] getElementsWithName(String name)(Code)
Returns the HTML elements with the specified name.



getFirstMatchingForm
public WebForm getFirstMatchingForm(HTMLElementPredicate predicate, Object criteria)(Code)
Returns the first link found in the page matching the specified criteria.



getFirstMatchingLink
public WebLink getFirstMatchingLink(HTMLElementPredicate predicate, Object criteria)(Code)
Returns the first link found in the page matching the specified criteria.



getFirstMatchingTable
public WebTable getFirstMatchingTable(HTMLElementPredicate predicate, Object criteria)(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



getFirstMatchingTextBlock
public TextBlock getFirstMatchingTextBlock(HTMLElementPredicate predicate, Object criteria)(Code)
Returns the first text block found in the page which matches the specified predicate and value.



getFormWithID
public WebForm getFormWithID(String id)(Code)
Returns the form found in the page with the specified ID.



getFormWithName
public WebForm getFormWithName(String name)(Code)
Returns the form found in the page with the specified name.



getForms
public WebForm[] getForms()(Code)
Returns the forms found in the page in the order in which they appear.



getFrames
public WebFrame[] getFrames()(Code)
Returns the frames found in the page in the order in which they appear.



getImageWithAltText
public WebImage getImageWithAltText(String altText)(Code)
Returns the first image found in the page with the specified alt attribute.



getImageWithName
public WebImage getImageWithName(String name)(Code)
Returns the image found in the page with the specified name.



getImageWithSource
public WebImage getImageWithSource(String source)(Code)
Returns the first image found in the page with the specified src attribute.



getImages
public WebImage[] getImages()(Code)
Returns the images found in the page in the order in which they appear.



getIncludedScript
String getIncludedScript(String srcAttribute) throws IOException(Code)
Returns the contents of an included script, given its src attribute.
Parameters:
  srcAttribute - the contents of the script.
throws:
  java.io.IOException - if there is a problem retrieving the script



getLinkWith
public WebLink getLinkWith(String text)(Code)
Returns the first link which contains the specified text.



getLinkWithID
public WebLink getLinkWithID(String id)(Code)
Returns the link found in the page with the specified ID.



getLinkWithImageText
public WebLink getLinkWithImageText(String text)(Code)
Returns the link which contains the first image with the specified text as its 'alt' attribute.



getLinkWithName
public WebLink getLinkWithName(String name)(Code)
Returns the link found in the page with the specified name.



getLinks
public WebLink[] getLinks()(Code)
Returns the links found in the page in the order in which they appear.



getMatchingForms
public WebForm[] getMatchingForms(HTMLElementPredicate predicate, Object criteria)(Code)
Returns all links found in the page matching the specified criteria.



getMatchingLinks
public WebLink[] getMatchingLinks(HTMLElementPredicate predicate, Object criteria)(Code)
Returns all links found in the page matching the specified criteria.



getMatchingTables
public WebTable[] getMatchingTables(HTMLElementPredicate predicate, Object criteria)(Code)
Returns the tables in the response which match the specified predicate and value. Will recurse into any nested tables, as needed. the selected tables, or null if none are found



getNextTextBlock
public TextBlock getNextTextBlock(TextBlock block)(Code)



getOriginalDOM
Node getOriginalDOM()(Code)
Returns the domain object model associated with this page, to be used internally.



getResponse
WebResponse getResponse()(Code)



getRootNode
Node getRootNode()(Code)



getTableStartingWith
public WebTable getTableStartingWith(String text)(Code)
Returns the first table in the response 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



getTableStartingWithPrefix
public WebTable getTableStartingWithPrefix(String text)(Code)
Returns the first table in the response 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



getTableWithID
public WebTable getTableWithID(String ID)(Code)
Returns the first table in the response 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



getTableWithSummary
public WebTable getTableWithSummary(String summary)(Code)
Returns the first table in the response 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



getTables
public WebTable[] getTables()(Code)
Returns the top-level tables found in the page in the order in which they appear.



getTextBlocks
public TextBlock[] getTextBlocks()(Code)
Returns the top-level block elements found in the page in the order in which they appear.



setRootNode
void setRootNode(Node rootNode)(Code)
Specifies the root node for this HTML fragment.



toString
public String toString()(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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