View Javadoc

1   package org.kuali.ole.describe.bo.marc.structuralfields;
2   
3   import java.io.Serializable;
4   
5   /**
6    * Class for handling leader and its structural fields
7    */
8   public class LeaderField implements Serializable {
9       private String leader;
10      private String length = "#####";
11      private String recStatus = "n";
12      private String type = "a";
13      private String bibLevel = "m";
14      private String typeOfControl = "#";
15      private String coding = "a";
16      private int indicatorCount = 2;
17      private int subfieldCount = 2;
18      private String baseAddress = "#####";
19      private String encodingLevel = "#";
20      private String descCatalogForm = "a";
21      private String multipartRecordLevel = "#";
22      private int lengthOfLengthOfField = 4;
23      private int lengthOfStartingCharacterPosition = 5;
24      private int lengthOfImplementationDefined = 0;
25      private int undefined = 0;
26      private String test1;
27      private String test2;
28  
29      public String getLeader() {
30          return leader;
31      }
32  
33      public void setLeader(String leader) {
34          this.leader = leader;
35      }
36  
37      public String getRecStatus() {
38          return recStatus;
39      }
40  
41      public String getLength() {
42          return length;
43      }
44  
45      public void setLength(String length) {
46          this.length = length;
47      }
48  
49      public void setRecStatus(String recStatus) {
50          this.recStatus = recStatus;
51      }
52  
53      public String getType() {
54          return type;
55      }
56  
57      public void setType(String type) {
58          this.type = type;
59      }
60  
61      public String getBibLevel() {
62          return bibLevel;
63      }
64  
65      public void setBibLevel(String bibLevel) {
66          this.bibLevel = bibLevel;
67      }
68  
69      public String getTypeOfControl() {
70          return typeOfControl;
71      }
72  
73      public void setTypeOfControl(String typeOfControl) {
74          this.typeOfControl = typeOfControl;
75      }
76  
77      public String getCoding() {
78          return coding;
79      }
80  
81      public void setCoding(String coding) {
82          this.coding = coding;
83      }
84  
85      public int getIndicatorCount() {
86          return indicatorCount;
87      }
88  
89      public void setIndicatorCount(int indicatorCount) {
90          this.indicatorCount = indicatorCount;
91      }
92  
93      public int getSubfieldCount() {
94          return subfieldCount;
95      }
96  
97      public void setSubfieldCount(int subfieldCount) {
98          this.subfieldCount = subfieldCount;
99      }
100 
101     public String getBaseAddress() {
102         return baseAddress;
103     }
104 
105     public void setBaseAddress(String baseAddress) {
106         this.baseAddress = baseAddress;
107     }
108 
109     public String getEncodingLevel() {
110         return encodingLevel;
111     }
112 
113     public void setEncodingLevel(String encodingLevel) {
114         this.encodingLevel = encodingLevel;
115     }
116 
117     public String getDescCatalogForm() {
118         return descCatalogForm;
119     }
120 
121     public void setDescCatalogForm(String descCatalogForm) {
122         this.descCatalogForm = descCatalogForm;
123     }
124 
125     public String getMultipartRecordLevel() {
126         return multipartRecordLevel;
127     }
128 
129     public void setMultipartRecordLevel(String multipartRecordLevel) {
130         this.multipartRecordLevel = multipartRecordLevel;
131     }
132 
133     public int getLengthOfLengthOfField() {
134         return lengthOfLengthOfField;
135     }
136 
137     public void setLengthOfLengthOfField(int lengthOfLengthOfField) {
138         this.lengthOfLengthOfField = lengthOfLengthOfField;
139     }
140 
141     public int getLengthOfStartingCharacterPosition() {
142         return lengthOfStartingCharacterPosition;
143     }
144 
145     public void setLengthOfStartingCharacterPosition(int lengthOfStartingCharacterPosition) {
146         this.lengthOfStartingCharacterPosition = lengthOfStartingCharacterPosition;
147     }
148 
149     public int getLengthOfImplementationDefined() {
150         return lengthOfImplementationDefined;
151     }
152 
153     public void setLengthOfImplementationDefined(int lengthOfImplementationDefined) {
154         this.lengthOfImplementationDefined = lengthOfImplementationDefined;
155     }
156 
157     public int getUndefined() {
158         return undefined;
159     }
160 
161     public void setUndefined(int undefined) {
162         this.undefined = undefined;
163     }
164 
165     public String getTest1() {
166         return test1;
167     }
168 
169     public void setTest1(String test1) {
170         this.test1 = test1;
171     }
172 
173     public String getTest2() {
174         return test2;
175     }
176 
177     public void setTest2(String test2) {
178         this.test2 = test2;
179     }
180 
181     @Override
182     public String toString() {
183         return "LeaderField{" +
184                 "recStatus='" + recStatus + '\'' +
185                 ", type='" + type + '\'' +
186                 ", bibLevel='" + bibLevel + '\'' +
187                 ", typeOfControl='" + typeOfControl + '\'' +
188                 ", encodingLevel='" + encodingLevel + '\'' +
189                 ", descCatalogForm='" + descCatalogForm + '\'' +
190                 ", multipartRecordLevel='" + multipartRecordLevel + '\'' +
191                 ", test1='" + test1 + '\'' +
192                 ", test2='" + test2 + '\'' +
193                 '}';
194     }
195 }