Class PageMarkupFilter
- java.lang.Object
-
- org.apache.wicket.markup.parser.AbstractMarkupFilter
-
- lumis.portal.presentation.core.AbstractLayoutFileMarkupFilter
-
- lumis.portal.presentation.tag.page.PageMarkupFilter
-
- All Implemented Interfaces:
org.apache.wicket.markup.parser.IMarkupFilter
- Direct Known Subclasses:
NavigationMarkupFilter
,UserPerspectiveMarkupFilter
public class PageMarkupFilter extends AbstractLayoutFileMarkupFilter
Markup filter that processes layout file tags.- Since:
- 5.6.0
- Version:
- $Revision: 13072 $ $Date: 2011-05-26 16:17:03 -0300 (Thu, 26 May 2011) $
-
-
Constructor Summary
Constructors Constructor Description PageMarkupFilter(boolean stripLayoutFileTagsAndAttributes)
Creates a new markup filter for processing layout file tags.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getDefaultNamespacePrefix()
Returns the default namespace prefix for the tags processed by this filter.protected String
getGenerateIdPrefix()
Returns the prefix to be used byAbstractLayoutFileMarkupFilter.generateId(String)
.protected String
getNamespaceURI()
Returns the namespace URI whose prefix will be determined to be returned byAbstractLayoutFileMarkupFilter.getNamespacePrefix()
.protected boolean
isHTMLElement(org.apache.wicket.markup.ComponentTag tag, String elementName)
Returns true if the given tag corresponds to the given element name and has no namespace.protected org.apache.wicket.markup.ComponentTag
processTag(org.apache.wicket.markup.ComponentTag componentTag)
Processes the tag.-
Methods inherited from class lumis.portal.presentation.core.AbstractLayoutFileMarkupFilter
afterProcessTag, beforeProcessTag, createComponentTag, extractAttribute, generateId, getNamespacePrefix, isStripLayoutFileTagsAndAttributes, nextTag, pushTag
-
-
-
-
Constructor Detail
-
PageMarkupFilter
public PageMarkupFilter(boolean stripLayoutFileTagsAndAttributes)
Creates a new markup filter for processing layout file tags.- Parameters:
stripLayoutFileTagsAndAttributes
- indicates whether layout file built-in tags and attributes are to be removed from the output.- Since:
- 5.6.0
-
-
Method Detail
-
getGenerateIdPrefix
protected String getGenerateIdPrefix()
Description copied from class:AbstractLayoutFileMarkupFilter
Returns the prefix to be used byAbstractLayoutFileMarkupFilter.generateId(String)
.- Specified by:
getGenerateIdPrefix
in classAbstractLayoutFileMarkupFilter
- Returns:
- the prefix.
-
getNamespaceURI
protected String getNamespaceURI()
Description copied from class:AbstractLayoutFileMarkupFilter
Returns the namespace URI whose prefix will be determined to be returned byAbstractLayoutFileMarkupFilter.getNamespacePrefix()
.- Specified by:
getNamespaceURI
in classAbstractLayoutFileMarkupFilter
- Returns:
- the namespace URI.
-
getDefaultNamespacePrefix
protected String getDefaultNamespacePrefix()
Description copied from class:AbstractLayoutFileMarkupFilter
Returns the default namespace prefix for the tags processed by this filter. This is the prefix that will be used if the namespace is not defined in the markup.- Specified by:
getDefaultNamespacePrefix
in classAbstractLayoutFileMarkupFilter
- Returns:
- the default namespace prefix.
- See Also:
AbstractLayoutFileMarkupFilter.getNamespacePrefix()
-
processTag
protected org.apache.wicket.markup.ComponentTag processTag(org.apache.wicket.markup.ComponentTag componentTag) throws ParseException
Description copied from class:AbstractLayoutFileMarkupFilter
Processes the tag.- Overrides:
processTag
in classAbstractLayoutFileMarkupFilter
- Parameters:
componentTag
- the tag to process.- Returns:
- the resulting tag.
- Throws:
ParseException
- if a invalid situation was detected at the markup.- See Also:
AbstractLayoutFileMarkupFilter.beforeProcessTag(ComponentTag)
,AbstractLayoutFileMarkupFilter.afterProcessTag(ComponentTag)
-
isHTMLElement
protected boolean isHTMLElement(org.apache.wicket.markup.ComponentTag tag, String elementName)
Returns true if the given tag corresponds to the given element name and has no namespace.The element name is compared case insensitively.
- Parameters:
tag
- the given tag.elementName
- the given element name.- Returns:
- true if the given tag corresponds to the given element name and has no name space.
- Since:
- 5.6.0
-
-