BrightSide Workbench Full Report + Source Code
ChallengeStub.java
Go to the documentation of this file.
1 /*
2  * TurrĂ³ i Cutiller Foundation. License notice.
3  * Copyright (C) 2022 Lluis TurrĂ³ Cutiller <http://www.turro.org/>
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU Affero General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU Affero General Public License for more details.
14  *
15  * You should have received a copy of the GNU Affero General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 package org.turro.students.stub;
20 
21 import java.util.Date;
22 import java.util.Set;
23 import org.turro.reflection.stub.DefaultStub;
24 import org.turro.reflection.stub.StubSet;
25 import org.turro.students.entities.Challenge;
26 
31 public class ChallengeStub extends DefaultStub {
32 
33  private Long id;
34  private String entityPath;
35  private String idChallenger;
36  private String name;
37  private String question;
38  private Date creation;
39  private Date deadline;
40  private String wikiText;
41  private Set<ResponseStub> responses = new StubSet<>(ResponseStub.class);
42 
43  public ChallengeStub(Challenge challenge) {
44  silentlyInitializeValues(challenge);
45  }
46 
47  public Long getId() {
48  return id;
49  }
50 
51  public void setId(Long id) {
52  this.id = id;
53  }
54 
55  public String getEntityPath() {
56  return entityPath;
57  }
58 
59  public void setEntityPath(String entityPath) {
60  this.entityPath = entityPath;
61  }
62 
63  public String getIdChallenger() {
64  return idChallenger;
65  }
66 
67  public void setIdChallenger(String idChallenger) {
68  this.idChallenger = idChallenger;
69  }
70 
71  public String getName() {
72  return name;
73  }
74 
75  public void setName(String name) {
76  this.name = name;
77  }
78 
79  public String getQuestion() {
80  return question;
81  }
82 
83  public void setQuestion(String question) {
84  this.question = question;
85  }
86 
87  public Date getCreation() {
88  return creation;
89  }
90 
91  public void setCreation(Date creation) {
92  this.creation = creation;
93  }
94 
95  public Date getDeadline() {
96  return deadline;
97  }
98 
99  public void setDeadline(Date deadline) {
100  this.deadline = deadline;
101  }
102 
103  public String getWikiText() {
104  return wikiText;
105  }
106 
107  public void setWikiText(String wikiText) {
108  this.wikiText = wikiText;
109  }
110 
111  public Set<ResponseStub> getResponses() {
112  return responses;
113  }
114 
115  public void setResponses(Set<ResponseStub> responses) {
116  this.responses = responses;
117  }
118 
119 }
void setIdChallenger(String idChallenger)
void setEntityPath(String entityPath)
void setResponses(Set< ResponseStub > responses)