BrightSide Workbench Full Report + Source Code
DescriptorDefinitionStub.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.dossier.stub;
20 
21 import org.turro.dossier.entity.DescriptorDefinition;
22 import org.turro.dossier.entity.DescriptorType;
23 import org.turro.reflection.stub.DefaultStub;
24 
29 public class DescriptorDefinitionStub extends DefaultStub {
30 
31  private String grouping, title;
32  private int orderNumber, minChars;
33  private boolean required;
34  private DescriptorType type;
35 
36  public DescriptorDefinitionStub(DescriptorDefinition descriptorDefinition) {
37  silentlyInitializeValues(descriptorDefinition);
38  }
39 
40  public String getGrouping() {
41  return grouping;
42  }
43 
44  public void setGrouping(String grouping) {
45  this.grouping = grouping;
46  }
47 
48  public String getTitle() {
49  return title;
50  }
51 
52  public void setTitle(String title) {
53  this.title = title;
54  }
55 
56  public int getOrderNumber() {
57  return orderNumber;
58  }
59 
60  public void setOrderNumber(int orderNumber) {
61  this.orderNumber = orderNumber;
62  }
63 
64  public int getMinChars() {
65  return minChars;
66  }
67 
68  public void setMinChars(int minChars) {
69  this.minChars = minChars;
70  }
71 
72  public boolean isRequired() {
73  return required;
74  }
75 
76  public void setRequired(boolean required) {
77  this.required = required;
78  }
79 
81  return type;
82  }
83 
84  public void setType(DescriptorType type) {
85  this.type = type;
86  }
87 
88 }
DescriptorDefinitionStub(DescriptorDefinition descriptorDefinition)