Class CbeffContainerImpl


  • public class CbeffContainerImpl
    extends CbeffContainerI<BIR,​BIR>
    Author:
    Ramadurai Pandian A Container Class where the BIR is created and updated
    • Constructor Detail

      • CbeffContainerImpl

        public CbeffContainerImpl()
    • Method Detail

      • createBIRType

        public BIR createBIRType​(List<BIR> birList)
        Method where the initialization of BIR happens
        Specified by:
        createBIRType in class CbeffContainerI<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:
        updateBIRType in class CbeffContainerI<BIR,​BIR>
        Parameters:
        birList - List of BIR data
        fileBytes - Cbeff XML data as bytes
        Returns:
        BIR BIR data with all images
        Throws:
        Exception
      • validateXML

        public boolean validateXML​(byte[] xmlBytes,
                                   byte[] xsdBytes)
                            throws Exception
        Method to the validate the BIR
        Specified by:
        validateXML in class CbeffContainerI<BIR,​BIR>
        Parameters:
        xmlBytes - Cbeff XML data as bytes array
        xsdBytes - Cbeff XSD data as bytes array
        Returns:
        boolean of validated XML against XSD
        Throws:
        Exception