Package emissary.id

Class WorkUnit

    • Field Detail

      • filename

        protected String filename
      • data

        protected byte[] data
      • header

        protected byte[] header
      • footer

        protected byte[] footer
      • currentForm

        protected String currentForm
    • Constructor Detail

      • WorkUnit

        public WorkUnit()
      • WorkUnit

        public WorkUnit​(String filename,
                        byte[] data)
      • WorkUnit

        public WorkUnit​(String filename,
                        byte[] data,
                        String currentForm)
      • WorkUnit

        public WorkUnit​(String f,
                        byte[] hd,
                        byte[] data,
                        byte[] ft,
                        String currentForm)
    • Method Detail

      • getFilename

        public String getFilename()
        Gets the value of filename
        Returns:
        the value of filename
      • setFilename

        public void setFilename​(String argFilename)
        Sets the value of filename
        Parameters:
        argFilename - Value to assign to this.filename
      • getData

        public byte[] getData()
        Gets the value of data
        Returns:
        the value of data
      • setData

        public void setData​(byte[] argData)
        Sets the value of data
        Parameters:
        argData - Value to assign to this.data
      • getCurrentForm

        public String getCurrentForm()
        Gets the value of currentForm
        Returns:
        the value of currentForm
      • setCurrentForm

        public void setCurrentForm​(String argCurrentForm)
        Sets the value of currentForm
        Parameters:
        argCurrentForm - Value to assign to this.currentForm
      • getHeader

        public byte[] getHeader()
        Gets the value of header[]
        Returns:
        the value of header[]
      • setHeader

        public void setHeader​(byte[] argHeader)
        Sets the value of header[]
        Parameters:
        argHeader - Value to assign to this.header[]
      • getFooter

        public byte[] getFooter()
        Gets the value of footer[]
        Returns:
        the value of footer[]
      • setFooter

        public void setFooter​(byte[] argFooter)
        Sets the value of footer[]
        Parameters:
        argFooter - Value to assign to this.footer[]
      • addParameter

        public void addParameter​(String key,
                                 String value)
        Add a parameter to control the work
      • addParameters

        public void addParameters​(Map<String,​String> m)
        Add a bunch of parameters to control the work
      • getParameter

        public String getParameter​(String key)
        Retrieve a parameter
      • getParameters

        public Map<String,​String> getParameters()
        Get all parameters