Package org.apache.wicket.markup
Class RawMarkup
java.lang.Object
org.apache.wicket.markup.MarkupElement
org.apache.wicket.markup.RawMarkup
This class is for framework purposes only, which is why the class is (default) protected.
A RawMarkup element represents a hunk of unparsed HTML containing any arbitrary content.
- Author:
- Jonathan Locke
- See Also:
-
Constructor Summary
ConstructorDescriptionRawMarkup
(CharSequence string) Create a RawMarkup element referencing an uninterpreted markup string. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare with a given objectboolean
equalTo
(MarkupElement element) This is not an implementation of equals because we don't care about hashCodes for MarkupElements yet.int
hashCode()
We must override hashCode since we overrode equals.toString()
Gets a string representation.Methods inherited from class org.apache.wicket.markup.MarkupElement
closes
-
Constructor Details
-
RawMarkup
Create a RawMarkup element referencing an uninterpreted markup string.- Parameters:
string
- The raw markup
-
-
Method Details
-
equals
Compare with a given object -
equalTo
Description copied from class:MarkupElement
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.- Specified by:
equalTo
in classMarkupElement
- Parameters:
element
- The markup element to compare with- Returns:
- True if the other element equals this one
- See Also:
-
hashCode
We must override hashCode since we overrode equals. -
toCharSequence
- Specified by:
toCharSequence
in classMarkupElement
- Returns:
- Gets the charsequence representation of this element
- See Also:
-
toString
-
toUserDebugString
Description copied from class:MarkupElement
Gets a string representation.- Specified by:
toUserDebugString
in classMarkupElement
- Returns:
- A string representation suitable for displaying to the user when something goes wrong.
- See Also:
-