BrightSide Workbench Full Report + Source Code
FixedAssetStub.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.Set;
22 import org.turro.financials.entity.FixedAsset;
23 import org.turro.reflection.stub.DefaultStub;
24 import org.turro.reflection.stub.StubSet;
25 
30 public class FixedAssetStub extends DefaultStub {
31 
32  private long id;
33  private String name;
34  private double depreciated;
35  private double investment;
36  private boolean unsubscribed;
37  private Set<FixedAssetDepreciationStub> depreciations = new StubSet<>(FixedAssetDepreciationStub.class);
38  private Set<DocumentLineStubmin> documentLines = new StubSet<>(DocumentLineStubmin.class);
39  private ContractPreferenceStubmin investmentPreference;
40  private LineTypeStubmin depreciationLineType;
41  private RegisterViewStub view;
42  private ContractStubmin store;
43  private String notes;
44 
45  public FixedAssetStub(FixedAsset fixedAsset) {
46  silentlyInitializeValues(fixedAsset);
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 String getName() {
58  return name;
59  }
60 
61  public void setName(String name) {
62  this.name = name;
63  }
64 
65  public double getDepreciated() {
66  return depreciated;
67  }
68 
69  public void setDepreciated(double depreciated) {
70  this.depreciated = depreciated;
71  }
72 
73  public double getInvestment() {
74  return investment;
75  }
76 
77  public void setInvestment(double investment) {
78  this.investment = investment;
79  }
80 
81  public boolean isUnsubscribed() {
82  return unsubscribed;
83  }
84 
85  public void setUnsubscribed(boolean unsubscribed) {
86  this.unsubscribed = unsubscribed;
87  }
88 
89  public Set<FixedAssetDepreciationStub> getDepreciations() {
90  return depreciations;
91  }
92 
93  public void setDepreciations(Set<FixedAssetDepreciationStub> depreciations) {
94  this.depreciations = depreciations;
95  }
96 
97  public Set<DocumentLineStubmin> getDocumentLines() {
98  return documentLines;
99  }
100 
101  public void setDocumentLines(Set<DocumentLineStubmin> documentLines) {
102  this.documentLines = documentLines;
103  }
104 
106  return investmentPreference;
107  }
108 
109  public void setInvestmentPreference(ContractPreferenceStubmin investmentPreference) {
110  this.investmentPreference = investmentPreference;
111  }
112 
114  return depreciationLineType;
115  }
116 
117  public void setDepreciationLineType(LineTypeStubmin depreciationLineType) {
118  this.depreciationLineType = depreciationLineType;
119  }
120 
122  return view;
123  }
124 
125  public void setView(RegisterViewStub view) {
126  this.view = view;
127  }
128 
130  return store;
131  }
132 
133  public void setStore(ContractStubmin store) {
134  this.store = store;
135  }
136 
137  public String getNotes() {
138  return notes;
139  }
140 
141  public void setNotes(String notes) {
142  this.notes = notes;
143  }
144 
145 }
ContractPreferenceStubmin getInvestmentPreference()
void setStore(ContractStubmin store)
Set< DocumentLineStubmin > getDocumentLines()
void setDepreciationLineType(LineTypeStubmin depreciationLineType)
void setInvestmentPreference(ContractPreferenceStubmin investmentPreference)
void setDocumentLines(Set< DocumentLineStubmin > documentLines)
void setUnsubscribed(boolean unsubscribed)
Set< FixedAssetDepreciationStub > getDepreciations()
void setDepreciations(Set< FixedAssetDepreciationStub > depreciations)