Class CloseIdMLFC

  • All Implemented Interfaces:
    FunctionInterface, VersionInfoInterface

    public class CloseIdMLFC
    extends Function
    This Function is used to close explicitly the used IdML book, if it is not closed already. Depending on the type of the closed book, it will return either its content, represented as a String (for in-memory IdMLs), or the full path of the IdML file (for books stored as files).
    • Constructor Detail

      • CloseIdMLFC

        public CloseIdMLFC()
    • Method Detail

      • initialize

        public void initialize​(java.lang.Object object)
                        throws java.lang.Exception
        This method is/should be called once after the object has been given its configuration
        Specified by:
        initialize in interface FunctionInterface
        Overrides:
        initialize in class Function
        Parameters:
        object - this object provides information to the Function Component needed on initialization
        Throws:
        java.lang.Exception - An exception is thrown if the initialization fails.
      • perform

        public java.lang.Object perform​(java.lang.Object obj)
                                 throws java.lang.Exception
        The FC updates the name of the used IdML book (if it has been modified), and a attempts to close the book. If the book has already been closed or never opened a message is displayed.
        Parameters:
        obj - the work entry passed to the FC.
        Returns:
        an entry object, containing the IdMLConstants.BOOK_ATTR attribute.
        Throws:
        java.lang.Exception - if a problem occurs.
      • getVersion

        public java.lang.String getVersion()
        Version information.
        Returns:
        version information