Class PublisherMarkupFilter
- java.lang.Object
-
- org.apache.wicket.markup.parser.AbstractMarkupFilter
-
- lumis.portal.presentation.core.AbstractLayoutFileMarkupFilter
-
- lumis.portal.presentation.tag.page.PageMarkupFilter
-
- lumis.portal.presentation.mode.navigation.NavigationMarkupFilter
-
- lumis.portal.presentation.mode.publisher.PublisherMarkupFilter
-
- All Implemented Interfaces:
org.apache.wicket.markup.parser.IMarkupFilter
- Direct Known Subclasses:
InEditContextMarkupFilter
,PersonalizationMarkupFilter
,PublicationDashboardMarkupFilter
public class PublisherMarkupFilter extends NavigationMarkupFilter
Generic Filter for the Publisher modes.- Since:
- 6.0.0
- Version:
- $Revision: 20745 $ $Date: 2017-11-16 10:54:37 -0200 (Thu, 16 Nov 2017) $
-
-
Constructor Summary
Constructors Constructor Description PublisherMarkupFilter(boolean stripLayoutFileTagsAndAttributes)
The class constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
afterProcessTag(org.apache.wicket.markup.ComponentTag componentTag)
Allow to manipulate a tag after theAbstractLayoutFileMarkupFilter.processTag(ComponentTag)
method.protected org.apache.wicket.markup.ComponentTag
beforeProcessTag(org.apache.wicket.markup.ComponentTag componentTag)
Allow to manipulate a tag before theAbstractLayoutFileMarkupFilter.processTag(ComponentTag)
method.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.-
Methods inherited from class lumis.portal.presentation.tag.page.PageMarkupFilter
processTag
-
Methods inherited from class lumis.portal.presentation.core.AbstractLayoutFileMarkupFilter
createComponentTag, extractAttribute, generateId, getNamespacePrefix, isStripLayoutFileTagsAndAttributes, nextTag, pushTag
-
-
-
-
Method Detail
-
getGenerateIdPrefix
protected String getGenerateIdPrefix()
Description copied from class:AbstractLayoutFileMarkupFilter
Returns the prefix to be used byAbstractLayoutFileMarkupFilter.generateId(String)
.- Overrides:
getGenerateIdPrefix
in classPageMarkupFilter
- 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()
.- Overrides:
getNamespaceURI
in classPageMarkupFilter
- 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.- Overrides:
getDefaultNamespacePrefix
in classPageMarkupFilter
- Returns:
- the default namespace prefix.
- See Also:
AbstractLayoutFileMarkupFilter.getNamespacePrefix()
-
beforeProcessTag
protected org.apache.wicket.markup.ComponentTag beforeProcessTag(org.apache.wicket.markup.ComponentTag componentTag)
Description copied from class:AbstractLayoutFileMarkupFilter
Allow to manipulate a tag before theAbstractLayoutFileMarkupFilter.processTag(ComponentTag)
method.- Overrides:
beforeProcessTag
in classNavigationMarkupFilter
- Parameters:
componentTag
- the tag to be processed.- Returns:
- the tag that will actually be processed.
- See Also:
AbstractLayoutFileMarkupFilter.processTag(ComponentTag)
,AbstractLayoutFileMarkupFilter.afterProcessTag(ComponentTag)
-
afterProcessTag
protected void afterProcessTag(org.apache.wicket.markup.ComponentTag componentTag)
Description copied from class:AbstractLayoutFileMarkupFilter
Allow to manipulate a tag after theAbstractLayoutFileMarkupFilter.processTag(ComponentTag)
method.- Overrides:
afterProcessTag
in classNavigationMarkupFilter
- Parameters:
componentTag
- the tag processed.- See Also:
AbstractLayoutFileMarkupFilter.beforeProcessTag(ComponentTag)
,AbstractLayoutFileMarkupFilter.processTag(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.
- Overrides:
isHTMLElement
in classPageMarkupFilter
- 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:
- 6.0.0
-
-