java.lang.Object
org.apache.wicket.markup.MarkupElement
- Direct Known Subclasses:
ComponentTag
,HtmlSpecialTag
,RawMarkup
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.
- Author:
- Jonathan Locke
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
closes
(MarkupElement open) Gets whether this element closes the given element.abstract boolean
equalTo
(MarkupElement element) This is not an implementation of equals because we don't care about hashCodes for MarkupElements yet.abstract CharSequence
abstract String
Gets a string representation.
-
Constructor Details
-
MarkupElement
public MarkupElement()Constructor.
-
-
Method Details
-
closes
Gets whether this element closes the given element.- Parameters:
open
- The open tag- Returns:
- True if this markup element closes the given open tag
-
equalTo
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.- Parameters:
element
- The markup element to compare with- Returns:
- True if the other element equals this one
-
toCharSequence
- Returns:
- Gets the charsequence representation of this element
-
toUserDebugString
Gets a string representation.- Returns:
- A string representation suitable for displaying to the user when something goes wrong.
-