aspose.barcode 25.10.0 → 25.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/ComplexBarcode.js
CHANGED
|
@@ -5,6 +5,8 @@ const joint = require('./Joint');
|
|
|
5
5
|
|
|
6
6
|
const java = require('java');
|
|
7
7
|
const aspose_barcode = require("./AsposeBarcode");
|
|
8
|
+
const {BaseJavaClass} = require("./Joint");
|
|
9
|
+
const {Base} = require("mocha/lib/reporters");
|
|
8
10
|
|
|
9
11
|
|
|
10
12
|
/**
|
|
@@ -620,6 +622,21 @@ class ComplexCodetextReader {
|
|
|
620
622
|
return null;
|
|
621
623
|
return HIBCPASCodetext.construct(javaHIBCPAS);
|
|
622
624
|
}
|
|
625
|
+
|
|
626
|
+
|
|
627
|
+
/**
|
|
628
|
+
* <p>
|
|
629
|
+
* Decodes USADriveId codetext.
|
|
630
|
+
* </p>
|
|
631
|
+
* @return Decoded USADriveId or null.
|
|
632
|
+
* @param encodedCodetext Encoded codetext
|
|
633
|
+
*/
|
|
634
|
+
static tryDecodeUSADriveId(encodedCodetext)
|
|
635
|
+
{
|
|
636
|
+
let javaComplexCodetextReader = java.import(ComplexCodetextReader.javaClassName);
|
|
637
|
+
let usaDriveIdCodetext = javaComplexCodetextReader.tryDecodeUSADriveIdSync(encodedCodetext);
|
|
638
|
+
return usaDriveIdCodetext == null ? null : new USADriveIdCodetext(usaDriveIdCodetext);
|
|
639
|
+
}
|
|
623
640
|
}
|
|
624
641
|
|
|
625
642
|
/**
|
|
@@ -1514,7 +1531,7 @@ class Mailmark2DCodetext extends IComplexCodetext
|
|
|
1514
1531
|
* let results = reader.readBarCodes();
|
|
1515
1532
|
* for(let i = 0; i < results.length; i++)
|
|
1516
1533
|
* {
|
|
1517
|
-
* let result = results[i];
|
|
1534
|
+
* let result = results[i];
|
|
1518
1535
|
* let resultMaxiCodeCodetext = ComplexCodetextReader.tryDecodeMaxiCode(result.getExtended().getMaxiCode().getMaxiCodeMode(), result.getCodeText());
|
|
1519
1536
|
* console.log("BarCode Type: " + resultMaxiCodeCodetext.getBarcodeType());
|
|
1520
1537
|
* console.log("MaxiCode mode: " + resultMaxiCodeCodetext.getMode());
|
|
@@ -2326,7 +2343,7 @@ class MaxiCodeStructuredSecondMessage extends MaxiCodeSecondMessage
|
|
|
2326
2343
|
* let results = reader.readBarCodes();
|
|
2327
2344
|
* for(let i = 0; i < results.length; i++)
|
|
2328
2345
|
* {
|
|
2329
|
-
* let result = results[i];
|
|
2346
|
+
* let result = results[i];
|
|
2330
2347
|
* let resultHIBCLICComplexCodetext = ComplexCodetextReader.tryDecodeHIBCLIC(result.getCodeText());
|
|
2331
2348
|
* print("BarCode Type: " + resultMaxiCodeCodetext.getBarcodeType());
|
|
2332
2349
|
* print("BarCode CodeText: " + resultMaxiCodeCodetext.getConstructedCodetext());
|
|
@@ -2963,6 +2980,7 @@ class HIBCPASCodetext extends IComplexCodetext
|
|
|
2963
2980
|
initFromString(constructedCodetext)
|
|
2964
2981
|
{
|
|
2965
2982
|
this.getJavaClass().initFromStringSync(constructedCodetext);
|
|
2983
|
+
this.init();
|
|
2966
2984
|
}
|
|
2967
2985
|
|
|
2968
2986
|
/**
|
|
@@ -3762,6 +3780,1764 @@ HIBCPASDataType =
|
|
|
3762
3780
|
USER_DEFINED: 25
|
|
3763
3781
|
}
|
|
3764
3782
|
|
|
3783
|
+
|
|
3784
|
+
/**
|
|
3785
|
+
* <p>
|
|
3786
|
+
* Class for Jurisdiction specific fields for USA DL
|
|
3787
|
+
* </p>
|
|
3788
|
+
*/
|
|
3789
|
+
class USADriveIdJurisdSubfile extends BaseJavaClass
|
|
3790
|
+
{
|
|
3791
|
+
constructor(nativeObject)
|
|
3792
|
+
{
|
|
3793
|
+
super(nativeObject);
|
|
3794
|
+
}
|
|
3795
|
+
|
|
3796
|
+
init()
|
|
3797
|
+
{
|
|
3798
|
+
|
|
3799
|
+
}
|
|
3800
|
+
|
|
3801
|
+
/**
|
|
3802
|
+
* <p>
|
|
3803
|
+
* Indexing by 3-letter element id
|
|
3804
|
+
* </p>
|
|
3805
|
+
* @return Corresponding DataElement
|
|
3806
|
+
* @param id 3-letter element id
|
|
3807
|
+
*/
|
|
3808
|
+
get(id)
|
|
3809
|
+
{
|
|
3810
|
+
return new DataElement(this.getJavaClass().getSync(id));
|
|
3811
|
+
}
|
|
3812
|
+
/**
|
|
3813
|
+
* <p>
|
|
3814
|
+
* Indexing by 3-letter element id
|
|
3815
|
+
* </p>
|
|
3816
|
+
* @return Corresponding DataElement
|
|
3817
|
+
* @param id 3-letter element id
|
|
3818
|
+
*/
|
|
3819
|
+
set(id, value)
|
|
3820
|
+
{
|
|
3821
|
+
this.getJavaClass().set_Item(id, value.getJavaClass());
|
|
3822
|
+
}
|
|
3823
|
+
/**
|
|
3824
|
+
* <p>
|
|
3825
|
+
* Indexing by index number
|
|
3826
|
+
* </p>
|
|
3827
|
+
* @return Corresponding DataElement
|
|
3828
|
+
* @param index Element index (int)
|
|
3829
|
+
*/
|
|
3830
|
+
get(index)
|
|
3831
|
+
{
|
|
3832
|
+
return new DataElement(this.getJavaClass().getSync(index));
|
|
3833
|
+
}
|
|
3834
|
+
/**
|
|
3835
|
+
* <p>
|
|
3836
|
+
* Indexing by index number
|
|
3837
|
+
* </p>
|
|
3838
|
+
* @return Corresponding DataElement
|
|
3839
|
+
* @param index Element index (int)
|
|
3840
|
+
*/
|
|
3841
|
+
set(index, value)
|
|
3842
|
+
{
|
|
3843
|
+
this.getJavaClass().set_Item(index, value.getJavaClass());
|
|
3844
|
+
}
|
|
3845
|
+
|
|
3846
|
+
/**
|
|
3847
|
+
* <p>
|
|
3848
|
+
* Searches for data element by 3-letter id
|
|
3849
|
+
* </p>
|
|
3850
|
+
* @return Found data element
|
|
3851
|
+
* @param id 3-letter id
|
|
3852
|
+
* @param isOpenOrCreate If true, it will be created if not found
|
|
3853
|
+
*/
|
|
3854
|
+
findDataElement(id, isOpenOrCreate)
|
|
3855
|
+
{
|
|
3856
|
+
return new DataElement(this.getJavaClass().findDataElementSync(id, isOpenOrCreate));
|
|
3857
|
+
}
|
|
3858
|
+
/**
|
|
3859
|
+
* <p>
|
|
3860
|
+
* Returns number of data elements
|
|
3861
|
+
* </p>
|
|
3862
|
+
*/
|
|
3863
|
+
size()
|
|
3864
|
+
{
|
|
3865
|
+
return this.getJavaClass().sizeSync();
|
|
3866
|
+
}
|
|
3867
|
+
|
|
3868
|
+
/**
|
|
3869
|
+
* <p>
|
|
3870
|
+
* Clears all data elements
|
|
3871
|
+
* </p>
|
|
3872
|
+
*/
|
|
3873
|
+
clear()
|
|
3874
|
+
{
|
|
3875
|
+
this.getJavaClass().clearSync();
|
|
3876
|
+
}
|
|
3877
|
+
|
|
3878
|
+
/**
|
|
3879
|
+
* <p>
|
|
3880
|
+
* Tries to remove element at index
|
|
3881
|
+
* </p>
|
|
3882
|
+
* @return true if successful, false if out of range
|
|
3883
|
+
* @param index index number
|
|
3884
|
+
*/
|
|
3885
|
+
remove(index)
|
|
3886
|
+
{
|
|
3887
|
+
return this.getJavaClass().removeAtSync(index);
|
|
3888
|
+
}
|
|
3889
|
+
|
|
3890
|
+
/**
|
|
3891
|
+
* <p>
|
|
3892
|
+
* Tries to remove element with 3-letter id
|
|
3893
|
+
* </p>
|
|
3894
|
+
* @return true if successful, false if no such id
|
|
3895
|
+
* @param id 3-letter id
|
|
3896
|
+
*/
|
|
3897
|
+
remove(id)
|
|
3898
|
+
{
|
|
3899
|
+
return this.getJavaClass().removeAtSync(id);
|
|
3900
|
+
}
|
|
3901
|
+
|
|
3902
|
+
/**
|
|
3903
|
+
* <p>
|
|
3904
|
+
* Inserts the specified DataElement at the given index.
|
|
3905
|
+
* If a DataElement with the same ElementID already exists, it will be replaced.
|
|
3906
|
+
* </p>
|
|
3907
|
+
* @return The DataElement that was inserted or used to replace an existing entry.
|
|
3908
|
+
* @param index The zero-based index at which the element should be inserted.
|
|
3909
|
+
* @param node The DataElement instance to insert or replace at the target position.
|
|
3910
|
+
*/
|
|
3911
|
+
insert(index, node)
|
|
3912
|
+
{
|
|
3913
|
+
return new DataElement(this.getJavaClass().insertSync(index, node.getJavaClass()));
|
|
3914
|
+
}
|
|
3915
|
+
|
|
3916
|
+
/**
|
|
3917
|
+
* <p>
|
|
3918
|
+
* Adds new DataElement or replaces it if ElementID already exists.
|
|
3919
|
+
* </p>
|
|
3920
|
+
* @return Added/replaced data element
|
|
3921
|
+
* @param node DataElement to add
|
|
3922
|
+
*/
|
|
3923
|
+
addOrReplaceNode(node)
|
|
3924
|
+
{
|
|
3925
|
+
return new DataElement(this.getJavaClass().addOrReplaceSync(node.getJavaClass()));
|
|
3926
|
+
}
|
|
3927
|
+
|
|
3928
|
+
/**
|
|
3929
|
+
* <p>
|
|
3930
|
+
* Adds a new DataElement with the specified identifier and value,
|
|
3931
|
+
* or replaces the existing element if an entry with the same ElementID is already present.
|
|
3932
|
+
* </p>
|
|
3933
|
+
* @return The DataElement instance that was added to the collection or updated in place.
|
|
3934
|
+
* @param id A 3-letter identifier that uniquely specifies the jurisdiction-related data element.
|
|
3935
|
+
* @param value The text value assigned to the data element; this value will overwrite the existing one if the element already exists.
|
|
3936
|
+
*/
|
|
3937
|
+
addOrReplace(id, value)
|
|
3938
|
+
{
|
|
3939
|
+
return new DataElement(this.getJavaClass().addOrReplaceSync(id, value));
|
|
3940
|
+
}
|
|
3941
|
+
}
|
|
3942
|
+
|
|
3943
|
+
/**
|
|
3944
|
+
* <p>
|
|
3945
|
+
* USA DL subfile properties, offset and length are set automatically.
|
|
3946
|
+
* </p>
|
|
3947
|
+
*/
|
|
3948
|
+
class SubfileProperties extends BaseJavaClass
|
|
3949
|
+
{
|
|
3950
|
+
static javaClassName = "com.aspose.mw.barcode.complexbarcode.MwUSADriveIdCodetext$MwSubfileProperties";
|
|
3951
|
+
|
|
3952
|
+
constructor(type)
|
|
3953
|
+
{
|
|
3954
|
+
let javaClass = java.import(SubfileProperties.javaClassName);
|
|
3955
|
+
super(new javaClass(type));
|
|
3956
|
+
}
|
|
3957
|
+
|
|
3958
|
+
static _internalCtor(nativeObject)
|
|
3959
|
+
{
|
|
3960
|
+
let javaClass = java.import(SubfileProperties.javaClassName);
|
|
3961
|
+
|
|
3962
|
+
let obj = new SubfileProperties("")
|
|
3963
|
+
obj.setJavaClass(nativeObject);
|
|
3964
|
+
|
|
3965
|
+
return obj;
|
|
3966
|
+
}
|
|
3967
|
+
|
|
3968
|
+
init()
|
|
3969
|
+
{
|
|
3970
|
+
|
|
3971
|
+
}
|
|
3972
|
+
|
|
3973
|
+
/**
|
|
3974
|
+
* <p>
|
|
3975
|
+
* 2 byte type of subfile, like "DL"
|
|
3976
|
+
* </p>
|
|
3977
|
+
*/
|
|
3978
|
+
getType()
|
|
3979
|
+
{
|
|
3980
|
+
return this.getJavaClass().getTypeSync();
|
|
3981
|
+
}
|
|
3982
|
+
/**
|
|
3983
|
+
* <p>
|
|
3984
|
+
* 2 byte type of subfile, like "DL"
|
|
3985
|
+
* </p>
|
|
3986
|
+
*/
|
|
3987
|
+
setType(value)
|
|
3988
|
+
{
|
|
3989
|
+
this.getJavaClass().setTypeSync(value);
|
|
3990
|
+
}
|
|
3991
|
+
/**
|
|
3992
|
+
* <p>
|
|
3993
|
+
* 4 digit numeric value that specifies
|
|
3994
|
+
* the number of bytes from the head or beginning of the file to where
|
|
3995
|
+
* the data related to the particular sub-file is located.The first byte in
|
|
3996
|
+
* the file is located at offset 0.
|
|
3997
|
+
* </p>
|
|
3998
|
+
*/
|
|
3999
|
+
getOffset()
|
|
4000
|
+
{
|
|
4001
|
+
return this.getJavaClass().getOffsetSync();
|
|
4002
|
+
}
|
|
4003
|
+
/**
|
|
4004
|
+
* <p>
|
|
4005
|
+
* 4 digit numeric value that specifies
|
|
4006
|
+
* the number of bytes from the head or beginning of the file to where
|
|
4007
|
+
* the data related to the particular sub-file is located.The first byte in
|
|
4008
|
+
* the file is located at offset 0.
|
|
4009
|
+
* </p>
|
|
4010
|
+
*/
|
|
4011
|
+
setOffset(value)
|
|
4012
|
+
{
|
|
4013
|
+
this.getJavaClass().setOffsetSync(value);
|
|
4014
|
+
}
|
|
4015
|
+
/**
|
|
4016
|
+
* <p>
|
|
4017
|
+
* 4 These bytes contain a 4 digit numeric value that specifies
|
|
4018
|
+
* the length of the Subfile in bytes.The segment terminator must be
|
|
4019
|
+
* included in calculating the length of the subfile.A segment terminator
|
|
4020
|
+
* = 1. Each subfile must begin with the two-character Subfile Type and
|
|
4021
|
+
* these two characters must also be included in the length.
|
|
4022
|
+
* </p>
|
|
4023
|
+
*/
|
|
4024
|
+
getLength()
|
|
4025
|
+
{
|
|
4026
|
+
return this.getJavaClass().getLengthSync();
|
|
4027
|
+
}
|
|
4028
|
+
/**
|
|
4029
|
+
* <p>
|
|
4030
|
+
* 4 These bytes contain a 4 digit numeric value that specifies
|
|
4031
|
+
* the length of the Subfile in bytes.The segment terminator must be
|
|
4032
|
+
* included in calculating the length of the subfile.A segment terminator
|
|
4033
|
+
* = 1. Each subfile must begin with the two-character Subfile Type and
|
|
4034
|
+
* these two characters must also be included in the length.
|
|
4035
|
+
* </p>
|
|
4036
|
+
*/
|
|
4037
|
+
setLength(value)
|
|
4038
|
+
{
|
|
4039
|
+
this.getJavaClass().setLengthSync(value);
|
|
4040
|
+
}
|
|
4041
|
+
}
|
|
4042
|
+
|
|
4043
|
+
/**
|
|
4044
|
+
* <p>
|
|
4045
|
+
* Class for encoding and decoding the text embedded in the USA Driving License PDF417 code.
|
|
4046
|
+
* </p>
|
|
4047
|
+
*/
|
|
4048
|
+
class USADriveIdCodetext extends IComplexCodetext
|
|
4049
|
+
{
|
|
4050
|
+
static javaClassName = "com.aspose.mw.barcode.complexbarcode.MwUSADriveIdCodetext";
|
|
4051
|
+
|
|
4052
|
+
constructor(usaDriveIdCodetext)
|
|
4053
|
+
{
|
|
4054
|
+
super(usaDriveIdCodetext != null ? usaDriveIdCodetext : new java.import(USADriveIdCodetext.javaClassName)());
|
|
4055
|
+
}
|
|
4056
|
+
|
|
4057
|
+
init()
|
|
4058
|
+
{
|
|
4059
|
+
this.auto_JurisdictionSpecificSubfile = new USADriveIdJurisdSubfile(this.getJavaClass().getJurisdictionSpecificSubfileSync());
|
|
4060
|
+
this.auto_OptionalElements = new OptionalFields(this.getJavaClass().getOptionalElementsSync());
|
|
4061
|
+
this.auto_MandatoryElements = new MandatoryFields(this.getJavaClass().getMandatoryElementsSync());
|
|
4062
|
+
}
|
|
4063
|
+
/**
|
|
4064
|
+
* <p>
|
|
4065
|
+
* This number uniquely identifies
|
|
4066
|
+
* the issuing jurisdiction and can be obtained by contacting the ISO
|
|
4067
|
+
* Issuing Authority(AAMVA). The full 6-digit IIN should be encoded.
|
|
4068
|
+
* </p>
|
|
4069
|
+
*/
|
|
4070
|
+
getIssuerIdentificationNumber()
|
|
4071
|
+
{
|
|
4072
|
+
return this.getJavaClass().getIssuerIdentificationNumberSync();
|
|
4073
|
+
}
|
|
4074
|
+
/**
|
|
4075
|
+
* <p>
|
|
4076
|
+
* This number uniquely identifies
|
|
4077
|
+
* the issuing jurisdiction and can be obtained by contacting the ISO
|
|
4078
|
+
* Issuing Authority(AAMVA). The full 6-digit IIN should be encoded.
|
|
4079
|
+
* </p>
|
|
4080
|
+
*/
|
|
4081
|
+
setIssuerIdentificationNumber(value)
|
|
4082
|
+
{
|
|
4083
|
+
this.getJavaClass().setIssuerIdentificationNumberSync(value);
|
|
4084
|
+
}
|
|
4085
|
+
/**
|
|
4086
|
+
* <p>
|
|
4087
|
+
* AAMVA Version Number 00-99
|
|
4088
|
+
* </p>
|
|
4089
|
+
*/
|
|
4090
|
+
getAAMVAVersionNumber()
|
|
4091
|
+
{
|
|
4092
|
+
return this.getJavaClass().getAAMVAVersionNumberSync();
|
|
4093
|
+
}
|
|
4094
|
+
/**
|
|
4095
|
+
* <p>
|
|
4096
|
+
* AAMVA Version Number 00-99
|
|
4097
|
+
* </p>
|
|
4098
|
+
*/
|
|
4099
|
+
setAAMVAVersionNumber(value)
|
|
4100
|
+
{
|
|
4101
|
+
this.getJavaClass().setAAMVAVersionNumberSync(value);
|
|
4102
|
+
}
|
|
4103
|
+
/**
|
|
4104
|
+
* <p>
|
|
4105
|
+
* Jurisdiction Version Number 00-99
|
|
4106
|
+
* </p>
|
|
4107
|
+
*/
|
|
4108
|
+
getJurisdictionVersionNumber()
|
|
4109
|
+
{
|
|
4110
|
+
return this.getJavaClass().getJurisdictionVersionNumberSync();
|
|
4111
|
+
}
|
|
4112
|
+
/**
|
|
4113
|
+
* <p>
|
|
4114
|
+
* Jurisdiction Version Number 00-99
|
|
4115
|
+
* </p>
|
|
4116
|
+
*/
|
|
4117
|
+
setJurisdictionVersionNumber(value)
|
|
4118
|
+
{
|
|
4119
|
+
this.getJavaClass().setJurisdictionVersionNumberSync(value);
|
|
4120
|
+
}
|
|
4121
|
+
/**
|
|
4122
|
+
* <p>
|
|
4123
|
+
* Number 00-99 of subfiles
|
|
4124
|
+
* </p>
|
|
4125
|
+
*/
|
|
4126
|
+
getNumberOfEntries()
|
|
4127
|
+
{
|
|
4128
|
+
return this.getJavaClass().getNumberOfEntriesSync();
|
|
4129
|
+
}
|
|
4130
|
+
/**
|
|
4131
|
+
* <p>
|
|
4132
|
+
* Number 00-99 of subfiles
|
|
4133
|
+
* </p>
|
|
4134
|
+
*/
|
|
4135
|
+
setNumberOfEntries(value)
|
|
4136
|
+
{
|
|
4137
|
+
this.getJavaClass().setNumberOfEntriesSync(value);
|
|
4138
|
+
}
|
|
4139
|
+
/**
|
|
4140
|
+
* <p>
|
|
4141
|
+
* Contains information about following subfiles, types, offsets and lengths.
|
|
4142
|
+
* Important: set only type, offset and length will be set automatically.
|
|
4143
|
+
* </p>
|
|
4144
|
+
*/
|
|
4145
|
+
getSubfileDesignator()
|
|
4146
|
+
{
|
|
4147
|
+
const javaSubfileDesignatorList = this.getJavaClass().getSubfileDesignatorSync();
|
|
4148
|
+
|
|
4149
|
+
let subfileDesignator = [];8
|
|
4150
|
+
for(let i = 0; i < javaSubfileDesignatorList.sizeSync(); i++)
|
|
4151
|
+
{
|
|
4152
|
+
subfileDesignator.push(SubfileProperties._internalCtor(javaSubfileDesignatorList.getSync(i)));
|
|
4153
|
+
}
|
|
4154
|
+
|
|
4155
|
+
return subfileDesignator;
|
|
4156
|
+
}
|
|
4157
|
+
/**
|
|
4158
|
+
* <p>
|
|
4159
|
+
* Contains information about following subfiles, types, offsets and lengths.
|
|
4160
|
+
* Important: set only type, offset and length will be set automatically.
|
|
4161
|
+
* </p>
|
|
4162
|
+
*/
|
|
4163
|
+
addSubfileDesignator(value)
|
|
4164
|
+
{
|
|
4165
|
+
this.getJavaClass().addSubfileDesignatorSync(value.getJavaClass());
|
|
4166
|
+
}
|
|
4167
|
+
|
|
4168
|
+
/**
|
|
4169
|
+
* <p>
|
|
4170
|
+
* Contains information about following subfiles, types, offsets and lengths.
|
|
4171
|
+
* Important: set only type, offset and length will be set automatically.
|
|
4172
|
+
* </p>
|
|
4173
|
+
*/
|
|
4174
|
+
setSubfileDesignator(value)
|
|
4175
|
+
{
|
|
4176
|
+
const JavaArrayList = java.import("java.util.ArrayList");
|
|
4177
|
+
|
|
4178
|
+
let subfileDesignatorJava = new JavaArrayList();
|
|
4179
|
+
|
|
4180
|
+
for(let i = 0; i < value.length; i++)
|
|
4181
|
+
{
|
|
4182
|
+
subfileDesignatorJava.addSync(value[i].getJavaClass());
|
|
4183
|
+
}
|
|
4184
|
+
|
|
4185
|
+
this.getJavaClass().setSubfileDesignatorSync(subfileDesignatorJava);
|
|
4186
|
+
}
|
|
4187
|
+
|
|
4188
|
+
/**
|
|
4189
|
+
* <p>
|
|
4190
|
+
* Mandatory elements (fields) of the card
|
|
4191
|
+
* </p>
|
|
4192
|
+
*/
|
|
4193
|
+
getMandatoryElements()
|
|
4194
|
+
{
|
|
4195
|
+
return this.auto_MandatoryElements;
|
|
4196
|
+
}
|
|
4197
|
+
/**
|
|
4198
|
+
* <p>
|
|
4199
|
+
* Mandatory elements (fields) of the card
|
|
4200
|
+
* </p>
|
|
4201
|
+
*/
|
|
4202
|
+
setMandatoryElements(value)
|
|
4203
|
+
{
|
|
4204
|
+
this.auto_MandatoryElements = value;
|
|
4205
|
+
this.getJavaClass().setMandatoryElementsSync(value.getJavaClass());
|
|
4206
|
+
}
|
|
4207
|
+
|
|
4208
|
+
/**
|
|
4209
|
+
* <p>
|
|
4210
|
+
* Optional elements (fields) of the card
|
|
4211
|
+
* </p>
|
|
4212
|
+
*/
|
|
4213
|
+
getOptionalElements()
|
|
4214
|
+
{
|
|
4215
|
+
return this.auto_OptionalElements;
|
|
4216
|
+
}
|
|
4217
|
+
/**
|
|
4218
|
+
* <p>
|
|
4219
|
+
* Optional elements (fields) of the card
|
|
4220
|
+
* </p>
|
|
4221
|
+
*/
|
|
4222
|
+
setOptionalElements(value)
|
|
4223
|
+
{
|
|
4224
|
+
this.auto_OptionalElements = value;
|
|
4225
|
+
this.getJavaClass().setOptionalElementsSync(value.getJavaClass());
|
|
4226
|
+
}
|
|
4227
|
+
|
|
4228
|
+
/**
|
|
4229
|
+
* <p>
|
|
4230
|
+
* Jurisdiction Specific Fields
|
|
4231
|
+
* </p>
|
|
4232
|
+
*/
|
|
4233
|
+
getJurisdictionSpecificSubfile()
|
|
4234
|
+
{
|
|
4235
|
+
return this.auto_JurisdictionSpecificSubfile;
|
|
4236
|
+
}
|
|
4237
|
+
/**
|
|
4238
|
+
* <p>
|
|
4239
|
+
* Jurisdiction Specific Fields
|
|
4240
|
+
* </p>
|
|
4241
|
+
*/
|
|
4242
|
+
setJurisdictionSpecificSubfile(value)
|
|
4243
|
+
{
|
|
4244
|
+
this.auto_JurisdictionSpecificSubfile = value;
|
|
4245
|
+
this.getJavaClass().setJurisdictionSpecificSubfileSync(value.getJavaClass());
|
|
4246
|
+
}
|
|
4247
|
+
|
|
4248
|
+
/**
|
|
4249
|
+
* <p>
|
|
4250
|
+
* Construct codetext from USA DL data
|
|
4251
|
+
* </p>
|
|
4252
|
+
* @return Constructed codetext
|
|
4253
|
+
*/
|
|
4254
|
+
getConstructedCodetext()
|
|
4255
|
+
{
|
|
4256
|
+
return this.getJavaClass().getConstructedCodetextSync();
|
|
4257
|
+
}
|
|
4258
|
+
|
|
4259
|
+
/**
|
|
4260
|
+
* <p>
|
|
4261
|
+
* Initialize USA DL object from codetext
|
|
4262
|
+
* </p>
|
|
4263
|
+
* @param constructedCodetext Constructed codetext
|
|
4264
|
+
*/
|
|
4265
|
+
initFromString(constructedCodetext)
|
|
4266
|
+
{
|
|
4267
|
+
this.getJavaClass().initFromStringSync(constructedCodetext);
|
|
4268
|
+
this.init();
|
|
4269
|
+
}
|
|
4270
|
+
|
|
4271
|
+
/**
|
|
4272
|
+
* <p>
|
|
4273
|
+
* Returns barcode type of USA DL (Pdf417)
|
|
4274
|
+
* </p>
|
|
4275
|
+
* @return Barcode type (Pdf417)
|
|
4276
|
+
*/
|
|
4277
|
+
getBarcodeType()
|
|
4278
|
+
{
|
|
4279
|
+
return this.getJavaClass().getBarcodeTypeSync();
|
|
4280
|
+
}
|
|
4281
|
+
|
|
4282
|
+
saveToXml()
|
|
4283
|
+
{
|
|
4284
|
+
let buf = Buffer.from(this.getJavaClass().saveToXmlSync(), "base64");
|
|
4285
|
+
|
|
4286
|
+
let xml = buf.toString("utf8");
|
|
4287
|
+
if (xml.charCodeAt(0) === 0xfeff) xml = xml.slice(1);
|
|
4288
|
+
|
|
4289
|
+
return xml;
|
|
4290
|
+
}
|
|
4291
|
+
}
|
|
4292
|
+
|
|
4293
|
+
|
|
4294
|
+
|
|
4295
|
+
/**
|
|
4296
|
+
* <p>
|
|
4297
|
+
* Mandatory elements (fields) of the card
|
|
4298
|
+
* </p>
|
|
4299
|
+
*/
|
|
4300
|
+
class MandatoryFields extends BaseJavaClass
|
|
4301
|
+
{
|
|
4302
|
+
constructor(nativeObject)
|
|
4303
|
+
{
|
|
4304
|
+
super(nativeObject);
|
|
4305
|
+
}
|
|
4306
|
+
// Mandatory elements in DL/ID subfiles
|
|
4307
|
+
// Types of data / field lengths are encoded as
|
|
4308
|
+
// (A = alpha A-Z, N = numeric 0-9, S = special, F = fixed length, V = variable length).
|
|
4309
|
+
// Use of padding for variable length fields is optional.
|
|
4310
|
+
/**
|
|
4311
|
+
* <p>
|
|
4312
|
+
* DCA, Jurisdiction-specific vehicle class / group code, DL, V6ANS
|
|
4313
|
+
* </p>
|
|
4314
|
+
*/
|
|
4315
|
+
|
|
4316
|
+
getVehicleClass()
|
|
4317
|
+
{
|
|
4318
|
+
return this.getJavaClass().getVehicleClassSync();
|
|
4319
|
+
}
|
|
4320
|
+
// Mandatory elements in DL/ID subfiles
|
|
4321
|
+
// Types of data / field lengths are encoded as
|
|
4322
|
+
// (A = alpha A-Z, N = numeric 0-9, S = special, F = fixed length, V = variable length).
|
|
4323
|
+
// Use of padding for variable length fields is optional.
|
|
4324
|
+
/**
|
|
4325
|
+
* <p>
|
|
4326
|
+
* DCA, Jurisdiction-specific vehicle class / group code, DL, V6ANS
|
|
4327
|
+
* </p>
|
|
4328
|
+
*/
|
|
4329
|
+
|
|
4330
|
+
setVehicleClass(value)
|
|
4331
|
+
{
|
|
4332
|
+
this.getJavaClass().setVehicleClassSync(value);
|
|
4333
|
+
}
|
|
4334
|
+
|
|
4335
|
+
/**
|
|
4336
|
+
* <p>
|
|
4337
|
+
* DCB, Jurisdiction-specific restrictions codes, DL, V12ANS
|
|
4338
|
+
* </p>
|
|
4339
|
+
*/
|
|
4340
|
+
getRestrictionCodes()
|
|
4341
|
+
{
|
|
4342
|
+
return this.getJavaClass().getRestrictionCodesSync();
|
|
4343
|
+
}
|
|
4344
|
+
/**
|
|
4345
|
+
* <p>
|
|
4346
|
+
* DCB, Jurisdiction-specific restrictions codes, DL, V12ANS
|
|
4347
|
+
* </p>
|
|
4348
|
+
*/
|
|
4349
|
+
setRestrictionCodes(value)
|
|
4350
|
+
{
|
|
4351
|
+
this.getJavaClass().setRestrictionCodesSync(value);
|
|
4352
|
+
}
|
|
4353
|
+
/**
|
|
4354
|
+
* <p>
|
|
4355
|
+
* DCD, Jurisdiction specific endorsement codes, DL, V5ANS
|
|
4356
|
+
* </p>
|
|
4357
|
+
*/
|
|
4358
|
+
getEndorsementCodes()
|
|
4359
|
+
{
|
|
4360
|
+
return this.getJavaClass().getEndorsementCodesSync();
|
|
4361
|
+
}
|
|
4362
|
+
/**
|
|
4363
|
+
* <p>
|
|
4364
|
+
* DCD, Jurisdiction specific endorsement codes, DL, V5ANS
|
|
4365
|
+
* </p>
|
|
4366
|
+
*/
|
|
4367
|
+
setEndorsementCodes(value)
|
|
4368
|
+
{
|
|
4369
|
+
this.getJavaClass().setEndorsementCodesSync(value);
|
|
4370
|
+
}
|
|
4371
|
+
|
|
4372
|
+
|
|
4373
|
+
/**
|
|
4374
|
+
* <p>
|
|
4375
|
+
* DCS, Family name of the cardholder, DL/ID, V40ANS
|
|
4376
|
+
* </p>
|
|
4377
|
+
*/
|
|
4378
|
+
getFamilyName()
|
|
4379
|
+
{
|
|
4380
|
+
return this.getJavaClass().getFamilyNameSync();
|
|
4381
|
+
}
|
|
4382
|
+
/**
|
|
4383
|
+
* <p>
|
|
4384
|
+
* DCS, Family name of the cardholder, DL/ID, V40ANS
|
|
4385
|
+
* </p>
|
|
4386
|
+
*/
|
|
4387
|
+
setFamilyName(value)
|
|
4388
|
+
{
|
|
4389
|
+
this.getJavaClass().setFamilyNameSync(value);
|
|
4390
|
+
}
|
|
4391
|
+
|
|
4392
|
+
/**
|
|
4393
|
+
* <p>
|
|
4394
|
+
* DAC, First name of the cardholder, DL/ID, V40ANS
|
|
4395
|
+
* </p>
|
|
4396
|
+
*/
|
|
4397
|
+
getFirstName()
|
|
4398
|
+
{
|
|
4399
|
+
return this.getJavaClass().getFirstNameSync();
|
|
4400
|
+
}
|
|
4401
|
+
/**
|
|
4402
|
+
* <p>
|
|
4403
|
+
* DAC, First name of the cardholder, DL/ID, V40ANS
|
|
4404
|
+
* </p>
|
|
4405
|
+
*/
|
|
4406
|
+
setFirstName(value)
|
|
4407
|
+
{
|
|
4408
|
+
this.getJavaClass().setFirstNameSync(value);
|
|
4409
|
+
}
|
|
4410
|
+
|
|
4411
|
+
/**
|
|
4412
|
+
* <p>
|
|
4413
|
+
* DAD, Middle name(s) of the cardholder. In the case of multiple middle names they shall be
|
|
4414
|
+
* separated by a comma ",". , DL/ID, V40ANS
|
|
4415
|
+
* </p>
|
|
4416
|
+
*/
|
|
4417
|
+
getMiddleName()
|
|
4418
|
+
{
|
|
4419
|
+
return this.getJavaClass().getMiddleNameSync();
|
|
4420
|
+
}
|
|
4421
|
+
/**
|
|
4422
|
+
* <p>
|
|
4423
|
+
* DAD, Middle name(s) of the cardholder. In the case of multiple middle names they shall be
|
|
4424
|
+
* separated by a comma ",". , DL/ID, V40ANS
|
|
4425
|
+
* </p>
|
|
4426
|
+
*/
|
|
4427
|
+
setMiddleName(value)
|
|
4428
|
+
{
|
|
4429
|
+
this.getJavaClass().setMiddleNameSync(value);
|
|
4430
|
+
}
|
|
4431
|
+
|
|
4432
|
+
/**
|
|
4433
|
+
* <p>
|
|
4434
|
+
* DBB, Date on which the document was issued, MMDDCCYY for U.S., CCYYMMDD for Canada, DL/ID, F8N
|
|
4435
|
+
* </p>
|
|
4436
|
+
*/
|
|
4437
|
+
getDateOfBirth()
|
|
4438
|
+
{
|
|
4439
|
+
return new Date(this.getJavaClass().getDateOfBirthSync());
|
|
4440
|
+
}
|
|
4441
|
+
/**
|
|
4442
|
+
* <p>
|
|
4443
|
+
* DBB, Date on which the document was issued, MMDDCCYY for U.S., CCYYMMDD for Canada, DL/ID, F8N
|
|
4444
|
+
* </p>
|
|
4445
|
+
*/
|
|
4446
|
+
setDateOfBirth(value)
|
|
4447
|
+
{
|
|
4448
|
+
this.getJavaClass().setDateOfBirthSync(value.toISOString().slice(0, 10));
|
|
4449
|
+
}
|
|
4450
|
+
|
|
4451
|
+
/**
|
|
4452
|
+
* <p>
|
|
4453
|
+
* DBC, Gender of the cardholder. 1 = male, 2 = female, 9 = not specified, DL/ID, F1N
|
|
4454
|
+
* </p>
|
|
4455
|
+
*/
|
|
4456
|
+
getSex()
|
|
4457
|
+
{
|
|
4458
|
+
return this.getJavaClass().getSexSync();
|
|
4459
|
+
}
|
|
4460
|
+
|
|
4461
|
+
/**
|
|
4462
|
+
* <p>
|
|
4463
|
+
* DBC, Gender of the cardholder. 1 = male, 2 = female, 9 = not specified, DL/ID, F1N
|
|
4464
|
+
* </p>
|
|
4465
|
+
*/
|
|
4466
|
+
setSex(value)
|
|
4467
|
+
{
|
|
4468
|
+
this.getJavaClass().setSexSync(value);
|
|
4469
|
+
}
|
|
4470
|
+
|
|
4471
|
+
/**
|
|
4472
|
+
* <p>
|
|
4473
|
+
* DAY, Color of cardholder's eyes. (ANSI D-20 codes). DL/ID, F3A
|
|
4474
|
+
* </p>
|
|
4475
|
+
*/
|
|
4476
|
+
getEyeColor()
|
|
4477
|
+
{
|
|
4478
|
+
return this.getJavaClass().getEyeColorSync();
|
|
4479
|
+
}
|
|
4480
|
+
/**
|
|
4481
|
+
* <p>
|
|
4482
|
+
* DAY, Color of cardholder's eyes. (ANSI D-20 codes). DL/ID, F3A
|
|
4483
|
+
* </p>
|
|
4484
|
+
*/
|
|
4485
|
+
setEyeColor(value)
|
|
4486
|
+
{
|
|
4487
|
+
this.getJavaClass().setEyeColorSync(value);
|
|
4488
|
+
}
|
|
4489
|
+
|
|
4490
|
+
/**
|
|
4491
|
+
* <p>
|
|
4492
|
+
* DAU, Height of cardholder.
|
|
4493
|
+
* Inches (in): number of inches followed by " in"
|
|
4494
|
+
* ex. 6'1'' = "073 in"
|
|
4495
|
+
* Centimeters(cm) : number of centimeters followed by " cm"
|
|
4496
|
+
* ex. 181 centimeters="181 cm" , DL/ID, F6ANS
|
|
4497
|
+
* </p>
|
|
4498
|
+
*/
|
|
4499
|
+
getHeight()
|
|
4500
|
+
{
|
|
4501
|
+
return this.getJavaClass().getHeightSync();
|
|
4502
|
+
}
|
|
4503
|
+
/**
|
|
4504
|
+
* <p>
|
|
4505
|
+
* DAU, Height of cardholder.
|
|
4506
|
+
* Inches (in): number of inches followed by " in"
|
|
4507
|
+
* ex. 6'1'' = "073 in"
|
|
4508
|
+
* Centimeters(cm) : number of centimeters followed by " cm"
|
|
4509
|
+
* ex. 181 centimeters="181 cm" , DL/ID, F6ANS
|
|
4510
|
+
* </p>
|
|
4511
|
+
*/
|
|
4512
|
+
setHeight(value)
|
|
4513
|
+
{
|
|
4514
|
+
this.getJavaClass().setHeightSync(value);
|
|
4515
|
+
}
|
|
4516
|
+
|
|
4517
|
+
/**
|
|
4518
|
+
* <p>
|
|
4519
|
+
* DAG, Street portion of the cardholder address, DL/ID, V35ANS
|
|
4520
|
+
* </p>
|
|
4521
|
+
*/
|
|
4522
|
+
getAddressStreet1()
|
|
4523
|
+
{
|
|
4524
|
+
return this.getJavaClass().getAddressStreet1Sync();
|
|
4525
|
+
}
|
|
4526
|
+
/**
|
|
4527
|
+
* <p>
|
|
4528
|
+
* DAG, Street portion of the cardholder address, DL/ID, V35ANS
|
|
4529
|
+
* </p>
|
|
4530
|
+
*/
|
|
4531
|
+
setAddressStreet1(value)
|
|
4532
|
+
{
|
|
4533
|
+
this.getJavaClass().setAddressStreet1Sync(value);
|
|
4534
|
+
}
|
|
4535
|
+
|
|
4536
|
+
/**
|
|
4537
|
+
* <p>
|
|
4538
|
+
* DAI, City portion of the cardholder address, DL/ID, V20ANS
|
|
4539
|
+
* </p>
|
|
4540
|
+
*/
|
|
4541
|
+
getAddressCity()
|
|
4542
|
+
{
|
|
4543
|
+
return this.getJavaClass().getAddressCitySync();
|
|
4544
|
+
}
|
|
4545
|
+
/**
|
|
4546
|
+
* <p>
|
|
4547
|
+
* DAI, City portion of the cardholder address, DL/ID, V20ANS
|
|
4548
|
+
* </p>
|
|
4549
|
+
*/
|
|
4550
|
+
setAddressCity(value)
|
|
4551
|
+
{
|
|
4552
|
+
this.getJavaClass().setAddressCitySync(value);
|
|
4553
|
+
}
|
|
4554
|
+
|
|
4555
|
+
/**
|
|
4556
|
+
* <p>
|
|
4557
|
+
* DAJ, State portion of the cardholder address, DL/ID, F2A
|
|
4558
|
+
* </p>
|
|
4559
|
+
*/
|
|
4560
|
+
getAddressState()
|
|
4561
|
+
{
|
|
4562
|
+
return this.getJavaClass().getAddressStateSync();
|
|
4563
|
+
}
|
|
4564
|
+
/**
|
|
4565
|
+
* <p>
|
|
4566
|
+
* DAJ, State portion of the cardholder address, DL/ID, F2A
|
|
4567
|
+
* </p>
|
|
4568
|
+
*/
|
|
4569
|
+
setAddressState(value)
|
|
4570
|
+
{
|
|
4571
|
+
this.getJavaClass().setAddressStateSync(value);
|
|
4572
|
+
}
|
|
4573
|
+
|
|
4574
|
+
/**
|
|
4575
|
+
* <p>
|
|
4576
|
+
* DAK, Postal code portion of the cardholder address in the U.S.and Canada.
|
|
4577
|
+
* If the trailing portion of the postal code in the U.S. is not known,
|
|
4578
|
+
* zeros will be used to fill the trailing set of numbers up to 9 digits, DL/ID, F11ANS
|
|
4579
|
+
* </p>
|
|
4580
|
+
*/
|
|
4581
|
+
getAddressPostalCode()
|
|
4582
|
+
{
|
|
4583
|
+
return this.getJavaClass().getAddressPostalCodeSync();
|
|
4584
|
+
}
|
|
4585
|
+
/**
|
|
4586
|
+
* <p>
|
|
4587
|
+
* DAK, Postal code portion of the cardholder address in the U.S.and Canada.
|
|
4588
|
+
* If the trailing portion of the postal code in the U.S. is not known,
|
|
4589
|
+
* zeros will be used to fill the trailing set of numbers up to 9 digits, DL/ID, F11ANS
|
|
4590
|
+
* </p>
|
|
4591
|
+
*/
|
|
4592
|
+
setAddressPostalCode(value)
|
|
4593
|
+
{
|
|
4594
|
+
this.getJavaClass().setAddressPostalCodeSync(value);
|
|
4595
|
+
}
|
|
4596
|
+
|
|
4597
|
+
/**
|
|
4598
|
+
* <p>
|
|
4599
|
+
* DAQ, The number assigned or calculated by the issuing authority, DL/ID, V25ANS
|
|
4600
|
+
* </p>
|
|
4601
|
+
*/
|
|
4602
|
+
getCustomerIDNumber()
|
|
4603
|
+
{
|
|
4604
|
+
return this.getJavaClass().getCustomerIDNumberSync();
|
|
4605
|
+
}
|
|
4606
|
+
/**
|
|
4607
|
+
* <p>
|
|
4608
|
+
* DAQ, The number assigned or calculated by the issuing authority, DL/ID, V25ANS
|
|
4609
|
+
* </p>
|
|
4610
|
+
*/
|
|
4611
|
+
setCustomerIDNumber(value)
|
|
4612
|
+
{
|
|
4613
|
+
this.getJavaClass().setCustomerIDNumberSync(value);
|
|
4614
|
+
}
|
|
4615
|
+
|
|
4616
|
+
/**
|
|
4617
|
+
* <p>
|
|
4618
|
+
* DCF, Number must uniquely identify a particular document issued to that customer
|
|
4619
|
+
* from others that may have been issued in the past. This number may serve multiple
|
|
4620
|
+
* purposes of document discrimination, audit information number, and/or inventory control, DL/ID, V25ANS
|
|
4621
|
+
* </p>
|
|
4622
|
+
*/
|
|
4623
|
+
getDocumentDiscriminator()
|
|
4624
|
+
{
|
|
4625
|
+
return this.getJavaClass().getDocumentDiscriminatorSync();
|
|
4626
|
+
}
|
|
4627
|
+
/**
|
|
4628
|
+
* <p>
|
|
4629
|
+
* DCF, Number must uniquely identify a particular document issued to that customer
|
|
4630
|
+
* from others that may have been issued in the past. This number may serve multiple
|
|
4631
|
+
* purposes of document discrimination, audit information number, and/or inventory control, DL/ID, V25ANS
|
|
4632
|
+
* </p>
|
|
4633
|
+
*/
|
|
4634
|
+
setDocumentDiscriminator(value)
|
|
4635
|
+
{
|
|
4636
|
+
this.getJavaClass().setDocumentDiscriminatorSync(value);
|
|
4637
|
+
}
|
|
4638
|
+
|
|
4639
|
+
/**
|
|
4640
|
+
* <p>
|
|
4641
|
+
* DCG, Country in which DL/ID is issued. U.S. = USA, Canada = CAN, DL/ID, F3A
|
|
4642
|
+
* </p>
|
|
4643
|
+
*/
|
|
4644
|
+
getCountryIdentification()
|
|
4645
|
+
{
|
|
4646
|
+
return this.getJavaClass().getCountryIdentificationSync();
|
|
4647
|
+
}
|
|
4648
|
+
/**
|
|
4649
|
+
* <p>
|
|
4650
|
+
* DCG, Country in which DL/ID is issued. U.S. = USA, Canada = CAN, DL/ID, F3A
|
|
4651
|
+
* </p>
|
|
4652
|
+
*/
|
|
4653
|
+
setCountryIdentification(value)
|
|
4654
|
+
{
|
|
4655
|
+
this.getJavaClass().setCountryIdentificationSync(value);
|
|
4656
|
+
}
|
|
4657
|
+
|
|
4658
|
+
|
|
4659
|
+
/**
|
|
4660
|
+
* <p>
|
|
4661
|
+
* DDE, A code that indicates whether a field has been truncated(T), has not been truncated(N),
|
|
4662
|
+
* or unknown whether truncated(U), DL/ID, F1A
|
|
4663
|
+
* </p>
|
|
4664
|
+
*/
|
|
4665
|
+
getFamilyNameTruncation()
|
|
4666
|
+
{
|
|
4667
|
+
return this.getJavaClass().getFamilyNameTruncationSync();
|
|
4668
|
+
}
|
|
4669
|
+
/**
|
|
4670
|
+
* <p>
|
|
4671
|
+
* DDE, A code that indicates whether a field has been truncated(T), has not been truncated(N),
|
|
4672
|
+
* or unknown whether truncated(U), DL/ID, F1A
|
|
4673
|
+
* </p>
|
|
4674
|
+
*/
|
|
4675
|
+
setFamilyNameTruncation(value)
|
|
4676
|
+
{
|
|
4677
|
+
this.getJavaClass().setFamilyNameTruncationSync(value);
|
|
4678
|
+
}
|
|
4679
|
+
|
|
4680
|
+
/**
|
|
4681
|
+
* <p>
|
|
4682
|
+
* DDF, A code that indicates whether a field has been truncated(T), has not been truncated(N),
|
|
4683
|
+
* or unknown whether truncated(U), DL/ID, F1A
|
|
4684
|
+
* </p>
|
|
4685
|
+
*/
|
|
4686
|
+
getFirstNameTruncation()
|
|
4687
|
+
{
|
|
4688
|
+
return this.getJavaClass().getFirstNameTruncationSync();
|
|
4689
|
+
}
|
|
4690
|
+
/**
|
|
4691
|
+
* <p>
|
|
4692
|
+
* DDF, A code that indicates whether a field has been truncated(T), has not been truncated(N),
|
|
4693
|
+
* or unknown whether truncated(U), DL/ID, F1A
|
|
4694
|
+
* </p>
|
|
4695
|
+
*/
|
|
4696
|
+
setFirstNameTruncation(value)
|
|
4697
|
+
{
|
|
4698
|
+
this.getJavaClass().setFirstNameTruncationSync(value);
|
|
4699
|
+
}
|
|
4700
|
+
|
|
4701
|
+
/**
|
|
4702
|
+
* <p>
|
|
4703
|
+
* DDG, A code that indicates whether a field has been truncated(T), has not been truncated(N),
|
|
4704
|
+
* or unknown whether truncated(U), DL/ID, F1A
|
|
4705
|
+
* </p>
|
|
4706
|
+
*/
|
|
4707
|
+
getMiddleNameTruncation()
|
|
4708
|
+
{
|
|
4709
|
+
return this.getJavaClass().getMiddleNameTruncation();
|
|
4710
|
+
}
|
|
4711
|
+
/**
|
|
4712
|
+
* <p>
|
|
4713
|
+
* DDG, A code that indicates whether a field has been truncated(T), has not been truncated(N),
|
|
4714
|
+
* or unknown whether truncated(U), DL/ID, F1A
|
|
4715
|
+
* </p>
|
|
4716
|
+
*/
|
|
4717
|
+
setMiddleNameTruncation(value)
|
|
4718
|
+
{
|
|
4719
|
+
this.getJavaClass().setMiddleNameTruncationSync(value);
|
|
4720
|
+
}
|
|
4721
|
+
|
|
4722
|
+
init()
|
|
4723
|
+
{
|
|
4724
|
+
|
|
4725
|
+
}
|
|
4726
|
+
}
|
|
4727
|
+
|
|
4728
|
+
/**
|
|
4729
|
+
* <p>
|
|
4730
|
+
* Represents a jurisdiction-specific data field used in documents,
|
|
4731
|
+
* for example ElementID = "ZVA" with Value = "01".
|
|
4732
|
+
* </p>
|
|
4733
|
+
*/
|
|
4734
|
+
class DataElement extends BaseJavaClass
|
|
4735
|
+
{
|
|
4736
|
+
constructor(nativeObject)
|
|
4737
|
+
{
|
|
4738
|
+
super(nativeObject);
|
|
4739
|
+
}
|
|
4740
|
+
|
|
4741
|
+
init()
|
|
4742
|
+
{
|
|
4743
|
+
|
|
4744
|
+
}
|
|
4745
|
+
|
|
4746
|
+
/**
|
|
4747
|
+
* <p>
|
|
4748
|
+
* A 3-character code that identifies the jurisdiction-specific field, e.g., "ZVA".
|
|
4749
|
+
* </p>
|
|
4750
|
+
*/
|
|
4751
|
+
getElementID()
|
|
4752
|
+
{
|
|
4753
|
+
return this.getJavaClass().getElementIDSync();
|
|
4754
|
+
}
|
|
4755
|
+
/**
|
|
4756
|
+
* <p>
|
|
4757
|
+
* A 3-character code that identifies the jurisdiction-specific field, e.g., "ZVA".
|
|
4758
|
+
* </p>
|
|
4759
|
+
*/
|
|
4760
|
+
setElementID(value)
|
|
4761
|
+
{
|
|
4762
|
+
this.getJavaClass().setElementIDSync(value);
|
|
4763
|
+
}
|
|
4764
|
+
/**
|
|
4765
|
+
* <p>
|
|
4766
|
+
* The text value associated with the field, typically defined by jurisdiction rules.
|
|
4767
|
+
* </p>
|
|
4768
|
+
*/
|
|
4769
|
+
getValue()
|
|
4770
|
+
{
|
|
4771
|
+
return this.getJavaClass().getValueSync();
|
|
4772
|
+
}
|
|
4773
|
+
/**
|
|
4774
|
+
* <p>
|
|
4775
|
+
* The text value associated with the field, typically defined by jurisdiction rules.
|
|
4776
|
+
* </p>
|
|
4777
|
+
*/
|
|
4778
|
+
setValue(value)
|
|
4779
|
+
{
|
|
4780
|
+
this.getJavaClass().setValueSync(value);
|
|
4781
|
+
}
|
|
4782
|
+
}
|
|
4783
|
+
|
|
4784
|
+
|
|
4785
|
+
|
|
4786
|
+
/**
|
|
4787
|
+
* <p>
|
|
4788
|
+
* Optional elements (fields) of the card
|
|
4789
|
+
* </p>
|
|
4790
|
+
*/
|
|
4791
|
+
class OptionalFields extends BaseJavaClass
|
|
4792
|
+
{
|
|
4793
|
+
|
|
4794
|
+
constructor(nativeObject)
|
|
4795
|
+
{
|
|
4796
|
+
super(nativeObject);
|
|
4797
|
+
}
|
|
4798
|
+
|
|
4799
|
+
init()
|
|
4800
|
+
{
|
|
4801
|
+
}
|
|
4802
|
+
|
|
4803
|
+
getAddressStreet2()
|
|
4804
|
+
{
|
|
4805
|
+
return this.getJavaClass().getAddressStreet2Sync();
|
|
4806
|
+
}
|
|
4807
|
+
// Optional elements in DL/ID subfiles
|
|
4808
|
+
// Rules are same as for mandatory elements
|
|
4809
|
+
/**
|
|
4810
|
+
* <p>
|
|
4811
|
+
* DAH, Second line of street portion of the cardholder address, DL/ID, V35ANS
|
|
4812
|
+
* </p>
|
|
4813
|
+
*/
|
|
4814
|
+
|
|
4815
|
+
setAddressStreet2(value)
|
|
4816
|
+
{
|
|
4817
|
+
this.getJavaClass().setAddressStreet2Sync(value);
|
|
4818
|
+
}
|
|
4819
|
+
|
|
4820
|
+
/**
|
|
4821
|
+
* <p>
|
|
4822
|
+
* DAZ, Bald, black, blonde, brown, gray, red/auburn, sandy, white, unknown. If the issuing
|
|
4823
|
+
* jurisdiction wishes to abbreviate colors, the three-character codes provided in AAMVA D20
|
|
4824
|
+
* must be used, DL/ID, V12A
|
|
4825
|
+
* </p>
|
|
4826
|
+
*/
|
|
4827
|
+
getHairColor()
|
|
4828
|
+
{
|
|
4829
|
+
return this.getJavaClass().getHairColorSync();
|
|
4830
|
+
}
|
|
4831
|
+
/**
|
|
4832
|
+
* <p>
|
|
4833
|
+
* DAZ, Bald, black, blonde, brown, gray, red/auburn, sandy, white, unknown. If the issuing
|
|
4834
|
+
* jurisdiction wishes to abbreviate colors, the three-character codes provided in AAMVA D20
|
|
4835
|
+
* must be used, DL/ID, V12A
|
|
4836
|
+
* </p>
|
|
4837
|
+
*/
|
|
4838
|
+
setHairColor(value)
|
|
4839
|
+
{
|
|
4840
|
+
this.getJavaClass().setHairColorSync(value);
|
|
4841
|
+
}
|
|
4842
|
+
|
|
4843
|
+
/**
|
|
4844
|
+
* <p>
|
|
4845
|
+
* DCI, Country and municipality and/or state/province, DL/ID, V33A
|
|
4846
|
+
* </p>
|
|
4847
|
+
*/
|
|
4848
|
+
getPlaceOfBirth()
|
|
4849
|
+
{
|
|
4850
|
+
return this.getJavaClass().getPlaceOfBirthSync();
|
|
4851
|
+
}
|
|
4852
|
+
/**
|
|
4853
|
+
* <p>
|
|
4854
|
+
* DCI, Country and municipality and/or state/province, DL/ID, V33A
|
|
4855
|
+
* </p>
|
|
4856
|
+
*/
|
|
4857
|
+
setPlaceOfBirth(value)
|
|
4858
|
+
{
|
|
4859
|
+
this.getJavaClass().setPlaceOfBirthSync(value);
|
|
4860
|
+
}
|
|
4861
|
+
/**
|
|
4862
|
+
* <p>
|
|
4863
|
+
* DCJ, A string of letters and/or numbers that identifies when, where, and by whom
|
|
4864
|
+
* a driver license/ID card was made. If audit information is not used on the card or the MRT,
|
|
4865
|
+
* it must be included in the driver record, DL/ID, V25ANS
|
|
4866
|
+
* </p>
|
|
4867
|
+
*/
|
|
4868
|
+
getAuditInformation()
|
|
4869
|
+
{
|
|
4870
|
+
return this.getJavaClass().getAuditInformationSync();
|
|
4871
|
+
}
|
|
4872
|
+
/**
|
|
4873
|
+
* <p>
|
|
4874
|
+
* DCJ, A string of letters and/or numbers that identifies when, where, and by whom
|
|
4875
|
+
* a driver license/ID card was made. If audit information is not used on the card or the MRT,
|
|
4876
|
+
* it must be included in the driver record, DL/ID, V25ANS
|
|
4877
|
+
* </p>
|
|
4878
|
+
*/
|
|
4879
|
+
setAuditInformation(value)
|
|
4880
|
+
{
|
|
4881
|
+
this.getJavaClass().setAuditInformationSync(value);
|
|
4882
|
+
}
|
|
4883
|
+
/**
|
|
4884
|
+
* <p>
|
|
4885
|
+
* DCK, A string of letters and/or numbers that is affixed to the raw materials(card stock, laminate, etc.)
|
|
4886
|
+
* used in producing driver licenses and ID cards. (DHS recommended field), DL/ID, V25ANS
|
|
4887
|
+
* </p>
|
|
4888
|
+
*/
|
|
4889
|
+
getInventoryControlNumber()
|
|
4890
|
+
{
|
|
4891
|
+
return this.getJavaClass().getInventoryControlNumberSync();
|
|
4892
|
+
}
|
|
4893
|
+
/**
|
|
4894
|
+
* <p>
|
|
4895
|
+
* DCK, A string of letters and/or numbers that is affixed to the raw materials(card stock, laminate, etc.)
|
|
4896
|
+
* used in producing driver licenses and ID cards. (DHS recommended field), DL/ID, V25ANS
|
|
4897
|
+
* </p>
|
|
4898
|
+
*/
|
|
4899
|
+
setInventoryControlNumber(value)
|
|
4900
|
+
{
|
|
4901
|
+
this.getJavaClass().setInventoryControlNumberSync(value);
|
|
4902
|
+
}
|
|
4903
|
+
/**
|
|
4904
|
+
* <p>
|
|
4905
|
+
* DBN, Other family name by which cardholder is known, DL/ID, V10ANS
|
|
4906
|
+
* </p>
|
|
4907
|
+
*/
|
|
4908
|
+
getAliasAKAFamilyName()
|
|
4909
|
+
{
|
|
4910
|
+
return this.getJavaClass().getAliasAKAFamilyNameSync();
|
|
4911
|
+
}
|
|
4912
|
+
/**
|
|
4913
|
+
* <p>
|
|
4914
|
+
* DBN, Other family name by which cardholder is known, DL/ID, V10ANS
|
|
4915
|
+
* </p>
|
|
4916
|
+
*/
|
|
4917
|
+
setAliasAKAFamilyName(value)
|
|
4918
|
+
{
|
|
4919
|
+
this.getJavaClass().setAliasAKAFamilyNameSync(value);
|
|
4920
|
+
}
|
|
4921
|
+
/**
|
|
4922
|
+
* <p>
|
|
4923
|
+
* DBG, Other given name by which cardholder is known, DL/ID, V15ANS
|
|
4924
|
+
* </p>
|
|
4925
|
+
*/
|
|
4926
|
+
getAliasAKAGivenName()
|
|
4927
|
+
{
|
|
4928
|
+
return this.getJavaClass().getAliasAKAGivenNameSync();
|
|
4929
|
+
}
|
|
4930
|
+
/**
|
|
4931
|
+
* <p>
|
|
4932
|
+
* DBG, Other given name by which cardholder is known, DL/ID, V15ANS
|
|
4933
|
+
* </p>
|
|
4934
|
+
*/
|
|
4935
|
+
setAliasAKAGivenName(value)
|
|
4936
|
+
{
|
|
4937
|
+
this.getJavaClass().setAliasAKAGivenNameSync(value);
|
|
4938
|
+
}
|
|
4939
|
+
/**
|
|
4940
|
+
* <p>
|
|
4941
|
+
* DBS, Other suffix by which cardholder is known, DL/ID, V5ANS
|
|
4942
|
+
* </p>
|
|
4943
|
+
*/
|
|
4944
|
+
getAliasAKASuffixName()
|
|
4945
|
+
{
|
|
4946
|
+
return this.getJavaClass().getAliasAKASuffixNameSync();
|
|
4947
|
+
}
|
|
4948
|
+
/**
|
|
4949
|
+
* <p>
|
|
4950
|
+
* DBS, Other suffix by which cardholder is known, DL/ID, V5ANS
|
|
4951
|
+
* </p>
|
|
4952
|
+
*/
|
|
4953
|
+
setAliasAKASuffixName(value)
|
|
4954
|
+
{
|
|
4955
|
+
this.getJavaClass().setAliasAKASuffixNameSync(value);
|
|
4956
|
+
}
|
|
4957
|
+
/**
|
|
4958
|
+
* <p>
|
|
4959
|
+
* DCU, Name Suffix (If jurisdiction participates in systems requiring name suffix (PDPS, CDLIS, etc.),
|
|
4960
|
+
* the suffix must be collected and displayed on the DL/ID and in the MRT).
|
|
4961
|
+
* JR(Junior), SR(Senior), 1ST or I(First), up to 9TH or IX (Ninth), DL/ID, V5ANS
|
|
4962
|
+
* </p>
|
|
4963
|
+
*/
|
|
4964
|
+
getNameSuffix()
|
|
4965
|
+
{
|
|
4966
|
+
return this.getJavaClass().getNameSuffixSync();
|
|
4967
|
+
}
|
|
4968
|
+
/**
|
|
4969
|
+
* <p>
|
|
4970
|
+
* DCU, Name Suffix (If jurisdiction participates in systems requiring name suffix (PDPS, CDLIS, etc.),
|
|
4971
|
+
* the suffix must be collected and displayed on the DL/ID and in the MRT).
|
|
4972
|
+
* JR(Junior), SR(Senior), 1ST or I(First), up to 9TH or IX (Ninth), DL/ID, V5ANS
|
|
4973
|
+
* </p>
|
|
4974
|
+
*/
|
|
4975
|
+
setNameSuffix(value)
|
|
4976
|
+
{
|
|
4977
|
+
this.getJavaClass().setNameSuffixSync(value);
|
|
4978
|
+
}
|
|
4979
|
+
/**
|
|
4980
|
+
* <p>
|
|
4981
|
+
* DCE, Indicates the approximate weight range of the cardholder: 0 = up to 31 kg(up to 70 lbs),
|
|
4982
|
+
* 1 = 32 – 45 kg(71 – 100 lbs), 2 = 46 - 59 kg(101 – 130 lbs), 3 = 60 - 70 kg(131 – 160 lbs),
|
|
4983
|
+
* 4 = 71 - 86 kg(161 – 190 lbs), 5 = 87 - 100 kg(191 – 220 lbs), 6 = 101 - 113 kg(221 – 250 lbs),
|
|
4984
|
+
* 7 = 114 - 127 kg(251 – 280 lbs), 8 = 128 – 145 kg(281 – 320 lbs), 9 = 146+ kg(321+ lbs), DL/ID, F1N
|
|
4985
|
+
* </p>
|
|
4986
|
+
*/
|
|
4987
|
+
getWeightRange()
|
|
4988
|
+
{
|
|
4989
|
+
return this.getJavaClass().getWeightRangeSync();
|
|
4990
|
+
}
|
|
4991
|
+
/**
|
|
4992
|
+
* <p>
|
|
4993
|
+
* DCE, Indicates the approximate weight range of the cardholder: 0 = up to 31 kg(up to 70 lbs),
|
|
4994
|
+
* 1 = 32 – 45 kg(71 – 100 lbs), 2 = 46 - 59 kg(101 – 130 lbs), 3 = 60 - 70 kg(131 – 160 lbs),
|
|
4995
|
+
* 4 = 71 - 86 kg(161 – 190 lbs), 5 = 87 - 100 kg(191 – 220 lbs), 6 = 101 - 113 kg(221 – 250 lbs),
|
|
4996
|
+
* 7 = 114 - 127 kg(251 – 280 lbs), 8 = 128 – 145 kg(281 – 320 lbs), 9 = 146+ kg(321+ lbs), DL/ID, F1N
|
|
4997
|
+
* </p>
|
|
4998
|
+
*/
|
|
4999
|
+
setWeightRange(value)
|
|
5000
|
+
{
|
|
5001
|
+
this.getJavaClass().setWeightRangeSync(value);
|
|
5002
|
+
}
|
|
5003
|
+
/**
|
|
5004
|
+
* <p>
|
|
5005
|
+
* DCL, Codes for race or ethnicity of the cardholder, as defined in AAMVA D20, DL/ID, V3A
|
|
5006
|
+
* </p>
|
|
5007
|
+
*/
|
|
5008
|
+
getRaceEthnicity()
|
|
5009
|
+
{
|
|
5010
|
+
return this.getJavaClass().getRaceEthnicitySync();
|
|
5011
|
+
}
|
|
5012
|
+
/**
|
|
5013
|
+
* <p>
|
|
5014
|
+
* DCL, Codes for race or ethnicity of the cardholder, as defined in AAMVA D20, DL/ID, V3A
|
|
5015
|
+
* </p>
|
|
5016
|
+
*/
|
|
5017
|
+
setRaceEthnicity(value)
|
|
5018
|
+
{
|
|
5019
|
+
this.getJavaClass().setRaceEthnicitySync(value);
|
|
5020
|
+
}
|
|
5021
|
+
/**
|
|
5022
|
+
* <p>
|
|
5023
|
+
* DCM, Standard vehicle classification code(s) for cardholder. This data element is a placeholder for
|
|
5024
|
+
* future efforts to standardize vehicle classifications, DL, F4AN
|
|
5025
|
+
* </p>
|
|
5026
|
+
*/
|
|
5027
|
+
getStandardVehClassification()
|
|
5028
|
+
{
|
|
5029
|
+
return this.getJavaClass().getStandardVehClassificationSync();
|
|
5030
|
+
}
|
|
5031
|
+
/**
|
|
5032
|
+
* <p>
|
|
5033
|
+
* DCM, Standard vehicle classification code(s) for cardholder. This data element is a placeholder for
|
|
5034
|
+
* future efforts to standardize vehicle classifications, DL, F4AN
|
|
5035
|
+
* </p>
|
|
5036
|
+
*/
|
|
5037
|
+
setStandardVehClassification(value)
|
|
5038
|
+
{
|
|
5039
|
+
this.getJavaClass().setStandardVehClassificationSync(value);
|
|
5040
|
+
}
|
|
5041
|
+
/**
|
|
5042
|
+
* <p>
|
|
5043
|
+
* DCN, Standard endorsement code(s) for cardholder. See codes in D20.This data element is a placeholder
|
|
5044
|
+
* for future efforts to standardize endorsement codes, DL, F5AN
|
|
5045
|
+
* </p>
|
|
5046
|
+
*/
|
|
5047
|
+
getStandardEndorsementCode()
|
|
5048
|
+
{
|
|
5049
|
+
return this.getJavaClass().getStandardEndorsementCodeSync();
|
|
5050
|
+
}
|
|
5051
|
+
/**
|
|
5052
|
+
* <p>
|
|
5053
|
+
* DCN, Standard endorsement code(s) for cardholder. See codes in D20.This data element is a placeholder
|
|
5054
|
+
* for future efforts to standardize endorsement codes, DL, F5AN
|
|
5055
|
+
* </p>
|
|
5056
|
+
*/
|
|
5057
|
+
setStandardEndorsementCode(value)
|
|
5058
|
+
{
|
|
5059
|
+
this.getJavaClass().setStandardEndorsementCodeSync(value);
|
|
5060
|
+
}
|
|
5061
|
+
/**
|
|
5062
|
+
* <p>
|
|
5063
|
+
* DCO, Standard restriction code(s) for cardholder. See codes in D20.This data element is a placeholder
|
|
5064
|
+
* for future efforts to standardize restriction codes, DL, F12AN
|
|
5065
|
+
* </p>
|
|
5066
|
+
*/
|
|
5067
|
+
getStandardRestrictionCode()
|
|
5068
|
+
{
|
|
5069
|
+
return this.getJavaClass().getStandardRestrictionCodeSync();
|
|
5070
|
+
}
|
|
5071
|
+
/**
|
|
5072
|
+
* <p>
|
|
5073
|
+
* DCO, Standard restriction code(s) for cardholder. See codes in D20.This data element is a placeholder
|
|
5074
|
+
* for future efforts to standardize restriction codes, DL, F12AN
|
|
5075
|
+
* </p>
|
|
5076
|
+
*/
|
|
5077
|
+
setStandardRestrictionCode(value)
|
|
5078
|
+
{
|
|
5079
|
+
this.getJavaClass().setStandardRestrictionCodeSync(value);
|
|
5080
|
+
}
|
|
5081
|
+
/**
|
|
5082
|
+
* <p>
|
|
5083
|
+
* DCP, Text that explains the jurisdiction-specific code(s) for classifications of vehicles
|
|
5084
|
+
* cardholder is authorized to drive, DL, V50ANS
|
|
5085
|
+
* </p>
|
|
5086
|
+
*/
|
|
5087
|
+
getVehClassDescription()
|
|
5088
|
+
{
|
|
5089
|
+
return this.getJavaClass().getVehClassDescriptionSync();
|
|
5090
|
+
}
|
|
5091
|
+
/**
|
|
5092
|
+
* <p>
|
|
5093
|
+
* DCP, Text that explains the jurisdiction-specific code(s) for classifications of vehicles
|
|
5094
|
+
* cardholder is authorized to drive, DL, V50ANS
|
|
5095
|
+
* </p>
|
|
5096
|
+
*/
|
|
5097
|
+
setVehClassDescription(value)
|
|
5098
|
+
{
|
|
5099
|
+
this.getJavaClass().setVehClassDescriptionSync(value);
|
|
5100
|
+
}
|
|
5101
|
+
/**
|
|
5102
|
+
* <p>
|
|
5103
|
+
* DCQ, Text that explains the jurisdiction-specific code(s) that indicates additional driving
|
|
5104
|
+
* privileges granted to the cardholder beyond the vehicle class, DL, V50ANS
|
|
5105
|
+
* </p>
|
|
5106
|
+
*/
|
|
5107
|
+
getEndorsementCodeDescription()
|
|
5108
|
+
{
|
|
5109
|
+
return this.getJavaClass().getEndorsementCodeDescriptionSync();
|
|
5110
|
+
}
|
|
5111
|
+
/**
|
|
5112
|
+
* <p>
|
|
5113
|
+
* DCQ, Text that explains the jurisdiction-specific code(s) that indicates additional driving
|
|
5114
|
+
* privileges granted to the cardholder beyond the vehicle class, DL, V50ANS
|
|
5115
|
+
* </p>
|
|
5116
|
+
*/
|
|
5117
|
+
setEndorsementCodeDescription(value)
|
|
5118
|
+
{
|
|
5119
|
+
this.getJavaClass().setEndorsementCodeDescriptionSync(value);
|
|
5120
|
+
}
|
|
5121
|
+
/**
|
|
5122
|
+
* <p>
|
|
5123
|
+
* DCR, Text describing the jurisdiction-specific
|
|
5124
|
+
* restriction code(s) that curtail driving privileges, DL, V50ANS
|
|
5125
|
+
* </p>
|
|
5126
|
+
*/
|
|
5127
|
+
getRestrictionCodeDescription()
|
|
5128
|
+
{
|
|
5129
|
+
return this.getJavaClass().getRestrictionCodeDescriptionSync();
|
|
5130
|
+
}
|
|
5131
|
+
|
|
5132
|
+
/**
|
|
5133
|
+
* <p>
|
|
5134
|
+
* DCR, Text describing the jurisdiction-specific
|
|
5135
|
+
* restriction code(s) that curtail driving privileges, DL, V50ANS
|
|
5136
|
+
* </p>
|
|
5137
|
+
*/
|
|
5138
|
+
setRestrictionCodeDescription(value)
|
|
5139
|
+
{
|
|
5140
|
+
this.getJavaClass().setRestrictionCodeDescriptionSync(value);
|
|
5141
|
+
}
|
|
5142
|
+
/**
|
|
5143
|
+
* <p>
|
|
5144
|
+
* DDA, DHS required field that indicates compliance:
|
|
5145
|
+
* “F” = compliant; and, “N” = non-compliant, DL/ID, F1A
|
|
5146
|
+
* </p>
|
|
5147
|
+
*/
|
|
5148
|
+
getComplianceType()
|
|
5149
|
+
{
|
|
5150
|
+
return this.getJavaClass().getComplianceTypeSync();
|
|
5151
|
+
}
|
|
5152
|
+
/**
|
|
5153
|
+
* <p>
|
|
5154
|
+
* DDA, DHS required field that indicates compliance:
|
|
5155
|
+
* “F” = compliant; and, “N” = non-compliant, DL/ID, F1A
|
|
5156
|
+
* </p>
|
|
5157
|
+
*/
|
|
5158
|
+
setComplianceType(value)
|
|
5159
|
+
{
|
|
5160
|
+
this.getJavaClass().setComplianceTypeSync(value);
|
|
5161
|
+
}
|
|
5162
|
+
/**
|
|
5163
|
+
* <p>
|
|
5164
|
+
* DDB, DHS required field that indicates date of the most recent version change or modification
|
|
5165
|
+
* to the visible format of the DL/ID. (MMDDCCYY for U.S., CCYYMMDD for Canada), DL/ID, F8N
|
|
5166
|
+
* </p>
|
|
5167
|
+
*/
|
|
5168
|
+
getCardRevisionDate()
|
|
5169
|
+
{
|
|
5170
|
+
return new Date(this.getJavaClass().getCardRevisionDateSync());
|
|
5171
|
+
}
|
|
5172
|
+
/**
|
|
5173
|
+
* <p>
|
|
5174
|
+
* DDB, DHS required field that indicates date of the most recent version change or modification
|
|
5175
|
+
* to the visible format of the DL/ID. (MMDDCCYY for U.S., CCYYMMDD for Canada), DL/ID, F8N
|
|
5176
|
+
* </p>
|
|
5177
|
+
*/
|
|
5178
|
+
setCardRevisionDate(value)
|
|
5179
|
+
{
|
|
5180
|
+
this.getJavaClass().setCardRevisionDate(value);
|
|
5181
|
+
}
|
|
5182
|
+
/**
|
|
5183
|
+
* <p>
|
|
5184
|
+
* DDC, Date on which the hazardous material endorsement granted by the document
|
|
5185
|
+
* is no longer valid. (MMDDCCYY for U.S., CCYYMMDD for Canada), DL, F8N
|
|
5186
|
+
* </p>
|
|
5187
|
+
*/
|
|
5188
|
+
getHAZMATEndorsementExpDate()
|
|
5189
|
+
{
|
|
5190
|
+
return this.getJavaClass().getHAZMATEndorsementExpDate();
|
|
5191
|
+
}
|
|
5192
|
+
/**
|
|
5193
|
+
* <p>
|
|
5194
|
+
* DDD, DHS required field that indicates that the cardholder has
|
|
5195
|
+
* temporary lawful status = “1”, DL/ID, F1N
|
|
5196
|
+
* </p>
|
|
5197
|
+
*/
|
|
5198
|
+
getLimitedDurationDocIndicator()
|
|
5199
|
+
{
|
|
5200
|
+
return this.getJavaClass().getLimitedDurationDocIndicatorSync();
|
|
5201
|
+
}
|
|
5202
|
+
/**
|
|
5203
|
+
* <p>
|
|
5204
|
+
* DDD, DHS required field that indicates that the cardholder has
|
|
5205
|
+
* temporary lawful status = “1”, DL/ID, F1N
|
|
5206
|
+
* </p>
|
|
5207
|
+
*/
|
|
5208
|
+
setLimitedDurationDocIndicator(value)
|
|
5209
|
+
{
|
|
5210
|
+
this.getJavaClass().setLimitedDurationDocIndicatorSync(value);
|
|
5211
|
+
}
|
|
5212
|
+
/**
|
|
5213
|
+
* <p>
|
|
5214
|
+
* DAW, Cardholder weight in pounds, Ex. 185 lb = “185”, DL/ID, F3N
|
|
5215
|
+
* </p>
|
|
5216
|
+
*/
|
|
5217
|
+
getWeightPounds()
|
|
5218
|
+
{
|
|
5219
|
+
return this.getJavaClass().getWeightPoundsSync();
|
|
5220
|
+
}
|
|
5221
|
+
/**
|
|
5222
|
+
* <p>
|
|
5223
|
+
* DAW, Cardholder weight in pounds, Ex. 185 lb = “185”, DL/ID, F3N
|
|
5224
|
+
* </p>
|
|
5225
|
+
*/
|
|
5226
|
+
setWeightPounds(value)
|
|
5227
|
+
{
|
|
5228
|
+
this.getJavaClass().setWeightPoundsSync(value);
|
|
5229
|
+
}
|
|
5230
|
+
/**
|
|
5231
|
+
* <p>
|
|
5232
|
+
* DAX, Cardholder weight in kilograms, Ex. 84 kg = “084”, DL/ID, F3N
|
|
5233
|
+
* </p>
|
|
5234
|
+
*/
|
|
5235
|
+
getWeightKilograms()
|
|
5236
|
+
{
|
|
5237
|
+
return this.getJavaClass().getWeightKilogramsSync();
|
|
5238
|
+
}
|
|
5239
|
+
/**
|
|
5240
|
+
* <p>
|
|
5241
|
+
* DAX, Cardholder weight in kilograms, Ex. 84 kg = “084”, DL/ID, F3N
|
|
5242
|
+
* </p>
|
|
5243
|
+
*/
|
|
5244
|
+
setWeightKilograms(value)
|
|
5245
|
+
{
|
|
5246
|
+
this.getJavaClass().setWeightKilogramsSync(value);
|
|
5247
|
+
}
|
|
5248
|
+
|
|
5249
|
+
/**
|
|
5250
|
+
* <p>
|
|
5251
|
+
* DDI, Date on which the cardholder turns 19 years old. (MMDDCCYY for U.S., CCYYMMDD for Canada), DL/ID, F8N
|
|
5252
|
+
* </p>
|
|
5253
|
+
*/
|
|
5254
|
+
setUnder18Until(value)
|
|
5255
|
+
{
|
|
5256
|
+
this.getJavaClass().setUnder18UntilSync(value);
|
|
5257
|
+
}
|
|
5258
|
+
|
|
5259
|
+
/**
|
|
5260
|
+
* <p>
|
|
5261
|
+
* DDH, Date on which the cardholder turns 18 years old. (MMDDCCYY for U.S., CCYYMMDD for Canada), DL/ID, F8N
|
|
5262
|
+
* </p>
|
|
5263
|
+
*/
|
|
5264
|
+
getUnder18Until()
|
|
5265
|
+
{
|
|
5266
|
+
return this.getJavaClass().getUnder18UntilSync();
|
|
5267
|
+
}
|
|
5268
|
+
|
|
5269
|
+
/**
|
|
5270
|
+
* <p>
|
|
5271
|
+
* DDI, Date on which the cardholder turns 19 years old. (MMDDCCYY for U.S., CCYYMMDD for Canada), DL/ID, F8N
|
|
5272
|
+
* </p>
|
|
5273
|
+
*/
|
|
5274
|
+
setUnder19Until(value)
|
|
5275
|
+
{
|
|
5276
|
+
this.getJavaClass().setUnder19UntilSync(value);
|
|
5277
|
+
}
|
|
5278
|
+
/**
|
|
5279
|
+
* <p>
|
|
5280
|
+
* DDJ, Date on which the cardholder turns 21 years old. (MMDDCCYY for U.S., CCYYMMDD for Canada), DL/ID, F8N
|
|
5281
|
+
* </p>
|
|
5282
|
+
*/
|
|
5283
|
+
getUnder21Until()
|
|
5284
|
+
{
|
|
5285
|
+
return this.getJavaClass().getUnder21UntilSync();
|
|
5286
|
+
}
|
|
5287
|
+
/**
|
|
5288
|
+
* <p>
|
|
5289
|
+
* DDJ, Date on which the cardholder turns 21 years old. (MMDDCCYY for U.S., CCYYMMDD for Canada), DL/ID, F8N
|
|
5290
|
+
* </p>
|
|
5291
|
+
*/
|
|
5292
|
+
setUnder21Until(value)
|
|
5293
|
+
{
|
|
5294
|
+
this.getJavaClass().setUnder21UntilSync(value);
|
|
5295
|
+
}
|
|
5296
|
+
/**
|
|
5297
|
+
* <p>
|
|
5298
|
+
* DDK, Field that indicates that the cardholder is an organ donor = “1”, DL/ID, F1N
|
|
5299
|
+
* </p>
|
|
5300
|
+
*/
|
|
5301
|
+
getOrganDonorIndicator()
|
|
5302
|
+
{
|
|
5303
|
+
return this.getJavaClass().getOrganDonorIndicatorSync();
|
|
5304
|
+
}
|
|
5305
|
+
/**
|
|
5306
|
+
* <p>
|
|
5307
|
+
* DDK, Field that indicates that the cardholder is an organ donor = “1”, DL/ID, F1N
|
|
5308
|
+
* </p>
|
|
5309
|
+
*/
|
|
5310
|
+
setOrganDonorIndicator(value)
|
|
5311
|
+
{
|
|
5312
|
+
this.getJavaClass().setOrganDonorIndicatorSync(value);
|
|
5313
|
+
}
|
|
5314
|
+
/**
|
|
5315
|
+
* <p>
|
|
5316
|
+
* DDL, Field that indicates that the cardholder is a veteran = “1”, DL/ID, F1N
|
|
5317
|
+
* </p>
|
|
5318
|
+
*/
|
|
5319
|
+
getVeteranIndicator()
|
|
5320
|
+
{
|
|
5321
|
+
return this.getJavaClass().getVeteranIndicatorSync();
|
|
5322
|
+
}
|
|
5323
|
+
/**
|
|
5324
|
+
* <p>
|
|
5325
|
+
* DDL, Field that indicates that the cardholder is a veteran = “1”, DL/ID, F1N
|
|
5326
|
+
* </p>
|
|
5327
|
+
*/
|
|
5328
|
+
setVeteranIndicator(value)
|
|
5329
|
+
{
|
|
5330
|
+
this.getJavaClass().setVeteranIndicatorSync(value);
|
|
5331
|
+
}
|
|
5332
|
+
}
|
|
5333
|
+
|
|
5334
|
+
|
|
5335
|
+
/**
|
|
5336
|
+
* <p>
|
|
5337
|
+
* Enum for Eye Color in the US Driver's License
|
|
5338
|
+
* </p>
|
|
5339
|
+
*/
|
|
5340
|
+
USADriveIdEyeColor =
|
|
5341
|
+
{
|
|
5342
|
+
/**
|
|
5343
|
+
* <p>
|
|
5344
|
+
* Not filled - equal to NONE
|
|
5345
|
+
* </p>
|
|
5346
|
+
*/
|
|
5347
|
+
NO_INFO: 0,
|
|
5348
|
+
/**
|
|
5349
|
+
* <p>
|
|
5350
|
+
* BLK - Black or very dark brown.
|
|
5351
|
+
* </p>
|
|
5352
|
+
*/
|
|
5353
|
+
BLACK: 1,
|
|
5354
|
+
/**
|
|
5355
|
+
* <p>
|
|
5356
|
+
* BLU - Blue color.
|
|
5357
|
+
* </p>
|
|
5358
|
+
*/
|
|
5359
|
+
BLUE: 2,
|
|
5360
|
+
/**
|
|
5361
|
+
* <p>
|
|
5362
|
+
* BRO - Brown, including amber.
|
|
5363
|
+
* </p>
|
|
5364
|
+
*/
|
|
5365
|
+
BROWN: 3,
|
|
5366
|
+
/**
|
|
5367
|
+
* <p>
|
|
5368
|
+
* DIC - Dichromatic or multicolor, of one or both eyes.
|
|
5369
|
+
* </p>
|
|
5370
|
+
*/
|
|
5371
|
+
MULTI_COLOR: 4,
|
|
5372
|
+
/**
|
|
5373
|
+
* <p>
|
|
5374
|
+
* GRY - Gray color.
|
|
5375
|
+
* </p>
|
|
5376
|
+
*/
|
|
5377
|
+
GRAY: 5,
|
|
5378
|
+
/**
|
|
5379
|
+
* <p>
|
|
5380
|
+
* GRN - Green color.
|
|
5381
|
+
* </p>
|
|
5382
|
+
*/
|
|
5383
|
+
GREEN: 6,
|
|
5384
|
+
/**
|
|
5385
|
+
* <p>
|
|
5386
|
+
* HAZ - Hazel, a mixture of colors, most commonly green and brown.
|
|
5387
|
+
* </p>
|
|
5388
|
+
*/
|
|
5389
|
+
HAZEL: 7,
|
|
5390
|
+
/**
|
|
5391
|
+
* <p>
|
|
5392
|
+
* MAR - Maroon color.
|
|
5393
|
+
* </p>
|
|
5394
|
+
*/
|
|
5395
|
+
MAROON: 8,
|
|
5396
|
+
/**
|
|
5397
|
+
* <p>
|
|
5398
|
+
* PNK - Pink or albino
|
|
5399
|
+
* </p>
|
|
5400
|
+
*/
|
|
5401
|
+
PINK: 9,
|
|
5402
|
+
/**
|
|
5403
|
+
* <p>
|
|
5404
|
+
* UNK - Unknown / Other
|
|
5405
|
+
* </p>
|
|
5406
|
+
*/
|
|
5407
|
+
UNKNOWN: 10
|
|
5408
|
+
}
|
|
5409
|
+
|
|
5410
|
+
|
|
5411
|
+
/**
|
|
5412
|
+
* <p>
|
|
5413
|
+
* Enum for Country Identification in the US Driver's License
|
|
5414
|
+
* </p>
|
|
5415
|
+
*/
|
|
5416
|
+
USADriveIdCountry =
|
|
5417
|
+
{
|
|
5418
|
+
/**
|
|
5419
|
+
* <p>
|
|
5420
|
+
* Not filled - equal to NONE
|
|
5421
|
+
* </p>
|
|
5422
|
+
*/
|
|
5423
|
+
NONE: 0,
|
|
5424
|
+
/**
|
|
5425
|
+
* <p>
|
|
5426
|
+
* Country = U.S.
|
|
5427
|
+
* </p>
|
|
5428
|
+
*/
|
|
5429
|
+
US: 1,
|
|
5430
|
+
/**
|
|
5431
|
+
* <p>
|
|
5432
|
+
* Country = Canada
|
|
5433
|
+
* </p>
|
|
5434
|
+
*/
|
|
5435
|
+
CANADA: 2
|
|
5436
|
+
}
|
|
5437
|
+
|
|
5438
|
+
|
|
5439
|
+
/**
|
|
5440
|
+
* <p>
|
|
5441
|
+
* Enum for Hair Color in the US Driver's License
|
|
5442
|
+
* </p>
|
|
5443
|
+
*/
|
|
5444
|
+
USADriveIdHairColor =
|
|
5445
|
+
{
|
|
5446
|
+
/**
|
|
5447
|
+
* <p>
|
|
5448
|
+
* Not filled - equal to NONE
|
|
5449
|
+
* </p>
|
|
5450
|
+
*/
|
|
5451
|
+
NO_INFO: 0,
|
|
5452
|
+
/**
|
|
5453
|
+
* <p>
|
|
5454
|
+
* BAL - Bald.
|
|
5455
|
+
* </p>
|
|
5456
|
+
*/
|
|
5457
|
+
BALD: 1,
|
|
5458
|
+
/**
|
|
5459
|
+
* <p>
|
|
5460
|
+
* BLK - Black color
|
|
5461
|
+
* </p>
|
|
5462
|
+
*/
|
|
5463
|
+
BLACK: 2,
|
|
5464
|
+
/**
|
|
5465
|
+
* <p>
|
|
5466
|
+
* BLN - Blonde color
|
|
5467
|
+
* </p>
|
|
5468
|
+
*/
|
|
5469
|
+
BLOND: 3,
|
|
5470
|
+
/**
|
|
5471
|
+
* <p>
|
|
5472
|
+
* BRO - Brown color
|
|
5473
|
+
* </p>
|
|
5474
|
+
*/
|
|
5475
|
+
BROWN: 4,
|
|
5476
|
+
/**
|
|
5477
|
+
* <p>
|
|
5478
|
+
* GRY - Gray color
|
|
5479
|
+
* </p>
|
|
5480
|
+
*/
|
|
5481
|
+
GRAY: 5,
|
|
5482
|
+
/**
|
|
5483
|
+
* <p>
|
|
5484
|
+
* RED - Red / Auburn
|
|
5485
|
+
* </p>
|
|
5486
|
+
*/
|
|
5487
|
+
RED: 6,
|
|
5488
|
+
/**
|
|
5489
|
+
* <p>
|
|
5490
|
+
* SDY - Sandy color
|
|
5491
|
+
* </p>
|
|
5492
|
+
*/
|
|
5493
|
+
SANDY: 7,
|
|
5494
|
+
/**
|
|
5495
|
+
* <p>
|
|
5496
|
+
* WHI - White color
|
|
5497
|
+
* </p>
|
|
5498
|
+
*/
|
|
5499
|
+
WHITE: 8,
|
|
5500
|
+
/**
|
|
5501
|
+
* <p>
|
|
5502
|
+
* UNK - Unknown / Other
|
|
5503
|
+
* </p>
|
|
5504
|
+
*/
|
|
5505
|
+
UNKNOWN: 9
|
|
5506
|
+
}
|
|
5507
|
+
|
|
5508
|
+
/**
|
|
5509
|
+
* <p>
|
|
5510
|
+
* Enum for Sex field in the US Driver's License
|
|
5511
|
+
* </p>
|
|
5512
|
+
*/
|
|
5513
|
+
USADriveIdSex =
|
|
5514
|
+
{
|
|
5515
|
+
/**
|
|
5516
|
+
* <p>
|
|
5517
|
+
* Not filled - equal to NONE
|
|
5518
|
+
* </p>
|
|
5519
|
+
*/
|
|
5520
|
+
NONE: 0,
|
|
5521
|
+
/**
|
|
5522
|
+
* <p>
|
|
5523
|
+
* Male — indicates that the holder's sex is defined as male.
|
|
5524
|
+
* </p>
|
|
5525
|
+
*/
|
|
5526
|
+
MALE: 1,
|
|
5527
|
+
/**
|
|
5528
|
+
* <p>
|
|
5529
|
+
* Female — indicates that the holder's sex is defined as female.
|
|
5530
|
+
* </p>
|
|
5531
|
+
*/
|
|
5532
|
+
FEMALE: 2,
|
|
5533
|
+
/**
|
|
5534
|
+
* <p>
|
|
5535
|
+
* Not specified
|
|
5536
|
+
* </p>
|
|
5537
|
+
*/
|
|
5538
|
+
NOT_SPECIFIED: 9
|
|
5539
|
+
}
|
|
5540
|
+
|
|
3765
5541
|
module.exports = {
|
|
3766
5542
|
SwissQRCodetext,
|
|
3767
5543
|
ComplexBarcodeGenerator,
|
|
@@ -3790,5 +5566,14 @@ module.exports = {
|
|
|
3790
5566
|
SecondaryAndAdditionalData,
|
|
3791
5567
|
HIBCLICDateFormat,
|
|
3792
5568
|
HIBCPASDataType,
|
|
3793
|
-
MaxiCodeStandartSecondMessage
|
|
5569
|
+
MaxiCodeStandartSecondMessage,
|
|
5570
|
+
USADriveIdCodetext,
|
|
5571
|
+
MandatoryFields,
|
|
5572
|
+
DataElement,
|
|
5573
|
+
OptionalFields,
|
|
5574
|
+
USADriveIdHairColor,
|
|
5575
|
+
USADriveIdCountry,
|
|
5576
|
+
USADriveIdEyeColor,
|
|
5577
|
+
USADriveIdSex,
|
|
5578
|
+
SubfileProperties
|
|
3794
5579
|
};
|