BrightSide Workbench Full Report + Source Code
RegisterStub.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.financials.stub;
20 
21 import java.util.Date;
22 import java.util.Set;
23 import org.turro.financials.entity.Register;
24 import org.turro.reflection.stub.DefaultStub;
25 import org.turro.reflection.stub.StubSet;
26 
31 public class RegisterStub extends DefaultStub {
32 
33  private long id;
34  private Date registerDate;
35  private long idRegister;
36  private RegisterViewStub view;
37  private boolean exclude;
38  private boolean closing;
39  private boolean regularizeVAT;
40  private boolean regularizeIRPF;
41  private DocumentStubmin document;
42  private Set<BookRegisterStub> bookRegisters = new StubSet<>(BookRegisterStub.class);
43  private Set<RegisterEntryStub> registerEntries = new StubSet<>(RegisterEntryStub.class);
44 
45  public RegisterStub(Register register) {
46  silentlyInitializeValues(register);
47  }
48 
49  public long getId() {
50  return id;
51  }
52 
53  public void setId(long id) {
54  this.id = id;
55  }
56 
57  public Date getRegisterDate() {
58  return registerDate;
59  }
60 
61  public void setRegisterDate(Date registerDate) {
62  this.registerDate = registerDate;
63  }
64 
65  public long getIdRegister() {
66  return idRegister;
67  }
68 
69  public void setIdRegister(long idRegister) {
70  this.idRegister = idRegister;
71  }
72 
74  return view;
75  }
76 
77  public void setView(RegisterViewStub view) {
78  this.view = view;
79  }
80 
81  public boolean isExclude() {
82  return exclude;
83  }
84 
85  public void setExclude(boolean exclude) {
86  this.exclude = exclude;
87  }
88 
89  public boolean isClosing() {
90  return closing;
91  }
92 
93  public void setClosing(boolean closing) {
94  this.closing = closing;
95  }
96 
97  public boolean isRegularizeVAT() {
98  return regularizeVAT;
99  }
100 
101  public void setRegularizeVAT(boolean regularizeVAT) {
102  this.regularizeVAT = regularizeVAT;
103  }
104 
105  public boolean isRegularizeIRPF() {
106  return regularizeIRPF;
107  }
108 
109  public void setRegularizeIRPF(boolean regularizeIRPF) {
110  this.regularizeIRPF = regularizeIRPF;
111  }
112 
114  return document;
115  }
116 
117  public void setDocument(DocumentStubmin document) {
118  this.document = document;
119  }
120 
121  public Set<BookRegisterStub> getBookRegisters() {
122  return bookRegisters;
123  }
124 
125  public void setBookRegisters(Set<BookRegisterStub> bookRegisters) {
126  this.bookRegisters = bookRegisters;
127  }
128 
129  public Set<RegisterEntryStub> getRegisterEntries() {
130  return registerEntries;
131  }
132 
133  public void setRegisterEntries(Set<RegisterEntryStub> registerEntries) {
134  this.registerEntries = registerEntries;
135  }
136 
137 }
Set< BookRegisterStub > getBookRegisters()
void setRegularizeIRPF(boolean regularizeIRPF)
void setRegularizeVAT(boolean regularizeVAT)
void setBookRegisters(Set< BookRegisterStub > bookRegisters)
void setRegisterEntries(Set< RegisterEntryStub > registerEntries)
void setRegisterDate(Date registerDate)
void setView(RegisterViewStub view)
Set< RegisterEntryStub > getRegisterEntries()
void setDocument(DocumentStubmin document)