Package adams.doc.xml

Class AbstractComplexTag

    • Field Detail

      • m_AllowEmpty

        protected boolean m_AllowEmpty
        whether to output empty tags.
    • Constructor Detail

      • AbstractComplexTag

        public AbstractComplexTag​(String tag)
        Initializes the tag.
        Parameters:
        tag - the name of the tag
    • Method Detail

      • hasContent

        public boolean hasContent()
        Checks whether there is any content to append.
        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