Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* é o modelo do tópico...
- só os getters e setters mesmo, faz um extend nesse que funciona */
- 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;}
- public void setTitle(String title)throws TopicPropertyException{if(title.isEmpty())
- throw new TopicPropertyException("Título vazio.");this.title=title;}
- public String getAuthor(){return author;}
- public void setAuthor(String author)throws TopicPropertyException{if(author.isEmpty())
- throw new TopicPropertyException("Nome do autor vazio.");this.author=author;}
- public String getIntro(){return intro;}
- public void setIntro(String intro){this.intro=intro;}
- public String getOutro(){return outro;}
- public void setOutro(String outro){this.outro=outro;}
- public ArrayList<String>getThanksList(){return thanksList;}
- public void setThanksList(ArrayList<String>thanksList){this.thanksList=thanksList;}
- public ArrayList<String>getStepsList(){return stepsList;}
- public void setStepsList(ArrayList<String>stepsList)throws TopicPropertyException{if(stepsList.isEmpty())
- throw new TopicPropertyException("O 'passo-a-passo' está vazio.");this.stepsList=stepsList;}
- public ArrayList<String>getImagesList(){return imagesList;}
- public void setImagesList(ArrayList<String>imagesList){this.imagesList=imagesList;}
- public ArrayList<String>getDownloadList(){return downloadList;}
- public void setDownloadList(ArrayList<String>downloadList){this.downloadList=downloadList;}
- public ArrayList<String>getScanList(){return scanList;}
- public void setScanList(ArrayList<String>scanList){this.scanList=scanList;}
- public ArrayList<String>getFunctionList(){return functionList;}
- public void setFunctionList(ArrayList<String>functionList){this.functionList=functionList;}
- public ArrayList<String>getVideoList(){return videoList;}
- public void setVideoList(ArrayList<String>videoList){this.videoList=videoList;}
- public String getDevelopedBy(){return developedBy;}
- public void setDevelopedBy(String developedBy){this.developedBy=developedBy;}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement