Package org.apache.wicket.markup
Class RawMarkup
- java.lang.Object
-
- org.apache.wicket.markup.MarkupElement
-
- org.apache.wicket.markup.RawMarkup
-
public class RawMarkup extends MarkupElement
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:
MarkupElement
-
-
Constructor Summary
Constructors Constructor Description RawMarkup(CharSequence string)
Create a RawMarkup element referencing an uninterpreted markup string.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
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.CharSequence
toCharSequence()
String
toString()
String
toUserDebugString()
Gets a string representation.-
Methods inherited from class org.apache.wicket.markup.MarkupElement
closes
-
-
-
-
Constructor Detail
-
RawMarkup
public RawMarkup(CharSequence string)
Create a RawMarkup element referencing an uninterpreted markup string.- Parameters:
string
- The raw markup
-
-
Method Detail
-
equalTo
public boolean equalTo(MarkupElement element)
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:
MarkupElement.equalTo(org.apache.wicket.markup.MarkupElement)
-
hashCode
public int hashCode()
We must override hashCode since we overrode equals.
-
toCharSequence
public CharSequence toCharSequence()
- Specified by:
toCharSequence
in classMarkupElement
- Returns:
- Gets the charsequence representation of this element
- See Also:
MarkupElement.toCharSequence()
-
toUserDebugString
public String 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:
MarkupElement.toUserDebugString()
-
-