org.apache.wicket.markup
Class MarkupResourceData

java.lang.Object
  extended by org.apache.wicket.markup.MarkupResourceData

public class MarkupResourceData
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, Juergen Donnerstag
See Also:
MarkupElement, ComponentTag, RawMarkup

Field Summary
static MarkupResourceData NO_MARKUP_RESOURCE_DATA
          Placeholder that indicates no markup
 
Method Summary
 Markup getBaseMarkup()
          In case of markup inheritance, the base markup resource.
 MarkupResourceData getBaseMarkupResourceData()
          Get the resource stream containing the base markup (markup inheritance)
 java.lang.String getEncoding()
          Gets the markup encoding.
 MarkupResourceStream getResource()
          Gets the resource that contains this markup
 java.lang.String getWicketId()
           
 java.lang.String getWicketNamespace()
          Get the wicket namespace valid for this specific markup
 java.lang.String getXmlDeclaration()
          Return the XML declaration string, in case if found in the markup.
 void setBaseMarkup(Markup baseMarkup)
          In case of markup inheritance, the base markup.
 void setWicketNamespace(java.lang.String wicketNamespace)
          Sets wicketNamespace.
 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_RESOURCE_DATA

public static final MarkupResourceData NO_MARKUP_RESOURCE_DATA
Placeholder that indicates no markup

Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
String representation of markup list

getResource

public MarkupResourceStream getResource()
Gets the resource that contains this markup

Returns:
The resource where this markup came from

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.

getWicketNamespace

public java.lang.String getWicketNamespace()
Get the wicket namespace valid for this specific markup

Returns:
wicket namespace

getWicketId

public final java.lang.String getWicketId()
Returns:
usually it is "wicket:id"

setWicketNamespace

public final void setWicketNamespace(java.lang.String wicketNamespace)
Sets wicketNamespace.

Parameters:
wicketNamespace - wicketNamespace

getBaseMarkupResourceData

public MarkupResourceData getBaseMarkupResourceData()
Get the resource stream containing the base markup (markup inheritance)

Returns:
baseMarkupResource Null, if not base markup

setBaseMarkup

public void setBaseMarkup(Markup baseMarkup)
In case of markup inheritance, the base markup.

Parameters:
baseMarkup - The base markup

getBaseMarkup

public Markup getBaseMarkup()
In case of markup inheritance, the base markup resource.

Returns:
The base markup


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