Class COSDocumentState


  • public class COSDocumentState
    extends java.lang.Object
    An instance of COSDocumentState collects all known states a COSDocument may have and shall allow their evaluation.
    See Also:
    COSDocument
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean parsing
      The parsing state of the document.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isAcceptingUpdates()
      Returns true, if the document´s parsing is completed and it may be updated.
      void setParsing​(boolean parsing)
      Sets the parsing state of the document.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • parsing

        private boolean parsing
        The parsing state of the document.
        • true, if the document is currently being parsed. (initial state)
        • false, if the document's parsing completed and it may be edited and updated.
    • Constructor Detail

      • COSDocumentState

        public COSDocumentState()
    • Method Detail

      • setParsing

        public void setParsing​(boolean parsing)
        Sets the parsing state of the document.
        Parameters:
        parsing - The parsing state to set.
      • isAcceptingUpdates

        public boolean isAcceptingUpdates()
        Returns true, if the document´s parsing is completed and it may be updated.
        Returns:
        true, if the document´s parsing is completed and it may be updated.