Class PCont


  • public class PCont
    extends Object
    Represents the standalone tag of a protected content.

    A protected content is a span of content (that may include code or marker tags) that is temporarily folded into a tag reference to prevent the content to be modified.

    See Unit.hideProtectedContent() and Unit.showProtectedContent().

    • Field Detail

      • codedText

        protected String codedText
    • Constructor Detail

      • PCont

        public PCont()
        Creates an empty PCont object.
      • PCont

        public PCont​(PCont original)
        Copy constructor.
        Parameters:
        original - the original object to duplicate.
      • PCont

        public PCont​(String codedText)
        Creates a new protected content marker with a given coded text.
        Parameters:
        codedText - the span of coded text to protect.
    • Method Detail

      • getCodedText

        public String getCodedText()
        Gets the coded text for this protected content. The corresponding markers are in the store.
        Returns:
        the coded text for this protected content.
      • setCodedText

        public void setCodedText​(String codedText)
        Sets the coded text for this protected content.
        Parameters:
        codedText - the new coded text.