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(java.lang.CharSequence string)Create a RawMarkup element referencing an uninterpreted markup string.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)Compare with a given objectbooleanequalTo(MarkupElement element)This is not an implementation of equals because we don't care about hashCodes for MarkupElements yet.inthashCode()We must override hashCode since we overrode equals.java.lang.CharSequencetoCharSequence()java.lang.StringtoString()java.lang.StringtoUserDebugString()Gets a string representation.-
Methods inherited from class org.apache.wicket.markup.MarkupElement
closes
-
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
Compare with a given object- Overrides:
equalsin classjava.lang.Object- Parameters:
o- The object to compare with- Returns:
- True if equal
-
equalTo
public boolean equalTo(MarkupElement element)
Description copied from class:MarkupElementThis 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:
equalToin 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.- Overrides:
hashCodein classjava.lang.Object- Returns:
- Hashcode for this object
-
toCharSequence
public java.lang.CharSequence toCharSequence()
- Specified by:
toCharSequencein classMarkupElement- Returns:
- Gets the charsequence representation of this element
- See Also:
MarkupElement.toCharSequence()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object- Returns:
- This raw markup string
-
toUserDebugString
public java.lang.String toUserDebugString()
Description copied from class:MarkupElementGets a string representation.- Specified by:
toUserDebugStringin classMarkupElement- Returns:
- A string representation suitable for displaying to the user when something goes wrong.
- See Also:
MarkupElement.toUserDebugString()
-
-