use of org.musicbrainz.android.api.data.ReleaseArtist in project musicbrainz-android by jdamcd.
the class RecordingSearchHandler method startElement.
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException {
if (localName.equals("recording")) {
recording = new RecordingInfo();
recording.setMbid(atts.getValue("id"));
} else if (localName.equals("title") && !inReleaseList) {
buildString();
} else if (localName.equals("artist")) {
inArtist = true;
recordingArtist = new ReleaseArtist();
recordingArtist.setMbid(atts.getValue("id"));
} else if (localName.equals("name") && inArtist) {
buildString();
} else if (localName.equals("length")) {
buildString();
} else if (localName.equals("release-list")) {
inReleaseList = true;
}
}
use of org.musicbrainz.android.api.data.ReleaseArtist in project musicbrainz-android by jdamcd.
the class ReleaseGroupLookupHandler method startElement.
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException {
if (localName.equals("release-group")) {
releaseGroup.setMbid(atts.getValue("id"));
releaseGroup.setType(atts.getValue("type"));
} else if (localName.equals("title")) {
buildString();
} else if (localName.equals("first-release-date")) {
buildString();
} else if (localName.equals("artist")) {
artist = new ReleaseArtist();
artist.setMbid(atts.getValue("id"));
inArtist = true;
} else if (localName.equals("rating")) {
releaseGroup.setRatingCount(Integer.parseInt(atts.getValue("votes-count")));
buildString();
} else if (localName.equals("name")) {
buildString();
} else if (localName.equals("tag")) {
inTag = true;
buildString();
tag = new Tag();
tag.setCount(Integer.parseInt(atts.getValue("count")));
} else if (localName.equals("relation")) {
link = new WebLink();
link.setType(atts.getValue("type"));
} else if (localName.equals("target")) {
buildString();
}
}
use of org.musicbrainz.android.api.data.ReleaseArtist in project musicbrainz-android by jdamcd.
the class ReleaseGroupSearchHandler method startElement.
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException {
if (localName.equals("release-group")) {
rg = new ReleaseGroupInfo();
rg.setMbid(atts.getValue("id"));
rg.setType(atts.getValue("type"));
} else if (localName.equals("title")) {
buildString();
} else if (localName.equals("artist")) {
inArtist = true;
releaseArtist = new ReleaseArtist();
releaseArtist.setMbid(atts.getValue("id"));
} else if (localName.equals("name") && inArtist) {
buildString();
} else if (localName.equals("release")) {
rg.addReleaseMbid(atts.getValue("id"));
}
}
use of org.musicbrainz.android.api.data.ReleaseArtist in project musicbrainz-android by jdamcd.
the class ReleaseInfoHandler method startElement.
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException {
if (localName.equals("release")) {
release = new ReleaseInfo();
release.setReleaseMbid(atts.getValue("id"));
} else if (localName.equals("title")) {
buildString();
} else if (localName.equals("artist")) {
inArtist = true;
releaseArtist = new ReleaseArtist();
releaseArtist.setMbid(atts.getValue("id"));
} else if (localName.equals("name")) {
buildString();
} else if (localName.equals("date")) {
buildString();
} else if (localName.equals("country")) {
buildString();
} else if (localName.equals("track-list")) {
String num = atts.getValue("count");
int tracks = Integer.parseInt(num);
release.setTracksNum(release.getTracksNum() + tracks);
} else if (localName.equals("label")) {
inLabel = true;
} else if (localName.equals("format")) {
buildString();
} else if (localName.equals("medium")) {
inMedium = true;
} else if (localName.equals("sort-name")) {
buildString();
}
}
use of org.musicbrainz.android.api.data.ReleaseArtist in project musicbrainz-android by jdamcd.
the class CollectionHandler method startElement.
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException {
if (localName.equals("collection")) {
collection.setMbid(atts.getValue("id"));
} else if (localName.equals("name")) {
buildString();
} else if (localName.equals("editor")) {
buildString();
} else if (localName.equals("release-list")) {
collection.setCount(Integer.parseInt(atts.getValue("count")));
} else if (localName.equals("release")) {
release = new ReleaseInfo();
release.setReleaseMbid(atts.getValue("id"));
} else if (localName.equals("title")) {
buildString();
} else if (localName.equals("date")) {
buildString();
} else if (localName.equals("country")) {
buildString();
} else if (localName.equals("artist")) {
inArtist = true;
releaseArtist = new ReleaseArtist();
releaseArtist.setMbid(atts.getValue("id"));
} else if (localName.equals("sort-name")) {
buildString();
}
}
Aggregations