Class AbstractMixedTag

    • Field Detail

      • m_AllowEmpty

        protected boolean m_AllowEmpty
        whether to output empty tags.
      • m_Content

        protected String m_Content
        the content.
    • Constructor Detail

      • AbstractMixedTag

        public AbstractMixedTag​(String tag)
        Initializes the tag with not content.
        Parameters:
        tag - the name of the tag
      • AbstractMixedTag

        public AbstractMixedTag​(String tag,
                                String content)
        Initializes the tag.
        Parameters:
        tag - the name of the tag
        content - the initial content, null to ignore
    • Method Detail

      • setContent

        public void setContent​(String value)
        Sets the content of the tag.
        Parameters:
        value - the string content
      • getContent

        public String getContent()
        Returns the string content.
        Returns:
        the content
      • hasContent

        public boolean hasContent()
        Returns whether there is any "simple", textual content available.
        Specified by:
        hasContent in class AbstractTag
        Returns:
        true if content available
      • appendContent

        protected void appendContent​(StringBuilder buffer)
        Appends the content of the tag to the buffer.
        Specified by:
        appendContent in class AbstractTag
        Parameters:
        buffer - the buffer to append the content to
      • toXML

        public void toXML​(StringBuilder buffer)
        Turns the XML tree into its string representation.
        Overrides:
        toXML in class AbstractTag
        Parameters:
        buffer - the buffer to append the tag to