No Description

f2a902e8fb1802aacd230850873b163a8ad75a45.svn-base 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. package com.rdlze.radializebase.interfaces;
  2. import java.io.IOException;
  3. import javax.xml.parsers.ParserConfigurationException;
  4. import org.xml.sax.SAXException;
  5. import com.rdlze.radializeutils.objects.BigTitleResp;
  6. import com.rdlze.radializeutils.objects.MBResp;
  7. public class MusicBrainzControllerMock implements
  8. InterfaceMusicBrainzController {
  9. @Override
  10. public BigTitleResp searchBigTitle(String bigTitle, int nGramSize,
  11. int numResults, boolean shallContainResp) throws IOException {
  12. if(bigTitle!=null && bigTitle.toLowerCase().equals("black sabbath paranoid"))
  13. return new BigTitleResp("Black Sabbath", "Paranoid");
  14. return new BigTitleResp("", "");
  15. }
  16. @Override
  17. public MBResp searchBigTitle(String bigTitle, int nGramSize)
  18. throws IOException, ParserConfigurationException, SAXException,
  19. InterruptedException {
  20. // TODO Auto-generated method stub
  21. return null;
  22. }
  23. @Override
  24. public MBResp searchArtSong(String artist, String song,
  25. boolean proximitySearch, int limit, int offset, String hostMB)
  26. throws ParserConfigurationException, SAXException, IOException,
  27. InterruptedException {
  28. // TODO Auto-generated method stub
  29. return null;
  30. }
  31. @Override
  32. public MBResp searchArtSong(String artist, String song,
  33. boolean proximitySearch, int limit) throws IOException {
  34. // TODO Auto-generated method stub
  35. return null;
  36. }
  37. }