Advertisement
xlrnxnlx

topic-min

Jul 4th, 2014
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.21 KB | None | 0 0
  1. /* é o modelo do tópico...
  2.   só os getters e setters mesmo, faz um extend nesse que funciona */
  3. package formatter.model;import java.util.ArrayList;public class Topic{private final String LINE=System.getProperty("line.separator");private String title,author,developedBy,intro,outro;private ArrayList<String>functionList,stepsList,imagesList,videoList,downloadList,scanList,thanksList;public String getTitle(){return title;}
  4. public void setTitle(String title)throws TopicPropertyException{if(title.isEmpty())
  5. throw new TopicPropertyException("Título vazio.");this.title=title;}
  6. public String getAuthor(){return author;}
  7. public void setAuthor(String author)throws TopicPropertyException{if(author.isEmpty())
  8. throw new TopicPropertyException("Nome do autor vazio.");this.author=author;}
  9. public String getIntro(){return intro;}
  10. public void setIntro(String intro){this.intro=intro;}
  11. public String getOutro(){return outro;}
  12. public void setOutro(String outro){this.outro=outro;}
  13. public ArrayList<String>getThanksList(){return thanksList;}
  14. public void setThanksList(ArrayList<String>thanksList){this.thanksList=thanksList;}
  15. public ArrayList<String>getStepsList(){return stepsList;}
  16. public void setStepsList(ArrayList<String>stepsList)throws TopicPropertyException{if(stepsList.isEmpty())
  17. throw new TopicPropertyException("O 'passo-a-passo' está vazio.");this.stepsList=stepsList;}
  18. public ArrayList<String>getImagesList(){return imagesList;}
  19. public void setImagesList(ArrayList<String>imagesList){this.imagesList=imagesList;}
  20. public ArrayList<String>getDownloadList(){return downloadList;}
  21. public void setDownloadList(ArrayList<String>downloadList){this.downloadList=downloadList;}
  22. public ArrayList<String>getScanList(){return scanList;}
  23. public void setScanList(ArrayList<String>scanList){this.scanList=scanList;}
  24. public ArrayList<String>getFunctionList(){return functionList;}
  25. public void setFunctionList(ArrayList<String>functionList){this.functionList=functionList;}
  26. public ArrayList<String>getVideoList(){return videoList;}
  27. public void setVideoList(ArrayList<String>videoList){this.videoList=videoList;}
  28. public String getDevelopedBy(){return developedBy;}
  29. public void setDevelopedBy(String developedBy){this.developedBy=developedBy;}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement