|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.antelmann.cddb.Resource
com.antelmann.cddb.Artist
public class Artist
Artist is an individual contributor to a composition and offers additional attributes applicable to a person. The Artist class offers some additional attributes over the standard resource and allows customized ordering.
Role,
Composition,
Group,
Serialized Form| Nested Class Summary | |
|---|---|
static class |
Artist.Gender
|
| Constructor Summary | |
|---|---|
Artist(String name)
|
|
Artist(String name,
String description)
|
|
Artist(String name,
String description,
Artist.Gender gender)
|
|
| Method Summary | |
|---|---|
int |
compareTo(Artist a)
uses sortName if not null and name otherwise; if the object is equal, however, 0 is returned to provide consistency |
Artist.Gender |
getGender()
can be either MALE, FEMALE or UNKNOWN |
String |
getSortName()
|
void |
setGender(Artist.Gender gender)
can be either MALE, FEMALE or UNKNOWN |
void |
setSortName(String sortName)
the sortName can be used to provide an ordering different from the name of the artist. |
| Methods inherited from class com.antelmann.cddb.Resource |
|---|
compareTo, equals, getDescription, getName, hashCode, setDescription, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Artist(String name)
public Artist(String name,
String description)
public Artist(String name,
String description,
Artist.Gender gender)
| Method Detail |
|---|
public String getSortName()
setSortName(String)public void setSortName(String sortName)
public int compareTo(Artist a)
setSortName(String)public Artist.Gender getGender()
public void setGender(Artist.Gender gender)
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||