|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnz.ac.waikato.mcennis.rat.graph.artist.decider.ArtistDeciderBase
nz.ac.waikato.mcennis.rat.graph.artist.decider.LastFMDecider
public class LastFMDecider
Class for using LastFM related-artist REST service for determining whether or not an string is an artist or not.
Method Summary | |
---|---|
void |
lookup(java.lang.String name)
Lookup the artist on LastFM using the web crawler and pre-determined parser. |
static LastFMDecider |
newInstance()
acquire a reference to this singleton object |
void |
setParser(java.lang.String type)
Sets parser type to either to be the XML parser (parsing related artists) or parsing the artist bio page (parsing HTML). |
void |
setProxy(boolean p)
Should a proxy be used |
Methods inherited from class nz.ac.waikato.mcennis.rat.graph.artist.decider.ArtistDeciderBase |
---|
addArtist, addChecked, isArtist, isChecked, output |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static LastFMDecider newInstance()
public void setParser(java.lang.String type)
type
- name of potential artistpublic void lookup(java.lang.String name)
lookup
in class ArtistDeciderBase
name
- string to be looked up.public void setProxy(boolean p)
p
- true/false on proxy.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |