phrase nets
Public Member Functions
pn::parse::LinkerOrthographic Class Reference
Inheritance diagram for pn::parse::LinkerOrthographic:
pn::parse::Linker

List of all members.

Public Member Functions

 LinkerOrthographic ()
void setDataSource (DataSource source)
DataSource getDataSource ()
void addLinkWord (String word)
void addLinkWords (String[] words)
void removeLinkWord (String word)
void clearLinkWords ()
ParseResult link () throws PNException
boolean isReady ()

Detailed Description

A linker based on pattern-matching.


Constructor & Destructor Documentation

pn::parse::LinkerOrthographic::LinkerOrthographic ( ) [inline]

Ctor.


Member Function Documentation

void pn::parse::LinkerOrthographic::addLinkWord ( String  word) [inline]

Adds a link word.

Example: The link word " and " will cause the linker to match all phrases "X and Y", with X and Y being words, while "'s " will match "X's Y".

Parameters:
linkThe link word to add. Must not be null
void pn::parse::LinkerOrthographic::addLinkWords ( String[]  words) [inline]

Adds an array of link words; see addLinkWord().

Parameters:
wordsThe link words to add
void pn::parse::LinkerOrthographic::clearLinkWords ( ) [inline]

Clears all link words.

DataSource pn::parse::LinkerOrthographic::getDataSource ( ) [inline]
Returns:
The data source (if specified)

Implements pn::parse::Linker.

boolean pn::parse::LinkerOrthographic::isReady ( ) [inline]

Returns true if this linker is 'ready', e.g. if it has all information to start the linking process, otherwise false.

Returns:
True if this linker is ready to start

Implements pn::parse::Linker.

ParseResult pn::parse::LinkerOrthographic::link ( ) throws PNException [inline]

Parses the data source and returns the result.

Returns:
The result
Exceptions:
PNExceptionOn any erros

Implements pn::parse::Linker.

void pn::parse::LinkerOrthographic::removeLinkWord ( String  word) [inline]

Removes a link word.

Parameters:
wordThe link word to remove. Must not be null
void pn::parse::LinkerOrthographic::setDataSource ( DataSource  source) [inline]

Sets the data source to use. Must not be null

Parameters:
sourceThe data source

Implements pn::parse::Linker.


The documentation for this class was generated from the following file:
 All Classes Functions Variables