nz.ac.waikato.mcennis.rat.graph.artist.decider
Interface ArtistDecider

All Superinterfaces:
ParsedObject
All Known Implementing Classes:
ArtistDeciderBase, BasicArtistDecider, GoogleDecider, LastFMDecider, YahooArtistDecider

public interface ArtistDecider
extends ParsedObject

Interface for providing a binary responce to whether a given String belongs to the class this class differentiates. It is called ArtistDecider because its first implementation is in deciding whether or not a String based property is an artist's name or not.


Method Summary
 void addArtist(java.lang.String name)
          Add this string to the list of those belonging (is an artist name)
 void addChecked(java.lang.String name)
          Add this string as not belonging to the class (not an artist)
 boolean isArtist(java.lang.String name)
          Does this String belong to this class
 void output(java.io.Writer outs)
          Write this object's data on artist or not to an XML file.
 void setProxy(boolean p)
          Should output be done using a proxy or not.
 

Method Detail

isArtist

boolean isArtist(java.lang.String name)
Does this String belong to this class

Parameters:
name - string to be checked
Returns:
does it belong (is an artist's name)

output

void output(java.io.Writer outs)
            throws java.io.IOException
Write this object's data on artist or not to an XML file.

Parameters:
outs - output writer to write to
Throws:
java.io.IOException

setProxy

void setProxy(boolean p)
Should output be done using a proxy or not.

Parameters:
p -

addChecked

void addChecked(java.lang.String name)
Add this string as not belonging to the class (not an artist)

Parameters:
name - non-artist to be added.

addArtist

void addArtist(java.lang.String name)
Add this string to the list of those belonging (is an artist name)

Parameters:
name - string to be added