wicket.markup
Class MarkupElement

java.lang.Object
  extended by wicket.markup.MarkupElement
Direct Known Subclasses:
ComponentTag, RawMarkup, XmlTag

public abstract class MarkupElement
extends java.lang.Object

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:

Author:
Jonathan Locke
See Also:
Markup, RawMarkup, ComponentTag

Constructor Summary
MarkupElement()
          Constructor.
 
Method Summary
 boolean closes(MarkupElement open)
          Gets whether this element closes the given element.
abstract  java.lang.CharSequence toCharSequence()
           
abstract  java.lang.String toUserDebugString()
          Gets a string represenetation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarkupElement

public MarkupElement()
Constructor.

Method Detail

closes

public boolean closes(MarkupElement open)
Gets whether this element closes the given element.

Parameters:
open - The open tag
Returns:
True if this markup element closes the given open tag

toCharSequence

public abstract java.lang.CharSequence toCharSequence()
Returns:
Gets the charseqence representation of this element

toUserDebugString

public abstract java.lang.String toUserDebugString()
Gets a string represenetation.

Returns:
A string representation suitable for displaying to the user when something goes wrong.


Copyright © 2004-2007 Wicket developers. All Rights Reserved.