Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public ChosenDocumentType rotated180(@javax.annotation.Nonnull Integer rotated18
}

/**
* true if the document of the given type is rotated by 180 degrees
* Indicates if the document of the given type is rotated by 180 degrees
*
* @return rotated180
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,157 +23,28 @@
@JsonAdapter(Light.Adapter.class)
public enum Light {

/** Lighting schemes are off */
OFF(0l),
/** No Light */
OFF(0),

/** OVI scheme */
OVI(1l),
/** White */
WHITE(6),

/** Upper/lower lighters of white light scheme */
WHITE_TOP(2l),
/** Infrared */
IR(24),

/** Side lighters of white light scheme */
WHITE_SIDE(4l),

/** General white light without separate control of side and upper/lower lighters scheme */
WHITE_FRONT(8388608l),

/** Upper/lower and side lighters of white light scheme */
WHITE(6l),

/** Upper/lower lighters of IR light scheme */
IR_TOP(8l),

/** Side lighters of IR light scheme */
IR_SIDE(16l),

/** General IR light without separate control of side and upper/lower lighters scheme */
IR_FRONT(16777216l),

/** Upper/lower and side lighters of IR light scheme */
IR(24l),

/** general white image converted to grayscale */
WHITE_GRAY(33554432l),

/** General UV light scheme */
UV(128l),

/** OVD light for hologram visualization */
OVD(67108864l),

/** Video detection light for internal use only */
VIDEODETECTION(134217728l),

/** Light IR 870 oblique */
IR_870_OBL(268435456l),

/** IR luminescence */
IR_LUMINESCENCE(256l),

/** Left lighter of white coaxial light scheme */
AXIAL_WHITE_LEFT(1024l),

/** Right lighter of white coaxial light scheme */
AXIAL_WHITE_RIGHT(2048l),

/** Coaxial white light without separate control of left and right lighters scheme */
AXIAL_WHITE_FRONT(512l),

/** IR720 */
IR_720(4096l),

/** IR940 */
IR_940(8192l),
/** Ultraviolet */
UV(128),

/** Right and left lighters of white coaxial light scheme */
AXIAL_WHITE_FULL(3072l),

/** For internal use */
RAW_DATA(2147483648l),

/** For internal use */
RAW_DATA_GRBG(2415919104l),

/** For internal use */
RAW_DATA_GBGR(2684354560l),

/** For internal use */
RAW_DATA_RGGB(2952790016l),

/** For internal use */
RAW_DATA_BGGR(3221225472l),

/** Transmitted */
TRANSMITTED(32l),

/** Transmitted IR */
TRANSMITTED_IR(64l),

/** Transmitted AntiStokes */
ANTI_STOKES(65536l),

/** Transmitted IR940 */
TRANSMITTED_IR940(16384l),

/** OVD right */
OVD_RIGHT(262144l),

/** OVD left */
OVD_LEFT(131072l),

/** IR 700 */
IR_700(32768l),

/** Front IR870 (mod. 8803) */
IR_870(16777216l),

/** OVD light (hologram visualization) (mod. 8850) */
HOLO(67108864l),

/** For internal use */
IR_BOTTOM(64l),

/** For internal use */
WHITE_BOTTOM(32l),

/** UVС 254 (mod. 88X0) */
UVC(524288l),

/** UVB 313 (mod. 88X0) */
UVB(1048576l),

/** White oblique light */
WHITE_OBL(2097152l),

/** For internal use */
WHITE_SPECIAL(4194304l),

/** White UV */
WHITE_UV(134l),

/** White full hologram */
WHITE_FULL_HOLO(67108870l),

/** HR light */
HR_LIGHT(1073741824l),

/** HR white */
HR_WHITE(1073741830l),

/** HR UV */
HR_UV(1073741952l),

/** HR IR */
HR_IR(1073741848l);
AXIAL_WHITE_FULL(3072);

private Long value;
private Integer value;

Light(Long value) {
Light(Integer value) {
this.value = value;
}

public Long getValue() {
public Integer getValue() {
return value;
}

Expand All @@ -182,7 +53,7 @@ public String toString() {
return String.valueOf(value);
}

public static Light fromValue(Long value) {
public static Light fromValue(Integer value) {
for (Light b : Light.values()) {
if (b.value.equals(value)) {
return b;
Expand All @@ -199,13 +70,13 @@ public void write(final JsonWriter jsonWriter, final Light enumeration) throws I

@Override
public Light read(final JsonReader jsonReader) throws IOException {
Long value = jsonReader.nextLong();
Integer value = jsonReader.nextInt();
return Light.fromValue(value);
}
}

public static void validateJsonElement(JsonElement jsonElement) throws IOException {
Long value = jsonElement.getAsLong();
Integer value = jsonElement.getAsInt();
Light.fromValue(value);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public OneCandidate rotated180(@javax.annotation.Nonnull Integer rotated180) {
}

/**
* true if the document of the given type is rotated by 180 degrees
* Indicates if the document of the given type is rotated by 180 degrees
*
* @return rotated180
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
@JsonAdapter(RfidDataGroupTypeTag.Adapter.class)
public enum RfidDataGroupTypeTag {

/** Common Data Group Type */
/** Common Data Element */
COM(96),

/** Data Group 1 */
Expand Down Expand Up @@ -78,118 +78,118 @@ public enum RfidDataGroupTypeTag {
/** Data Group 16 */
DG16(112),

/** Start of Data */
/** Security Object Document */
SOD(119),

/** Extended Interoperable Data, Data Group 1 */
/** eID, Data Group 1 */
EID_DG1(97),

/** Extended Interoperable Data, Data Group 2 */
/** eID, Data Group 2 */
EID_DG2(98),

/** Extended Interoperable Data, Data Group 3 */
/** eID, Data Group 3 */
EID_DG3(99),

/** Extended Interoperable Data, Data Group 4 */
/** eID, Data Group 4 */
EID_DG4(100),

/** Extended Interoperable Data, Data Group 5 */
/** eID, Data Group 5 */
EID_DG5(101),

/** Extended Interoperable Data, Data Group 6 */
/** eID, Data Group 6 */
EID_DG6(102),

/** Extended Interoperable Data, Data Group 7 */
/** eID, Data Group 7 */
EID_DG7(103),

/** Extended Interoperable Data, Data Group 8 */
/** eID, Data Group 8 */
EID_DG8(104),

/** Extended Interoperable Data, Data Group 9 */
/** eID, Data Group 9 */
EID_DG9(105),

/** Extended Interoperable Data, Data Group 10 */
/** eID, Data Group 10 */
EID_DG10(106),

/** Extended Interoperable Data, Data Group 11 */
/** eID, Data Group 11 */
EID_DG11(107),

/** Extended Interoperable Data, Data Group 12 */
/** eID, Data Group 12 */
EID_DG12(108),

/** Extended Interoperable Data, Data Group 13 */
/** eID, Data Group 13 */
EID_DG13(109),

/** Extended Interoperable Data, Data Group 14 */
/** eID, Data Group 14 */
EID_DG14(110),

/** Extended Interoperable Data, Data Group 15 */
/** eID, Data Group 15 */
EID_DG15(111),

/** Extended Interoperable Data, Data Group 16 */
/** eID, Data Group 16 */
EID_DG16(112),

/** Extended Interoperable Data, Data Group 17 */
/** eID, Data Group 17 */
EID_DG17(113),

/** Extended Interoperable Data, Data Group 18 */
/** eID, Data Group 18 */
EID_DG18(114),

/** Extended Interoperable Data, Data Group 19 */
/** eID, Data Group 19 */
EID_DG19(115),

/** Extended Interoperable Data, Data Group 20 */
/** eID, Data Group 20 */
EID_DG20(116),

/** Extended Interoperable Data, Data Group 21 */
/** eID, Data Group 21 */
EID_DG21(117),

/** Extended Length Data, Common Data Group Type */
/** eDL, Common Data Element */
EDL_COM(96),

/** Extended Length Data, Start of Data */
/** eDL, Security Object Document */
EDL_SOD(119),

/** Extended Length Data, Certificate Holder Authorization */
/** eDL, Card Entitlement */
EDL_CE(119),

/** Extended Length Data, Data Group 1 */
/** eDL, Data Group 1 */
EDL_DG1(97),

/** Extended Length Data, Data Group 2 */
/** eDL, Data Group 2 */
EDL_DG2(107),

/** Extended Length Data, Data Group 3 */
/** eDL, Data Group 3 */
EDL_DG3(108),

/** Extended Length Data, Data Group 4 */
/** eDL, Data Group 4 */
EDL_DG4(101),

/** Extended Length Data, Data Group 5 */
/** eDL, Data Group 5 */
EDL_DG5(103),

/** Extended Length Data, Data Group 6 */
/** eDL, Data Group 6 */
EDL_DG6(117),

/** Extended Length Data, Data Group 7 */
/** eDL, Data Group 7 */
EDL_DG7(99),

/** Extended Length Data, Data Group 8 */
/** eDL, Data Group 8 */
EDL_DG8(118),

/** Extended Length Data, Data Group 9 */
/** eDL, Data Group 9 */
EDL_DG9(112),

/** Extended Length Data, Data Group 11 */
/** eDL, Data Group 11 */
EDL_DG11(109),

/** Extended Length Data, Data Group 12 */
/** eDL, Data Group 12 */
EDL_DG12(113),

/** Extended Length Data, Data Group 13 */
/** eDL, Data Group 13 */
EDL_DG13(111),

/** Extended Length Data, Data Group 14 */
/** eDL, Data Group 14 */
EDL_DG14(110);

private Integer value;
Expand Down