wicket.markup
Class Markup

java.lang.Object
  extended bywicket.markup.Markup

public final class Markup
extends java.lang.Object

Holds markup as a resource (the stream that the markup came from) and a list of MarkupElements (the markup itself).

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

Field Summary
static Markup NO_MARKUP
          Placeholder that indicates no markup
 
Method Summary
 java.lang.String getEncoding()
          Gets the markup encoding.
 java.lang.String getXmlDeclaration()
          Return the XML declaration string, in case if found in the markup.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NO_MARKUP

public static final Markup NO_MARKUP
Placeholder that indicates no markup

Method Detail

toString

public java.lang.String toString()
Returns:
String representation of markup list

getXmlDeclaration

public java.lang.String getXmlDeclaration()
Return the XML declaration string, in case if found in the markup.

Returns:
Null, if not found.

getEncoding

public java.lang.String getEncoding()
Gets the markup encoding. A markup encoding may be specified in a markup file with an XML encoding specifier of the form <?xml ... encoding="..." ?>.

Returns:
Encoding, or null if not found.


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