001/*
002 * This class is an auto-generated source file for a HAPI
003 * HL7 v2.x standard structure class.
004 *
005 * For more information, visit: http://hl7api.sourceforge.net/
006 * 
007 * The contents of this file are subject to the Mozilla Public License Version 1.1 
008 * (the "License"); you may not use this file except in compliance with the License. 
009 * You may obtain a copy of the License at http://www.mozilla.org/MPL/ 
010 * Software distributed under the License is distributed on an "AS IS" basis, 
011 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the 
012 * specific language governing rights and limitations under the License. 
013 * 
014 * The Original Code is "[file_name]".  Description: 
015 * "[one_line_description]" 
016 * 
017 * The Initial Developer of the Original Code is University Health Network. Copyright (C) 
018 * 2012.  All Rights Reserved. 
019 * 
020 * Contributor(s): ______________________________________. 
021 * 
022 * Alternatively, the contents of this file may be used under the terms of the 
023 * GNU General Public License (the  "GPL"), in which case the provisions of the GPL are 
024 * applicable instead of those above.  If you wish to allow use of your version of this 
025 * file only under the terms of the GPL and not to allow others to use your version 
026 * of this file under the MPL, indicate your decision by deleting  the provisions above 
027 * and replace  them with the notice and other provisions required by the GPL License.  
028 * If you do not delete the provisions above, a recipient may use your version of 
029 * this file under either the MPL or the GPL. 
030 * 
031 */
032
033
034package ca.uhn.hl7v2.model.v23.segment;
035
036// import ca.uhn.hl7v2.model.v23.group.*;
037import ca.uhn.hl7v2.model.v23.datatype.*;
038import ca.uhn.hl7v2.HL7Exception;
039import ca.uhn.hl7v2.parser.ModelClassFactory;
040import ca.uhn.hl7v2.parser.DefaultModelClassFactory;
041import ca.uhn.hl7v2.model.AbstractMessage;
042import ca.uhn.hl7v2.model.Group;
043import ca.uhn.hl7v2.model.Type;
044import ca.uhn.hl7v2.model.AbstractSegment;
045import ca.uhn.hl7v2.model.Varies;
046
047/**
048 *<p>Represents an HL7 FAC message segment (Facility). 
049 * This segment has the following fields:</p>
050 * <ul>
051     * <li>FAC-1: Facility ID (EI) <b> repeating</b>
052     * <li>FAC-2: Facility Type (ID) <b>optional </b>
053     * <li>FAC-3: Facility Address (XAD) <b> </b>
054     * <li>FAC-4: Facility Telecommunication (XTN) <b> </b>
055     * <li>FAC-5: Contact Person (XCN) <b>optional repeating</b>
056     * <li>FAC-6: Contact Title (ST) <b>optional repeating</b>
057     * <li>FAC-7: Contact Address (XAD) <b>optional repeating</b>
058     * <li>FAC-8: Contact Telecommunication (XTN) <b>optional repeating</b>
059     * <li>FAC-9: Signature Authority (XCN) <b> </b>
060     * <li>FAC-10: Signature Authority Title (ST) <b>optional </b>
061     * <li>FAC-11: Signature Authority Address (XAD) <b>optional </b>
062     * <li>FAC-12: Signature Authority Telecommunication (XTN) <b>optional </b>
063 * </ul>
064 */
065@SuppressWarnings("unused")
066public class FAC extends AbstractSegment {
067
068    /** 
069     * Creates a new FAC segment
070     */
071    public FAC(Group parent, ModelClassFactory factory) {
072       super(parent, factory);
073       init(factory);
074    }
075
076    private void init(ModelClassFactory factory) {
077       try {
078                                  this.add(EI.class, true, 0, 60, new Object[]{ getMessage() }, "Facility ID");
079                                              this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(331) }, "Facility Type");
080                                  this.add(XAD.class, true, 1, 200, new Object[]{ getMessage() }, "Facility Address");
081                                  this.add(XTN.class, true, 1, 44, new Object[]{ getMessage() }, "Facility Telecommunication");
082                                  this.add(XCN.class, false, 0, 60, new Object[]{ getMessage() }, "Contact Person");
083                                  this.add(ST.class, false, 0, 60, new Object[]{ getMessage() }, "Contact Title");
084                                  this.add(XAD.class, false, 0, 60, new Object[]{ getMessage() }, "Contact Address");
085                                  this.add(XTN.class, false, 0, 44, new Object[]{ getMessage() }, "Contact Telecommunication");
086                                  this.add(XCN.class, true, 1, 60, new Object[]{ getMessage() }, "Signature Authority");
087                                  this.add(ST.class, false, 1, 60, new Object[]{ getMessage() }, "Signature Authority Title");
088                                  this.add(XAD.class, false, 1, 200, new Object[]{ getMessage() }, "Signature Authority Address");
089                                  this.add(XTN.class, false, 1, 44, new Object[]{ getMessage() }, "Signature Authority Telecommunication");
090       } catch(HL7Exception e) {
091          log.error("Unexpected error creating FAC - this is probably a bug in the source code generator.", e);
092       }
093    }
094
095
096    /**
097     * Returns all repetitions of Facility ID (FAC-1).
098     */
099    public EI[] getFacilityID() {
100        EI[] retVal = this.getTypedField(1, new EI[0]);
101        return retVal;
102    }
103
104
105    /**
106     * Returns all repetitions of Facility ID (FAC-1).
107     */
108    public EI[] getFac1_FacilityID() {
109        EI[] retVal = this.getTypedField(1, new EI[0]);
110        return retVal;
111    }
112
113
114    /**
115     * Returns a count of the current number of repetitions of Facility ID (FAC-1).
116     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
117     * it will return zero.
118     */
119    public int getFacilityIDReps() {
120        return this.getReps(1);
121    }
122
123
124    /**
125     * Returns a specific repetition of
126     * FAC-1: "Facility ID" - creates it if necessary
127     *
128     * @param rep The repetition index (0-indexed)
129     */
130    public EI getFacilityID(int rep) { 
131                EI retVal = this.getTypedField(1, rep);
132                return retVal;
133    }
134
135    /**
136     * Returns a specific repetition of
137     * FAC-1: "Facility ID" - creates it if necessary
138     *
139     * @param rep The repetition index (0-indexed)
140     */
141    public EI getFac1_FacilityID(int rep) { 
142                EI retVal = this.getTypedField(1, rep);
143                return retVal;
144    }
145
146    /**
147     * Returns a count of the current number of repetitions of Facility ID (FAC-1).
148     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
149     * it will return zero.
150     */
151    public int getFac1_FacilityIDReps() {
152        return this.getReps(1);
153    }
154
155
156    /**
157     * Inserts a repetition of
158     * FAC-1: "Facility ID" at a specific index
159     *
160     * @param rep The repetition index (0-indexed)
161     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
162     */
163    public EI insertFacilityID(int rep) throws HL7Exception { 
164        return (EI) super.insertRepetition(1, rep);
165    }
166
167
168    /**
169     * Inserts a repetition of
170     * FAC-1: "Facility ID" at a specific index
171     *
172     * @param rep The repetition index (0-indexed)
173     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
174     */
175    public EI insertFac1_FacilityID(int rep) throws HL7Exception { 
176        return (EI) super.insertRepetition(1, rep);
177    }
178
179
180    /**
181     * Removes a repetition of
182     * FAC-1: "Facility ID" at a specific index
183     *
184     * @param rep The repetition index (0-indexed)
185     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
186     */
187    public EI removeFacilityID(int rep) throws HL7Exception { 
188        return (EI) super.removeRepetition(1, rep);
189    }
190
191
192    /**
193     * Removes a repetition of
194     * FAC-1: "Facility ID" at a specific index
195     *
196     * @param rep The repetition index (0-indexed)
197     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
198     */
199    public EI removeFac1_FacilityID(int rep) throws HL7Exception { 
200        return (EI) super.removeRepetition(1, rep);
201    }
202
203
204
205
206    /**
207     * Returns
208     * FAC-2: "Facility Type" - creates it if necessary
209     */
210    public ID getFacilityType() { 
211                ID retVal = this.getTypedField(2, 0);
212                return retVal;
213    }
214    
215    /**
216     * Returns
217     * FAC-2: "Facility Type" - creates it if necessary
218     */
219    public ID getFac2_FacilityType() { 
220                ID retVal = this.getTypedField(2, 0);
221                return retVal;
222    }
223
224
225
226    /**
227     * Returns
228     * FAC-3: "Facility Address" - creates it if necessary
229     */
230    public XAD getFacilityAddress() { 
231                XAD retVal = this.getTypedField(3, 0);
232                return retVal;
233    }
234    
235    /**
236     * Returns
237     * FAC-3: "Facility Address" - creates it if necessary
238     */
239    public XAD getFac3_FacilityAddress() { 
240                XAD retVal = this.getTypedField(3, 0);
241                return retVal;
242    }
243
244
245
246    /**
247     * Returns
248     * FAC-4: "Facility Telecommunication" - creates it if necessary
249     */
250    public XTN getFacilityTelecommunication() { 
251                XTN retVal = this.getTypedField(4, 0);
252                return retVal;
253    }
254    
255    /**
256     * Returns
257     * FAC-4: "Facility Telecommunication" - creates it if necessary
258     */
259    public XTN getFac4_FacilityTelecommunication() { 
260                XTN retVal = this.getTypedField(4, 0);
261                return retVal;
262    }
263
264
265    /**
266     * Returns all repetitions of Contact Person (FAC-5).
267     */
268    public XCN[] getContactPerson() {
269        XCN[] retVal = this.getTypedField(5, new XCN[0]);
270        return retVal;
271    }
272
273
274    /**
275     * Returns all repetitions of Contact Person (FAC-5).
276     */
277    public XCN[] getFac5_ContactPerson() {
278        XCN[] retVal = this.getTypedField(5, new XCN[0]);
279        return retVal;
280    }
281
282
283    /**
284     * Returns a count of the current number of repetitions of Contact Person (FAC-5).
285     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
286     * it will return zero.
287     */
288    public int getContactPersonReps() {
289        return this.getReps(5);
290    }
291
292
293    /**
294     * Returns a specific repetition of
295     * FAC-5: "Contact Person" - creates it if necessary
296     *
297     * @param rep The repetition index (0-indexed)
298     */
299    public XCN getContactPerson(int rep) { 
300                XCN retVal = this.getTypedField(5, rep);
301                return retVal;
302    }
303
304    /**
305     * Returns a specific repetition of
306     * FAC-5: "Contact Person" - creates it if necessary
307     *
308     * @param rep The repetition index (0-indexed)
309     */
310    public XCN getFac5_ContactPerson(int rep) { 
311                XCN retVal = this.getTypedField(5, rep);
312                return retVal;
313    }
314
315    /**
316     * Returns a count of the current number of repetitions of Contact Person (FAC-5).
317     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
318     * it will return zero.
319     */
320    public int getFac5_ContactPersonReps() {
321        return this.getReps(5);
322    }
323
324
325    /**
326     * Inserts a repetition of
327     * FAC-5: "Contact Person" at a specific index
328     *
329     * @param rep The repetition index (0-indexed)
330     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
331     */
332    public XCN insertContactPerson(int rep) throws HL7Exception { 
333        return (XCN) super.insertRepetition(5, rep);
334    }
335
336
337    /**
338     * Inserts a repetition of
339     * FAC-5: "Contact Person" at a specific index
340     *
341     * @param rep The repetition index (0-indexed)
342     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
343     */
344    public XCN insertFac5_ContactPerson(int rep) throws HL7Exception { 
345        return (XCN) super.insertRepetition(5, rep);
346    }
347
348
349    /**
350     * Removes a repetition of
351     * FAC-5: "Contact Person" at a specific index
352     *
353     * @param rep The repetition index (0-indexed)
354     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
355     */
356    public XCN removeContactPerson(int rep) throws HL7Exception { 
357        return (XCN) super.removeRepetition(5, rep);
358    }
359
360
361    /**
362     * Removes a repetition of
363     * FAC-5: "Contact Person" at a specific index
364     *
365     * @param rep The repetition index (0-indexed)
366     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
367     */
368    public XCN removeFac5_ContactPerson(int rep) throws HL7Exception { 
369        return (XCN) super.removeRepetition(5, rep);
370    }
371
372
373
374    /**
375     * Returns all repetitions of Contact Title (FAC-6).
376     */
377    public ST[] getContactTitle() {
378        ST[] retVal = this.getTypedField(6, new ST[0]);
379        return retVal;
380    }
381
382
383    /**
384     * Returns all repetitions of Contact Title (FAC-6).
385     */
386    public ST[] getFac6_ContactTitle() {
387        ST[] retVal = this.getTypedField(6, new ST[0]);
388        return retVal;
389    }
390
391
392    /**
393     * Returns a count of the current number of repetitions of Contact Title (FAC-6).
394     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
395     * it will return zero.
396     */
397    public int getContactTitleReps() {
398        return this.getReps(6);
399    }
400
401
402    /**
403     * Returns a specific repetition of
404     * FAC-6: "Contact Title" - creates it if necessary
405     *
406     * @param rep The repetition index (0-indexed)
407     */
408    public ST getContactTitle(int rep) { 
409                ST retVal = this.getTypedField(6, rep);
410                return retVal;
411    }
412
413    /**
414     * Returns a specific repetition of
415     * FAC-6: "Contact Title" - creates it if necessary
416     *
417     * @param rep The repetition index (0-indexed)
418     */
419    public ST getFac6_ContactTitle(int rep) { 
420                ST retVal = this.getTypedField(6, rep);
421                return retVal;
422    }
423
424    /**
425     * Returns a count of the current number of repetitions of Contact Title (FAC-6).
426     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
427     * it will return zero.
428     */
429    public int getFac6_ContactTitleReps() {
430        return this.getReps(6);
431    }
432
433
434    /**
435     * Inserts a repetition of
436     * FAC-6: "Contact Title" at a specific index
437     *
438     * @param rep The repetition index (0-indexed)
439     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
440     */
441    public ST insertContactTitle(int rep) throws HL7Exception { 
442        return (ST) super.insertRepetition(6, rep);
443    }
444
445
446    /**
447     * Inserts a repetition of
448     * FAC-6: "Contact Title" at a specific index
449     *
450     * @param rep The repetition index (0-indexed)
451     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
452     */
453    public ST insertFac6_ContactTitle(int rep) throws HL7Exception { 
454        return (ST) super.insertRepetition(6, rep);
455    }
456
457
458    /**
459     * Removes a repetition of
460     * FAC-6: "Contact Title" at a specific index
461     *
462     * @param rep The repetition index (0-indexed)
463     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
464     */
465    public ST removeContactTitle(int rep) throws HL7Exception { 
466        return (ST) super.removeRepetition(6, rep);
467    }
468
469
470    /**
471     * Removes a repetition of
472     * FAC-6: "Contact Title" at a specific index
473     *
474     * @param rep The repetition index (0-indexed)
475     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
476     */
477    public ST removeFac6_ContactTitle(int rep) throws HL7Exception { 
478        return (ST) super.removeRepetition(6, rep);
479    }
480
481
482
483    /**
484     * Returns all repetitions of Contact Address (FAC-7).
485     */
486    public XAD[] getContactAddress() {
487        XAD[] retVal = this.getTypedField(7, new XAD[0]);
488        return retVal;
489    }
490
491
492    /**
493     * Returns all repetitions of Contact Address (FAC-7).
494     */
495    public XAD[] getFac7_ContactAddress() {
496        XAD[] retVal = this.getTypedField(7, new XAD[0]);
497        return retVal;
498    }
499
500
501    /**
502     * Returns a count of the current number of repetitions of Contact Address (FAC-7).
503     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
504     * it will return zero.
505     */
506    public int getContactAddressReps() {
507        return this.getReps(7);
508    }
509
510
511    /**
512     * Returns a specific repetition of
513     * FAC-7: "Contact Address" - creates it if necessary
514     *
515     * @param rep The repetition index (0-indexed)
516     */
517    public XAD getContactAddress(int rep) { 
518                XAD retVal = this.getTypedField(7, rep);
519                return retVal;
520    }
521
522    /**
523     * Returns a specific repetition of
524     * FAC-7: "Contact Address" - creates it if necessary
525     *
526     * @param rep The repetition index (0-indexed)
527     */
528    public XAD getFac7_ContactAddress(int rep) { 
529                XAD retVal = this.getTypedField(7, rep);
530                return retVal;
531    }
532
533    /**
534     * Returns a count of the current number of repetitions of Contact Address (FAC-7).
535     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
536     * it will return zero.
537     */
538    public int getFac7_ContactAddressReps() {
539        return this.getReps(7);
540    }
541
542
543    /**
544     * Inserts a repetition of
545     * FAC-7: "Contact Address" at a specific index
546     *
547     * @param rep The repetition index (0-indexed)
548     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
549     */
550    public XAD insertContactAddress(int rep) throws HL7Exception { 
551        return (XAD) super.insertRepetition(7, rep);
552    }
553
554
555    /**
556     * Inserts a repetition of
557     * FAC-7: "Contact Address" at a specific index
558     *
559     * @param rep The repetition index (0-indexed)
560     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
561     */
562    public XAD insertFac7_ContactAddress(int rep) throws HL7Exception { 
563        return (XAD) super.insertRepetition(7, rep);
564    }
565
566
567    /**
568     * Removes a repetition of
569     * FAC-7: "Contact Address" at a specific index
570     *
571     * @param rep The repetition index (0-indexed)
572     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
573     */
574    public XAD removeContactAddress(int rep) throws HL7Exception { 
575        return (XAD) super.removeRepetition(7, rep);
576    }
577
578
579    /**
580     * Removes a repetition of
581     * FAC-7: "Contact Address" at a specific index
582     *
583     * @param rep The repetition index (0-indexed)
584     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
585     */
586    public XAD removeFac7_ContactAddress(int rep) throws HL7Exception { 
587        return (XAD) super.removeRepetition(7, rep);
588    }
589
590
591
592    /**
593     * Returns all repetitions of Contact Telecommunication (FAC-8).
594     */
595    public XTN[] getContactTelecommunication() {
596        XTN[] retVal = this.getTypedField(8, new XTN[0]);
597        return retVal;
598    }
599
600
601    /**
602     * Returns all repetitions of Contact Telecommunication (FAC-8).
603     */
604    public XTN[] getFac8_ContactTelecommunication() {
605        XTN[] retVal = this.getTypedField(8, new XTN[0]);
606        return retVal;
607    }
608
609
610    /**
611     * Returns a count of the current number of repetitions of Contact Telecommunication (FAC-8).
612     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
613     * it will return zero.
614     */
615    public int getContactTelecommunicationReps() {
616        return this.getReps(8);
617    }
618
619
620    /**
621     * Returns a specific repetition of
622     * FAC-8: "Contact Telecommunication" - creates it if necessary
623     *
624     * @param rep The repetition index (0-indexed)
625     */
626    public XTN getContactTelecommunication(int rep) { 
627                XTN retVal = this.getTypedField(8, rep);
628                return retVal;
629    }
630
631    /**
632     * Returns a specific repetition of
633     * FAC-8: "Contact Telecommunication" - creates it if necessary
634     *
635     * @param rep The repetition index (0-indexed)
636     */
637    public XTN getFac8_ContactTelecommunication(int rep) { 
638                XTN retVal = this.getTypedField(8, rep);
639                return retVal;
640    }
641
642    /**
643     * Returns a count of the current number of repetitions of Contact Telecommunication (FAC-8).
644     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
645     * it will return zero.
646     */
647    public int getFac8_ContactTelecommunicationReps() {
648        return this.getReps(8);
649    }
650
651
652    /**
653     * Inserts a repetition of
654     * FAC-8: "Contact Telecommunication" at a specific index
655     *
656     * @param rep The repetition index (0-indexed)
657     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
658     */
659    public XTN insertContactTelecommunication(int rep) throws HL7Exception { 
660        return (XTN) super.insertRepetition(8, rep);
661    }
662
663
664    /**
665     * Inserts a repetition of
666     * FAC-8: "Contact Telecommunication" at a specific index
667     *
668     * @param rep The repetition index (0-indexed)
669     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
670     */
671    public XTN insertFac8_ContactTelecommunication(int rep) throws HL7Exception { 
672        return (XTN) super.insertRepetition(8, rep);
673    }
674
675
676    /**
677     * Removes a repetition of
678     * FAC-8: "Contact Telecommunication" at a specific index
679     *
680     * @param rep The repetition index (0-indexed)
681     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
682     */
683    public XTN removeContactTelecommunication(int rep) throws HL7Exception { 
684        return (XTN) super.removeRepetition(8, rep);
685    }
686
687
688    /**
689     * Removes a repetition of
690     * FAC-8: "Contact Telecommunication" at a specific index
691     *
692     * @param rep The repetition index (0-indexed)
693     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
694     */
695    public XTN removeFac8_ContactTelecommunication(int rep) throws HL7Exception { 
696        return (XTN) super.removeRepetition(8, rep);
697    }
698
699
700
701
702    /**
703     * Returns
704     * FAC-9: "Signature Authority" - creates it if necessary
705     */
706    public XCN getSignatureAuthority() { 
707                XCN retVal = this.getTypedField(9, 0);
708                return retVal;
709    }
710    
711    /**
712     * Returns
713     * FAC-9: "Signature Authority" - creates it if necessary
714     */
715    public XCN getFac9_SignatureAuthority() { 
716                XCN retVal = this.getTypedField(9, 0);
717                return retVal;
718    }
719
720
721
722    /**
723     * Returns
724     * FAC-10: "Signature Authority Title" - creates it if necessary
725     */
726    public ST getSignatureAuthorityTitle() { 
727                ST retVal = this.getTypedField(10, 0);
728                return retVal;
729    }
730    
731    /**
732     * Returns
733     * FAC-10: "Signature Authority Title" - creates it if necessary
734     */
735    public ST getFac10_SignatureAuthorityTitle() { 
736                ST retVal = this.getTypedField(10, 0);
737                return retVal;
738    }
739
740
741
742    /**
743     * Returns
744     * FAC-11: "Signature Authority Address" - creates it if necessary
745     */
746    public XAD getSignatureAuthorityAddress() { 
747                XAD retVal = this.getTypedField(11, 0);
748                return retVal;
749    }
750    
751    /**
752     * Returns
753     * FAC-11: "Signature Authority Address" - creates it if necessary
754     */
755    public XAD getFac11_SignatureAuthorityAddress() { 
756                XAD retVal = this.getTypedField(11, 0);
757                return retVal;
758    }
759
760
761
762    /**
763     * Returns
764     * FAC-12: "Signature Authority Telecommunication" - creates it if necessary
765     */
766    public XTN getSignatureAuthorityTelecommunication() { 
767                XTN retVal = this.getTypedField(12, 0);
768                return retVal;
769    }
770    
771    /**
772     * Returns
773     * FAC-12: "Signature Authority Telecommunication" - creates it if necessary
774     */
775    public XTN getFac12_SignatureAuthorityTelecommunication() { 
776                XTN retVal = this.getTypedField(12, 0);
777                return retVal;
778    }
779
780
781
782
783
784    /** {@inheritDoc} */   
785    protected Type createNewTypeWithoutReflection(int field) {
786       switch (field) {
787          case 0: return new EI(getMessage());
788          case 1: return new ID(getMessage(), new Integer( 331 ));
789          case 2: return new XAD(getMessage());
790          case 3: return new XTN(getMessage());
791          case 4: return new XCN(getMessage());
792          case 5: return new ST(getMessage());
793          case 6: return new XAD(getMessage());
794          case 7: return new XTN(getMessage());
795          case 8: return new XCN(getMessage());
796          case 9: return new ST(getMessage());
797          case 10: return new XAD(getMessage());
798          case 11: return new XTN(getMessage());
799          default: return null;
800       }
801   }
802
803
804}
805