Java Doc for ParsedHtml.java in  » Web-Framework » rife-1.6.1 » com » uwyn » rife » test » 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 » Web Framework » rife 1.6.1 » com.uwyn.rife.test 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.uwyn.rife.test.ParsedHtml

ParsedHtml
public class ParsedHtml (Code)
Retrieves the text content of a MockResponse and parses it as HTML.
author:
   Geert Bevin (gbevin[remove] at uwyn dot com)
version:
   $Revision: 3846 $
since:
   1.1




Method Summary
public  DocumentgetDocument()
     Retrieves the DOM XML document that corresponds to the parsed HTML.
public  MockFormgetFormWithId(String id)
     Retrieves the first form in the HTML document with a particular id attribute.
public  MockFormgetFormWithName(String name)
     Retrieves the first form in the HTML document with a particular name attribute.
public  List<MockForm>getForms()
     Retrieves the list of all the forms in the HTML document.
public  MockLinkgetLinkWithId(String id)
     Retrieves the first link in the HTML document with a particular id attribute.
public  MockLinkgetLinkWithImageAlt(String alt)
     Retrieves the first link in the HTML document that surrounds an img tag with a certain alt attribute.
public  MockLinkgetLinkWithImageName(String name)
     Retrieves the first link in the HTML document that surrounds an img tag with a certain name attribute.
public  MockLinkgetLinkWithName(String name)
     Retrieves the first link in the HTML document with a particular name attribute.
public  MockLinkgetLinkWithText(String text)
     Retrieves the first link in the HTML document that surrounds a particular text.
public  List<MockLink>getLinks()
     Retrieves the list of all the links in the HTML document.
public static  StringgetNodeAttribute(Node node, String attributeName)
     Retrieves the value of the attribute of an XML DOM node.
static  StringgetNodeAttribute(Node node, String attributeName, String defaultValue)
    
public  StringgetTitle()
     Retrieves the text of the title tag.
public static  ParsedHtmlparse(MockResponse response)
     Parses the text content of a MockResponse object as HTML and returns the result as an instance of ParsedHtml.
static  ParsedHtmlparse(MockResponse response, String text)
    



Method Detail
getDocument
public Document getDocument()(Code)
Retrieves the DOM XML document that corresponds to the parsed HTML. the DOM XML document
since:
   1.1



getFormWithId
public MockForm getFormWithId(String id)(Code)
Retrieves the first form in the HTML document with a particular id attribute.
Parameters:
  id - the content of the id attribute the first MockForm whose id attributematches; or

null if no such form could be found
See Also:   ParsedHtml.getForms
See Also:   ParsedHtml.getFormWithName
since:
   1.1




getFormWithName
public MockForm getFormWithName(String name)(Code)
Retrieves the first form in the HTML document with a particular name attribute.
Parameters:
  name - the content of the name attribute the first MockForm whose name attributematches; or

null if no such form could be found
See Also:   ParsedHtml.getForms
See Also:   ParsedHtml.getFormWithId
since:
   1.1




getForms
public List<MockForm> getForms()(Code)
Retrieves the list of all the forms in the HTML document. a list with MockForm instances
See Also:   ParsedHtml.getFormWithName
See Also:   ParsedHtml.getFormWithId
since:
   1.1



getLinkWithId
public MockLink getLinkWithId(String id)(Code)
Retrieves the first link in the HTML document with a particular id attribute.
Parameters:
  id - the content of the id attribute the first MockLink whose id attributematches; or

null if no such link could be found
See Also:   ParsedHtml.getLinks
See Also:   ParsedHtml.getLinkWithName
See Also:   ParsedHtml.getLinkWithText
See Also:   ParsedHtml.getLinkWithImageAlt
See Also:   ParsedHtml.getLinkWithImageName
since:
   1.1




getLinkWithImageAlt
public MockLink getLinkWithImageAlt(String alt)(Code)
Retrieves the first link in the HTML document that surrounds an img tag with a certain alt attribute.
Parameters:
  alt - the content of the alt attribute the first MockLink that has an img tagwhose alt attribute matches; or

null if no such link could be found
See Also:   ParsedHtml.getLinks
See Also:   ParsedHtml.getLinkWithName
See Also:   ParsedHtml.getLinkWithId
See Also:   ParsedHtml.getLinkWithText
See Also:   ParsedHtml.getLinkWithImageName
since:
   1.1




getLinkWithImageName
public MockLink getLinkWithImageName(String name)(Code)
Retrieves the first link in the HTML document that surrounds an img tag with a certain name attribute.
Parameters:
  name - the content of the name attribute the first MockLink that has an img tagwhose name attribute matches; or

null if no such link could be found
See Also:   ParsedHtml.getLinks
See Also:   ParsedHtml.getLinkWithName
See Also:   ParsedHtml.getLinkWithId
See Also:   ParsedHtml.getLinkWithText
See Also:   ParsedHtml.getLinkWithImageAlt
since:
   1.1




getLinkWithName
public MockLink getLinkWithName(String name)(Code)
Retrieves the first link in the HTML document with a particular name attribute.
Parameters:
  name - the content of the name attribute the first MockLink whose name attributematches; or

null if no such link could be found
See Also:   ParsedHtml.getLinks
See Also:   ParsedHtml.getLinkWithId
See Also:   ParsedHtml.getLinkWithText
See Also:   ParsedHtml.getLinkWithImageAlt
See Also:   ParsedHtml.getLinkWithImageName
since:
   1.1




getLinkWithText
public MockLink getLinkWithText(String text)(Code)
Retrieves the first link in the HTML document that surrounds a particular text.
Parameters:
  text - the surrounded text the first MockLink whose surrounded text matches; or

null if no such link could be found
See Also:   ParsedHtml.getLinks
See Also:   ParsedHtml.getLinkWithName
See Also:   ParsedHtml.getLinkWithId
See Also:   ParsedHtml.getLinkWithText
See Also:   ParsedHtml.getLinkWithImageName
since:
   1.1




getLinks
public List<MockLink> getLinks()(Code)
Retrieves the list of all the links in the HTML document. a list with MockLink instances
See Also:   ParsedHtml.getLinkWithName
See Also:   ParsedHtml.getLinkWithId
See Also:   ParsedHtml.getLinkWithText
See Also:   ParsedHtml.getLinkWithImageAlt
See Also:   ParsedHtml.getLinkWithImageName
since:
   1.1



getNodeAttribute
public static String getNodeAttribute(Node node, String attributeName)(Code)
Retrieves the value of the attribute of an XML DOM node.
Parameters:
  node - the node where the attribute should be obtained from
Parameters:
  attributeName - the name of the attribute the value of the attribute; or

null if no attribute could be found
since:
   1.2




getNodeAttribute
static String getNodeAttribute(Node node, String attributeName, String defaultValue)(Code)



getTitle
public String getTitle()(Code)
Retrieves the text of the title tag. the title
since:
   1.1



parse
public static ParsedHtml parse(MockResponse response) throws IOException, SAXException(Code)
Parses the text content of a MockResponse object as HTML and returns the result as an instance of ParsedHtml.
Parameters:
  response - the response whose text content will be parsed the resulting instance of ParsedHtml
since:
   1.1



parse
static ParsedHtml parse(MockResponse response, String text) throws IOException, SAXException(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.