Package org.faceless.publisher.ext
Class HtmlNamespaceExtension
java.lang.Object
org.faceless.publisher.ext.HtmlNamespaceExtension
- All Implemented Interfaces:
ReportFactoryExtension
A ReportFactoryExtension that will add support for the "xmlns" prefix to defined
namespaces for HTML parsing, in the same way it already exists for XML.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Determines how namespaces are inferred in HTML. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(Json json) Configure the extension.getMap()
Return the map of localname to URI that is used to map namespaces manually.getMode()
Return the mode, as set bysetMode(org.faceless.publisher.ext.HtmlNamespaceExtension.Mode)
void
Set theHtmlNamespaceExtension.Mode
in which namespaces on Html elements are determinedMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.faceless.publisher.ext.ReportFactoryExtension
load, register, register, unregister, unregister
-
Constructor Details
-
HtmlNamespaceExtension
public HtmlNamespaceExtension()
-
-
Method Details
-
configure
public void configure(Json json) Description copied from interface:ReportFactoryExtension
Configure the extension. This method will be called by the web-service immediately after the extension is added, to pass in any parameters set by the user. The default implementation does nothing- Specified by:
configure
in interfaceReportFactoryExtension
-
setMode
Set theHtmlNamespaceExtension.Mode
in which namespaces on Html elements are determined -
getMode
Return the mode, as set bysetMode(org.faceless.publisher.ext.HtmlNamespaceExtension.Mode)
-
getMap
Return the map of localname to URI that is used to map namespaces manually. If the local name of an element is a key in this map, the value is used as the URI for this element and its children. The map contains some default values, but can be modified.
-