what-the-bank/sources/com/kofax/kmc/klo/logistics/webservice/WscIndexField.java

291 lines
13 KiB
Java

package com.kofax.kmc.klo.logistics.webservice;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
import com.huawei.hms.support.feature.result.CommonConstant;
import com.kofax.kmc.klo.logistics.service.KofaxWebServiceConnectorService;
import com.kofax.kmc.klo.logistics.version.KloVersion;
import com.kofax.kmc.kut.utilities.SdkVersion;
import com.kofax.kmc.kut.utilities.error.ErrorInfo;
import com.kofax.kmc.kut.utilities.error.KmcRuntimeException;
import com.kofax.mobile.sdk._internal.impl.extraction.rtti.RttiJsonExactionHelper;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import o.C15281gmQ;
import o.gmO;
/* loaded from: classes3.dex */
public class WscIndexField extends KofaxWebServiceObjectBase implements Serializable, Cloneable {
private static final String TAG = "WscIndexField";
private static final long serialVersionUID = 4705811951869805523L;
private transient boolean batchClassIndexField;
private transient String dataType;
private transient String displayName;
private transient boolean documentClassIndexField;
private transient boolean forceMatch;
private transient boolean hidden;
private transient String isBatchClassIndexFieldString;
private transient String isDocumentClassIndexFieldString;
private transient boolean masked;
private transient String max;
private transient String min;
private transient String name;
private transient List<String> options = new ArrayList();
private transient boolean required;
private transient String scale;
private transient String value;
private transient String width;
/* renamed from: clone, reason: merged with bridge method [inline-methods] */
public WscIndexField m278clone() {
try {
WscIndexField wscIndexField = (WscIndexField) super.clone();
wscIndexField.options = new ArrayList(this.options);
return wscIndexField;
} catch (CloneNotSupportedException unused) {
throw new InternalError("WscIndexField: clone not supported exception");
}
}
public static WscIndexField populateFromResponse(gmO gmo) {
WscIndexField wscIndexField = new WscIndexField();
wscIndexField.setBatchClassIndexField("true".equals(KofaxWebServiceConnectorService.getVerySafeSoapProperty(gmo, "batchClassIndexField", "false")));
wscIndexField.setDataType(KofaxWebServiceConnectorService.getVerySafeSoapProperty(gmo, "dataType", "string"));
wscIndexField.setDisplayName(KofaxWebServiceConnectorService.getVerySafeSoapProperty(gmo, CommonConstant.KEY_DISPLAY_NAME, ""));
wscIndexField.setDocumentClassIndexField("true".equals(KofaxWebServiceConnectorService.getVerySafeSoapProperty(gmo, "documentClassIndexField", "false")));
wscIndexField.setForceMatch("true".equals(KofaxWebServiceConnectorService.getVerySafeSoapProperty(gmo, "forceMatch", "false")));
wscIndexField.setHidden("true".equals(KofaxWebServiceConnectorService.getVerySafeSoapProperty(gmo, "hidden", "false")));
wscIndexField.setIsBatchClassIndexFieldString(KofaxWebServiceConnectorService.getVerySafeSoapProperty(gmo, "isBatchClassIndexFieldString", ""));
wscIndexField.setIsDocumentClassIndexFieldString(KofaxWebServiceConnectorService.getVerySafeSoapProperty(gmo, "isDocumentClassIndexFieldString", ""));
wscIndexField.setMasked("true".equals(KofaxWebServiceConnectorService.getVerySafeSoapProperty(gmo, "masked", "false")));
wscIndexField.setMax(KofaxWebServiceConnectorService.getVerySafeSoapProperty(gmo, "max", ""));
wscIndexField.setMin(KofaxWebServiceConnectorService.getVerySafeSoapProperty(gmo, "min", ""));
wscIndexField.setName(KofaxWebServiceConnectorService.getVerySafeSoapProperty(gmo, "name", ""));
wscIndexField.setRequired("true".equals(KofaxWebServiceConnectorService.getVerySafeSoapProperty(gmo, "required", "false")));
wscIndexField.setScale(KofaxWebServiceConnectorService.getVerySafeSoapProperty(gmo, "scale", ""));
wscIndexField.setValue(KofaxWebServiceConnectorService.getVerySafeSoapProperty(gmo, AppMeasurementSdk.ConditionalUserProperty.VALUE, ""));
wscIndexField.setWidth(KofaxWebServiceConnectorService.getVerySafeSoapProperty(gmo, RttiJsonExactionHelper.WIDTH, ""));
ArrayList arrayList = new ArrayList();
for (int i = 0; i < gmo.getPropertyCount(); i++) {
C15281gmQ c15281gmQ = new C15281gmQ();
gmo.a(i, c15281gmQ);
if (c15281gmQ.c() != null && c15281gmQ.m.equals("options")) {
arrayList.add(gmo.getProperty(i).toString());
}
}
wscIndexField.setOptions(arrayList);
return wscIndexField;
}
public gmO toSoapObject(String str, String str2) {
gmO gmo = new gmO(str, str2);
gmo.b.addElement(createPropertyInfo(str, "batchClassIndexField", Boolean.valueOf(isBatchClassIndexField()), C15281gmQ.d));
gmo.b.addElement(createPropertyInfo(str, "dataType", getDataType(), C15281gmQ.j));
gmo.b.addElement(createPropertyInfo(str, CommonConstant.KEY_DISPLAY_NAME, getDisplayName(), C15281gmQ.j));
gmo.b.addElement(createPropertyInfo(str, "documentClassIndexField", Boolean.valueOf(isDocumentClassIndexField()), C15281gmQ.d));
gmo.b.addElement(createPropertyInfo(str, "forceMatch", Boolean.valueOf(isForceMatch()), C15281gmQ.d));
gmo.b.addElement(createPropertyInfo(str, "hidden", Boolean.valueOf(isHidden()), C15281gmQ.d));
gmo.b.addElement(createPropertyInfo(str, "isBatchClassIndexFieldString", getIsBatchClassIndexFieldString(), C15281gmQ.j));
gmo.b.addElement(createPropertyInfo(str, "isDocumentClassIndexFieldString", getIsDocumentClassIndexFieldString(), C15281gmQ.j));
gmo.b.addElement(createPropertyInfo(str, "masked", Boolean.valueOf(isMasked()), C15281gmQ.d));
gmo.b.addElement(createPropertyInfo(str, "max", getMax(), C15281gmQ.j));
gmo.b.addElement(createPropertyInfo(str, "min", getMin(), C15281gmQ.j));
gmo.b.addElement(createPropertyInfo(str, "name", getName(), C15281gmQ.j));
gmo.b.addElement(createPropertyInfo(str, "required", Boolean.valueOf(isRequired()), C15281gmQ.d));
gmo.b.addElement(createPropertyInfo(str, "scale", getScale(), C15281gmQ.j));
gmo.b.addElement(createPropertyInfo(str, AppMeasurementSdk.ConditionalUserProperty.VALUE, getValue(), C15281gmQ.j));
gmo.b.addElement(createPropertyInfo(str, RttiJsonExactionHelper.WIDTH, getWidth(), C15281gmQ.j));
return gmo;
}
private void writeObject(ObjectOutputStream objectOutputStream) throws IOException {
objectOutputStream.defaultWriteObject();
objectOutputStream.writeObject(WscIndexField.class.getName());
objectOutputStream.writeObject(KloVersion.getPackageVersion());
objectOutputStream.writeObject(Boolean.valueOf(this.batchClassIndexField));
objectOutputStream.writeObject(this.dataType);
objectOutputStream.writeObject(this.displayName);
objectOutputStream.writeObject(Boolean.valueOf(this.documentClassIndexField));
objectOutputStream.writeObject(Boolean.valueOf(this.forceMatch));
objectOutputStream.writeObject(Boolean.valueOf(this.hidden));
objectOutputStream.writeObject(this.isBatchClassIndexFieldString);
objectOutputStream.writeObject(this.isDocumentClassIndexFieldString);
objectOutputStream.writeObject(Boolean.valueOf(this.masked));
objectOutputStream.writeObject(this.max);
objectOutputStream.writeObject(this.min);
objectOutputStream.writeObject(this.name);
objectOutputStream.writeObject(this.options);
objectOutputStream.writeObject(Boolean.valueOf(this.required));
objectOutputStream.writeObject(this.scale);
objectOutputStream.writeObject(this.value);
objectOutputStream.writeObject(this.width);
}
private void readObject(ObjectInputStream objectInputStream) throws IOException, ClassNotFoundException, KmcRuntimeException {
objectInputStream.defaultReadObject();
if (WscIndexField.class.getName().compareToIgnoreCase((String) objectInputStream.readObject()) == 0) {
if (SdkVersion.versionCompatible(KloVersion.getPackageVersion(), (String) objectInputStream.readObject()).booleanValue()) {
this.batchClassIndexField = ((Boolean) objectInputStream.readObject()).booleanValue();
this.dataType = (String) objectInputStream.readObject();
this.displayName = (String) objectInputStream.readObject();
this.documentClassIndexField = ((Boolean) objectInputStream.readObject()).booleanValue();
this.forceMatch = ((Boolean) objectInputStream.readObject()).booleanValue();
this.hidden = ((Boolean) objectInputStream.readObject()).booleanValue();
this.isBatchClassIndexFieldString = (String) objectInputStream.readObject();
this.isDocumentClassIndexFieldString = (String) objectInputStream.readObject();
this.masked = ((Boolean) objectInputStream.readObject()).booleanValue();
this.max = (String) objectInputStream.readObject();
this.min = (String) objectInputStream.readObject();
this.name = (String) objectInputStream.readObject();
this.options = (List) objectInputStream.readObject();
this.required = ((Boolean) objectInputStream.readObject()).booleanValue();
this.scale = (String) objectInputStream.readObject();
this.value = (String) objectInputStream.readObject();
this.width = (String) objectInputStream.readObject();
return;
}
throw new KmcRuntimeException(ErrorInfo.KMC_GN_DESERIALIZE_VERSION_ERROR);
}
throw new KmcRuntimeException(ErrorInfo.KMC_GN_DESERIALIZE_OBJECT_ERROR);
}
public void setWidth(String str) {
this.width = str;
}
public void setValue(String str) {
this.value = str;
}
public void setScale(String str) {
this.scale = str;
}
public void setRequired(boolean z) {
this.required = z;
}
public void setOptions(List<String> list) {
this.options = list;
}
public void setName(String str) {
this.name = str;
}
public void setMin(String str) {
this.min = str;
}
public void setMax(String str) {
this.max = str;
}
public void setMasked(boolean z) {
this.masked = z;
}
public void setIsDocumentClassIndexFieldString(String str) {
this.isDocumentClassIndexFieldString = str;
}
public void setIsBatchClassIndexFieldString(String str) {
this.isBatchClassIndexFieldString = str;
}
public void setHidden(boolean z) {
this.hidden = z;
}
public void setForceMatch(boolean z) {
this.forceMatch = z;
}
public void setDocumentClassIndexField(boolean z) {
this.documentClassIndexField = z;
}
public void setDisplayName(String str) {
this.displayName = str;
}
public void setDataType(String str) {
this.dataType = str;
}
public void setBatchClassIndexField(boolean z) {
this.batchClassIndexField = z;
}
public boolean isRequired() {
return this.required;
}
public boolean isMasked() {
return this.masked;
}
public boolean isHidden() {
return this.hidden;
}
public boolean isForceMatch() {
return this.forceMatch;
}
public boolean isDocumentClassIndexField() {
return this.documentClassIndexField;
}
public boolean isBatchClassIndexField() {
return this.batchClassIndexField;
}
public String getWidth() {
return this.width;
}
public String getValue() {
return this.value;
}
public String getScale() {
return this.scale;
}
public List<String> getOptions() {
return this.options;
}
public String getName() {
return this.name;
}
public String getMin() {
return this.min;
}
public String getMax() {
return this.max;
}
public String getIsDocumentClassIndexFieldString() {
return this.isDocumentClassIndexFieldString;
}
public String getIsBatchClassIndexFieldString() {
return this.isBatchClassIndexFieldString;
}
public String getDisplayName() {
return this.displayName;
}
public String getDataType() {
return this.dataType;
}
}