Class ContentDoc

    • Constructor Detail

      • ContentDoc

        public ContentDoc​(Doc doc)
        Parameters:
        doc -
    • Method Detail

      • getDoc

        public Doc getDoc()
      • setDoc

        public void setDoc​(Doc doc)
      • getOpts

        public java.util.Map<java.lang.String,​java.lang.Object> getOpts()
      • setOpts

        public void setOpts​(java.util.Map<java.lang.String,​java.lang.Object> opts)
      • getContent

        public java.util.List<java.lang.Object> getContent()
        Overrides:
        getContent in class AbstractContent
        Returns:
        List
        • isCountable

          public boolean isCountable()
          Description copied from class: AbstractContent
          Should return false if this Item is some kind of meta information (e.g. format information). * Whether this Item should be addressable via `yarray.get(i)` * Whether this Item should be counted when computing yarray.length
          Overrides:
          isCountable in class AbstractContent
          Returns:
          boolean
        • splice

          public ContentDoc splice​(int offset)
          Description copied from class: AbstractContent
          Splices the content at the specified offset.
          Overrides:
          splice in class AbstractContent
          Parameters:
          offset -
          Returns:
          ContentDoc
        • mergeWith

          public boolean mergeWith​(ContentDoc right)
          Parameters:
          right -
          Returns:
          boolean
        • readContentDoc

          public static ContentDoc readContentDoc​(UpdateDecoder decoder)
          Static method to read ContentDoc from a decoder
          Parameters:
          decoder -
          Returns:
          ContentDoc