Interface AnnotationConverter

  • All Known Implementing Classes:
    JadiceAnnotationConverter

    public interface AnnotationConverter
    Interface for annotation-converters.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      byte[] convert​(java.lang.String original, java.lang.String ixosAnnotationsIni, int ixosPage)
      Converts the annotations to the desired format.
      void setDimension​(int width, int height)
      Set document dimension.
      void setDocumentInfos​(OpenDocumentBean openDocumentBean)
      Used to pass information about the document to the converter.
      void setEmpty​(boolean empty)
      Used to notify the converter that the document has no annotations.
      void setSession​(javax.servlet.http.HttpSession session)
      Passes the current session to the converter, if it is available.
      void setViewerId​(java.lang.String viewerId)
      Used to pass the ID of the viewer that requested the annotations to the converter.
    • Method Detail

      • setSession

        void setSession​(javax.servlet.http.HttpSession session)
        Passes the current session to the converter, if it is available.
        Parameters:
        session - the session
      • setEmpty

        void setEmpty​(boolean empty)
        Used to notify the converter that the document has no annotations.
        Parameters:
        empty - true if the document has no annotations
      • setDocumentInfos

        void setDocumentInfos​(OpenDocumentBean openDocumentBean)
        Used to pass information about the document to the converter.
        Parameters:
        openDocumentBean - the bean containing information about the opened document
      • convert

        byte[] convert​(java.lang.String original,
                       java.lang.String ixosAnnotationsIni,
                       int ixosPage)
                throws ConvertAnnotationException
        Converts the annotations to the desired format.
        Parameters:
        original - original annotations represented as String
        ixosAnnotationsIni - IXOS annotations
        ixosPage - IXOS page number
        Returns:
        converted annotations represented as byte array
        Throws:
        ConvertAnnotationException - when converting the annotations failed
      • setViewerId

        void setViewerId​(java.lang.String viewerId)
        Used to pass the ID of the viewer that requested the annotations to the converter.
        Parameters:
        viewerId - ID of the viewer
      • setDimension

        void setDimension​(int width,
                          int height)
        Set document dimension.
        Parameters:
        width - Width
        height - Height