Class MarkupElement


  • public class MarkupElement
    extends Object
    The Class MarkupElement representing an element in a MarkupDocument.
    Author:
    Martin Scharm
    • Constructor Detail

      • MarkupElement

        public MarkupElement​(String header)
        Instantiates a new markup element.
        Parameters:
        header - the header
    • Method Detail

      • flagInvisibleModification

        public void flagInvisibleModification()
        Set a flag indicating that this element has modifications which are not visible in the markup document.
      • hasInvisibleModifications

        public boolean hasInvisibleModifications()
        Does this element have modifications which are not visible in the markup document?.
        Returns:
        true, if the are invisible modifications
      • setInvisibleModifications

        public boolean setInvisibleModifications​(boolean invisibleModifications)
        Does this element have modifications which are not visible in the markup document?.
        Parameters:
        invisibleModifications - the flag for invisible modifications
        Returns:
        true, if the are invisible modifications
      • addValue

        public void addValue​(String value)
        Adds an entry to this element.
        Parameters:
        value - the entry
      • addSubElements

        public void addSubElements​(MarkupElement element)
        Adds a sub-element.
        Parameters:
        element - the element
      • setHeader

        public void setHeader​(String header)
        Sets the header.
        Parameters:
        header - the new header
      • getHeader

        public String getHeader()
        Gets the header.
        Returns:
        the header
      • getValues

        public List<String> getValues()
        Gets the entries stored in this element.
        Returns:
        the entries
      • getSubElements

        public List<MarkupElement> getSubElements()
        Gets the sub-elements.
        Returns:
        the sub-elements