org.hfbk.vis.source.SourceRegExp Class Reference

Inheritance diagram for org.hfbk.vis.source.SourceRegExp:

Inheritance graph
[legend]
Collaboration diagram for org.hfbk.vis.source.SourceRegExp:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SourceRegExp (URL url)

Package Functions

abstract String url () throws UnsupportedEncodingException
abstract String matcher ()
abstract void parse (String[] matches) throws IOException
void buildGraph () throws IOException

Package Attributes

Matcher matcher
Node root

Detailed Description

an abstract Source to disassemble a web page into a visualisable graph by an regular expression.

first a web page, given by overriding url() is fetched.

the expression, which may contain paranthesised subgroups, defined by overriding matcher(), is applied to the whole pages content. then for every match parse(String[ ] matches) is called with the subgroups. Override this to build the graph via add(..).

See also:
SourceGoogle for a simple example.
Author:
paul

Definition at line 28 of file SourceRegExp.java.


Constructor & Destructor Documentation

org.hfbk.vis.source.SourceRegExp.SourceRegExp ( URL  url  ) 

Definition at line 30 of file SourceRegExp.java.


Member Function Documentation

abstract String org.hfbk.vis.source.SourceRegExp.url (  )  throws UnsupportedEncodingException [package, pure virtual]

override this to set URL of web page to parse

Implemented in org.hfbk.vis.source.SourceGoogle, org.hfbk.vis.source.SourceGoogleImages, org.hfbk.vis.source.SourceWikipedia, and org.hfbk.vis.source.SourceYoutube.

Referenced by org.hfbk.vis.source.SourceRegExp.buildGraph().

Here is the caller graph for this function:

abstract String org.hfbk.vis.source.SourceRegExp.matcher (  )  [package, pure virtual]

override this to regular expression to extract data

Implemented in org.hfbk.vis.source.SourceGoogle, org.hfbk.vis.source.SourceGoogleImages, org.hfbk.vis.source.SourceWikipedia, and org.hfbk.vis.source.SourceYoutube.

Referenced by org.hfbk.vis.source.SourceRegExp.buildGraph().

Here is the caller graph for this function:

abstract void org.hfbk.vis.source.SourceRegExp.parse ( String[]  matches  )  throws IOException [package, pure virtual]

override this to parse each matches subgroups

Exceptions:
IOException 

Implemented in org.hfbk.vis.source.SourceGoogle, org.hfbk.vis.source.SourceGoogleImages, and org.hfbk.vis.source.SourceWikipedia.

Referenced by org.hfbk.vis.source.SourceRegExp.buildGraph().

Here is the caller graph for this function:

void org.hfbk.vis.source.SourceRegExp.buildGraph (  )  throws IOException [package, virtual]

Implements org.hfbk.vis.source.Source.

Reimplemented in org.hfbk.vis.source.SourceWikipedia, and org.hfbk.vis.source.SourceYoutube.

Definition at line 44 of file SourceRegExp.java.

References org.hfbk.vis.source.SourceRegExp.matcher(), org.hfbk.vis.source.SourceRegExp.parse(), org.hfbk.vis.source.Source.silent, and org.hfbk.vis.source.SourceRegExp.url().

Here is the call graph for this function:


Member Data Documentation

Matcher org.hfbk.vis.source.SourceRegExp.matcher [package]

Definition at line 32 of file SourceRegExp.java.

Node org.hfbk.vis.source.SourceRegExp.root [package]

Definition at line 33 of file SourceRegExp.java.

Referenced by org.hfbk.vis.source.SourceWikipedia.buildGraph(), org.hfbk.vis.source.SourceYoutube.parse(), org.hfbk.vis.source.SourceGoogleImages.parse(), org.hfbk.vis.source.SourceGoogle.parse(), org.hfbk.vis.source.SourceGoogle.SourceGoogle(), org.hfbk.vis.source.SourceGoogleImages.SourceGoogleImages(), org.hfbk.vis.source.SourceWikipedia.SourceWikipedia(), and org.hfbk.vis.source.SourceYoutube.SourceYoutube().


The documentation for this class was generated from the following file:
Generated on Tue Apr 7 17:58:46 2009 for visclient by  doxygen 1.5.1