org.apache.wicket.markup
Class RawMarkup

java.lang.Object
  extended by org.apache.wicket.markup.MarkupElement
      extended by org.apache.wicket.markup.RawMarkup

public final 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
RawMarkup(java.lang.CharSequence string)
          Create a RawMarkup element referencing an uninterpreted markup string.
 
Method Summary
 boolean equals(java.lang.Object o)
          Compare with a given object
 boolean 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.
 java.lang.CharSequence toCharSequence()
           
 java.lang.String toString()
           
 java.lang.String toUserDebugString()
          Gets a string representation.
 
Methods inherited from class org.apache.wicket.markup.MarkupElement
closes
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RawMarkup

public RawMarkup(java.lang.CharSequence string)
Create a RawMarkup element referencing an uninterpreted markup string.

Parameters:
string - The raw markup
Method Detail

equals

public boolean equals(java.lang.Object o)
Compare with a given object

Overrides:
equals in class java.lang.Object
Parameters:
o - The object to compare with
Returns:
True if equal

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 class MarkupElement
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:
hashCode in class java.lang.Object
Returns:
Hashcode for this object

toCharSequence

public java.lang.CharSequence toCharSequence()
Specified by:
toCharSequence in class MarkupElement
Returns:
Gets the charsequence representation of this element
See Also:
MarkupElement.toCharSequence()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
This raw markup string

toUserDebugString

public java.lang.String toUserDebugString()
Description copied from class: MarkupElement
Gets a string representation.

Specified by:
toUserDebugString in class MarkupElement
Returns:
A string representation suitable for displaying to the user when something goes wrong.
See Also:
MarkupElement.toUserDebugString()


Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.