Class ExtContent

    • Constructor Detail

      • ExtContent

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

        public ExtContent​(String text)
        Creates a new ExtContent object.
        Parameters:
        text - the text of the content.
      • ExtContent

        public ExtContent​(String text,
                          boolean cdata)
        Creates a new ExtContent object in CDATA mode or not.
        Parameters:
        text - the text of the content.
        cdata - true if the content should be written in a CDATA section, false otherwise.
    • Method Detail

      • getType

        public ExtChildType getType()
        Description copied from interface: IExtChild
        Gets the type of child this object is (one of the ExtChildType values).
        Specified by:
        getType in interface IExtChild
        Returns:
        the type of child this object is.
      • getCData

        public boolean getCData()
        Indicates if the content is to be represented as CDATA.
        Returns:
        true if the content is to be represented as CDATA, false otherwise.
      • setCData

        public void setCData​(boolean cdata)
        Sets the flag indicating if the content is to be represented as CDATA.
        Parameters:
        cdata - true to represent the content as CDATA.
      • getText

        public String getText()
        Gets the content.
        Returns:
        the content.
      • setText

        public void setText​(String text)
        Sets the content.
        Parameters:
        text - the new content.