
Untitled
By: a guest on
May 2nd, 2012 | syntax:
Java | size: 1.15 KB | hits: 28 | expires: Never
package Classes;
import org.jdom.Element;
import java.util.*;
public class Disciplina {
private String nome;
private Element professores = new Element("professores");
private Element turmas = new Element("turmas");
private List <String> profs;
private List<Integer> profsC;
private List <String> turmaS;
public Disciplina(String nome){
this.nome = nome;
}
public void setProfessores(Element profs){
this.professores = profs;
}
public Element getProfessores(){
return professores;
}
public void setNome(String nome){
this.nome = nome;
}
public String getNome(){
return nome;
}
public void setTurmas(Element turmas){
this.turmas = turmas;
}
public Element getTurmas(){
return turmas;
}
public List <String> getProfs(){
return profs;
}
public void addProf(String profN){
this.profs.add(profN);
}
public List <String> getTurmaS(){
return turmaS;
}
public void addTurmA(String turmaN){
this.turmaS.add(turmaN);
}
public void addProfsC(int newc){
profsC.add(newc);
}
public List<Integer> getProfsC(){
return profsC;
}
}