Class MarkupElement

  • Direct Known Subclasses:
    ComponentTag, HtmlSpecialTag, RawMarkup

    public abstract class MarkupElement
    extends Object
    Base class for different kinds of markup elements. Markup elements are held in a Markup container object.

    Wicket divides markup like (x)html, wml etc. into two types of MarkupElements:

    • ComponentTag, which represents a "significant" markup tag (meaning that the tag has some meaning to Wicket)
    • RawMarkup, which is a section of unparsed markup having no meaning to Wicket.
    Jonathan Locke
    See Also:
    RawMarkup, ComponentTag
    • Method Detail

      • closes

        public boolean closes​(MarkupElement open)
        Gets whether this element closes the given element.
        open - The open tag
        True if this markup element closes the given open tag
      • equalTo

        public abstract boolean equalTo​(MarkupElement element)
        This is not an implementation of equals because we don't care about hashCodes for MarkupElements yet. Also, this method only compares the namespace, name and attributes of the given MarkupElements.
        element - The markup element to compare with
        True if the other element equals this one
      • toUserDebugString

        public abstract String toUserDebugString()
        Gets a string representation.
        A string representation suitable for displaying to the user when something goes wrong.