Package io.mosip.mimoto.service.impl
Class CbeffContainerImpl
- java.lang.Object
-
- io.mosip.mimoto.service.CbeffContainerI<BIR,BIR>
-
- io.mosip.mimoto.service.impl.CbeffContainerImpl
-
public class CbeffContainerImpl extends CbeffContainerI<BIR,BIR>
- Author:
- Ramadurai Pandian A Container Class where the BIR is created and updated
-
-
Constructor Summary
Constructors Constructor Description CbeffContainerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BIRcreateBIRType(List<BIR> birList)Method where the initialization of BIR happensBIRupdateBIRType(List<BIR> birList, byte[] fileBytes)Method to the update of BIRbooleanvalidateXML(byte[] xmlBytes, byte[] xsdBytes)Method to the validate the BIR
-
-
-
Method Detail
-
createBIRType
public BIR createBIRType(List<BIR> birList)
Method where the initialization of BIR happens- Specified by:
createBIRTypein classCbeffContainerI<BIR,BIR>- Parameters:
birList- List of BIR data- Returns:
- BIR data with all images
-
updateBIRType
public BIR updateBIRType(List<BIR> birList, byte[] fileBytes) throws Exception
Method to the update of BIR- Specified by:
updateBIRTypein classCbeffContainerI<BIR,BIR>- Parameters:
birList- List of BIR datafileBytes- Cbeff XML data as bytes- Returns:
- BIR BIR data with all images
- Throws:
Exception
-
validateXML
public boolean validateXML(byte[] xmlBytes, byte[] xsdBytes) throws ExceptionMethod to the validate the BIR- Specified by:
validateXMLin classCbeffContainerI<BIR,BIR>- Parameters:
xmlBytes- Cbeff XML data as bytes arrayxsdBytes- Cbeff XSD data as bytes array- Returns:
- boolean of validated XML against XSD
- Throws:
Exception
-
-