io.mosip.kernel.packetmanager.dto.metadata.MetaInfo Maven / Gradle / Ivy
package io.mosip.kernel.packetmanager.dto.metadata;
import io.mosip.kernel.packetmanager.datatype.SimpleType;
import io.mosip.kernel.packetmanager.dto.SimpleDto;
import lombok.Data;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
@Data
public class MetaInfo {
public MetaInfo() {
this.metaData = new ArrayList();
this.operationsData = new ArrayList();
this.biometrics = new HashMap<>();
this.exceptionBiometrics = new ArrayList();
this.documents = new ArrayList();
this.hashSequence1 = new LinkedList();
this.hashSequence2 = new LinkedList();
this.operationsData = new ArrayList();
}
private Map> biometrics;
private List exceptionBiometrics;
private List documents;
private List metaData;
private List operationsData;
private List hashSequence1;
private List hashSequence2;
private List capturedRegisteredDevices;
private List capturedNonRegisteredDevices;
private List checkSum;
private List printingName;
public void setBiometrics(String subType, String bioAttribute, ModalityInfo modalityInfo) {
if(this.biometrics.containsKey(subType) && this.biometrics.get(subType) != null) {
this.biometrics.get(subType).put(bioAttribute, modalityInfo);
}
else {
Map map = new HashMap<>();
map.put(bioAttribute, modalityInfo);
this.biometrics.put(subType, map);
}
}
public void setBiometricException(List modalityExceptions) {
this.exceptionBiometrics.addAll(modalityExceptions);
}
public void addDocumentMetaInfo(DocumentMetaInfo documentMetaInfo) {
this.documents.add(documentMetaInfo);
}
public void addMetaData(FieldValue fieldValue) {
if(!this.metaData.contains(fieldValue))
this.metaData.add(fieldValue);
}
public void addOperationsData(FieldValue fieldValue) {
if(!this.operationsData.contains(fieldValue))
this.operationsData.add(fieldValue);
}
public void addHashSequence1(HashSequenceMetaInfo hashSequenceMetaInfo) {
this.hashSequence1.add(hashSequenceMetaInfo);
}
public void addHashSequence2(HashSequenceMetaInfo hashSequenceMetaInfo) {
this.hashSequence2.add(hashSequenceMetaInfo);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy