Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 2nd, 2012  |  syntax: Java  |  size: 1.15 KB  |  hits: 28  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. package Classes;
  2. import org.jdom.Element;
  3. import java.util.*;
  4.  
  5. public class Disciplina {
  6.         private String nome;
  7.         private Element professores = new Element("professores");
  8.         private Element turmas = new Element("turmas");
  9.        
  10.         private List <String> profs;
  11.         private List<Integer> profsC;
  12.        
  13.         private List <String> turmaS;
  14.                
  15.                
  16.         public Disciplina(String nome){
  17.                 this.nome = nome;              
  18.         }
  19.        
  20.         public void setProfessores(Element profs){
  21.                 this.professores = profs;
  22.         }
  23.        
  24.         public Element getProfessores(){
  25.                 return professores;
  26.         }
  27.        
  28.         public void setNome(String nome){
  29.                 this.nome = nome;
  30.         }
  31.        
  32.         public String getNome(){
  33.                 return nome;
  34.         }
  35.        
  36.         public void setTurmas(Element turmas){
  37.                 this.turmas = turmas;
  38.         }
  39.        
  40.         public Element getTurmas(){
  41.                 return turmas;
  42.         }
  43.        
  44.         public List <String> getProfs(){
  45.                 return profs;
  46.         }
  47.        
  48.         public void addProf(String profN){
  49.                 this.profs.add(profN);
  50.         }
  51.        
  52.         public List <String> getTurmaS(){
  53.                 return turmaS;
  54.         }
  55.        
  56.         public void addTurmA(String turmaN){
  57.                 this.turmaS.add(turmaN);
  58.         }      
  59.        
  60.         public void addProfsC(int newc){
  61.                 profsC.add(newc);
  62.         }
  63.        
  64.         public List<Integer> getProfsC(){
  65.                 return profsC;
  66.         }
  67. }