|
||||||||||
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
public abstract class ArtistDeciderBase
Common base class for deciding whether or not something belongs to a class or not. Provides the abstract lookup method to implement class specific lookup code.
Constructor Summary | |
---|---|
protected |
ArtistDeciderBase()
Creates a new instance of GoogleArtistDecider |
Method Summary | |
---|---|
void |
addArtist(java.lang.String a)
Manually adds an artist to the list of known artists |
void |
addChecked(java.lang.String c)
Manually adds to the list of seen artists, but not known artists, effectively labeling it non-artist. |
boolean |
isArtist(java.lang.String name)
Basic outline of a checked name. |
protected boolean |
isChecked(java.lang.String name)
Has this decider seen this particular string before? |
protected abstract void |
lookup(java.lang.String name)
Overridden to provide a means of determining an artist from a non-artist |
static ArtistDeciderBase |
newInstance()
Only mechanism for getting access to this singleton object. |
void |
output(java.io.Writer outs)
Write this decider to XML. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface nz.ac.waikato.mcennis.rat.graph.artist.decider.ArtistDecider |
---|
setProxy |
Constructor Detail |
---|
protected ArtistDeciderBase()
Method Detail |
---|
public static ArtistDeciderBase newInstance()
public boolean isArtist(java.lang.String name)
isArtist
in interface ArtistDecider
name
- string to be checked
protected abstract void lookup(java.lang.String name)
name
- string to be checkedprotected boolean isChecked(java.lang.String name)
name
- name of string
public void output(java.io.Writer outs) throws java.io.IOException
output
in interface ArtistDecider
outs
- place to write the data
java.io.IOException
public void addArtist(java.lang.String a)
addArtist
in interface ArtistDecider
a
- public void addChecked(java.lang.String c)
addChecked
in interface ArtistDecider
c
- non-artist string to be added.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |