Package org.xhtmlrenderer.simple.extend
Class XhtmlCssOnlyNamespaceHandler
- java.lang.Object
-
- org.xhtmlrenderer.swing.NoNamespaceHandler
-
- org.xhtmlrenderer.simple.extend.XhtmlCssOnlyNamespaceHandler
-
- All Implemented Interfaces:
NamespaceHandler
- Direct Known Subclasses:
XhtmlNamespaceHandler
public class XhtmlCssOnlyNamespaceHandler extends NoNamespaceHandler
Handles xhtml but only css styling is honored, no presentational html attributes (see css 2.1 spec, 6.4.4)
-
-
Constructor Summary
Constructors Constructor Description XhtmlCssOnlyNamespaceHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAnchorName(org.w3c.dom.Element e)
java.lang.String
getClass(org.w3c.dom.Element e)
Gets the class attribute of the XhtmlNamespaceHandler objectStylesheetInfo
getDefaultStylesheet(StylesheetFactory factory)
java.lang.String
getDocumentTitle(org.w3c.dom.Document doc)
Returns the title of the document as located in the contents of /html/head/title, or "" if none could be found.java.lang.String
getElementStyling(org.w3c.dom.Element e)
Gets the elementStyling attribute of the XhtmlNamespaceHandler objectjava.lang.String
getID(org.w3c.dom.Element e)
Gets the iD attribute of the XhtmlNamespaceHandler objectjava.lang.String
getLinkUri(org.w3c.dom.Element e)
Gets the linkUri attribute of the XhtmlNamespaceHandler objectjava.lang.String
getNamespace()
Gets the namespace attribute of the XhtmlNamespaceHandler objectStylesheetInfo[]
getStylesheets(org.w3c.dom.Document doc)
Gets the stylesheetLinks attribute of the XhtmlNamespaceHandler object-
Methods inherited from class org.xhtmlrenderer.swing.NoNamespaceHandler
getAttributeValue, getAttributeValue, getImageSourceURI, getLang, getNonCssStyling, isFormElement, isImageElement
-
-
-
-
Method Detail
-
getNamespace
public java.lang.String getNamespace()
Gets the namespace attribute of the XhtmlNamespaceHandler object- Specified by:
getNamespace
in interfaceNamespaceHandler
- Overrides:
getNamespace
in classNoNamespaceHandler
- Returns:
- The namespace value
-
getClass
public java.lang.String getClass(org.w3c.dom.Element e)
Gets the class attribute of the XhtmlNamespaceHandler object- Specified by:
getClass
in interfaceNamespaceHandler
- Overrides:
getClass
in classNoNamespaceHandler
- Parameters:
e
- PARAM- Returns:
- The class value
-
getID
public java.lang.String getID(org.w3c.dom.Element e)
Gets the iD attribute of the XhtmlNamespaceHandler object- Specified by:
getID
in interfaceNamespaceHandler
- Overrides:
getID
in classNoNamespaceHandler
- Parameters:
e
- PARAM- Returns:
- The iD value
-
getElementStyling
public java.lang.String getElementStyling(org.w3c.dom.Element e)
Gets the elementStyling attribute of the XhtmlNamespaceHandler object- Specified by:
getElementStyling
in interfaceNamespaceHandler
- Overrides:
getElementStyling
in classNoNamespaceHandler
- Parameters:
e
- PARAM- Returns:
- The elementStyling value
-
getLinkUri
public java.lang.String getLinkUri(org.w3c.dom.Element e)
Gets the linkUri attribute of the XhtmlNamespaceHandler object- Specified by:
getLinkUri
in interfaceNamespaceHandler
- Overrides:
getLinkUri
in classNoNamespaceHandler
- Parameters:
e
- PARAM- Returns:
- The linkUri value
-
getAnchorName
public java.lang.String getAnchorName(org.w3c.dom.Element e)
- Specified by:
getAnchorName
in interfaceNamespaceHandler
- Overrides:
getAnchorName
in classNoNamespaceHandler
-
getDocumentTitle
public java.lang.String getDocumentTitle(org.w3c.dom.Document doc)
Returns the title of the document as located in the contents of /html/head/title, or "" if none could be found.- Specified by:
getDocumentTitle
in interfaceNamespaceHandler
- Overrides:
getDocumentTitle
in classNoNamespaceHandler
- Parameters:
doc
- the document to search for a title- Returns:
- The document's title, or "" if none found
-
getStylesheets
public StylesheetInfo[] getStylesheets(org.w3c.dom.Document doc)
Gets the stylesheetLinks attribute of the XhtmlNamespaceHandler object- Specified by:
getStylesheets
in interfaceNamespaceHandler
- Overrides:
getStylesheets
in classNoNamespaceHandler
- Parameters:
doc
- PARAM- Returns:
- The stylesheetLinks value
-
getDefaultStylesheet
public StylesheetInfo getDefaultStylesheet(StylesheetFactory factory)
- Specified by:
getDefaultStylesheet
in interfaceNamespaceHandler
- Overrides:
getDefaultStylesheet
in classNoNamespaceHandler
- Returns:
- the default CSS stylesheet for this namespace
-
-