Flying Saucer Project Release ${app.version}

org.xhtmlrenderer.simple.extend
Class XhtmlCssOnlyNamespaceHandler

java.lang.Object
  extended by org.xhtmlrenderer.swing.NoNamespaceHandler
      extended by 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
XhtmlCssOnlyNamespaceHandler()
           
 
Method Summary
 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 object
 StylesheetInfo 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 object
 java.lang.String getID(org.w3c.dom.Element e)
          Gets the iD attribute of the XhtmlNamespaceHandler object
 java.lang.String getLinkUri(org.w3c.dom.Element e)
          Gets the linkUri attribute of the XhtmlNamespaceHandler object
 java.lang.String getNamespace()
          Gets the namespace attribute of the XhtmlNamespaceHandler object
 StylesheetInfo[] 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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XhtmlCssOnlyNamespaceHandler

public XhtmlCssOnlyNamespaceHandler()
Method Detail

getNamespace

public java.lang.String getNamespace()
Gets the namespace attribute of the XhtmlNamespaceHandler object

Specified by:
getNamespace in interface NamespaceHandler
Overrides:
getNamespace in class NoNamespaceHandler
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 interface NamespaceHandler
Overrides:
getClass in class NoNamespaceHandler
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 interface NamespaceHandler
Overrides:
getID in class NoNamespaceHandler
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 interface NamespaceHandler
Overrides:
getElementStyling in class NoNamespaceHandler
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 interface NamespaceHandler
Overrides:
getLinkUri in class NoNamespaceHandler
Parameters:
e - PARAM
Returns:
The linkUri value

getAnchorName

public java.lang.String getAnchorName(org.w3c.dom.Element e)
Specified by:
getAnchorName in interface NamespaceHandler
Overrides:
getAnchorName in class NoNamespaceHandler

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 interface NamespaceHandler
Overrides:
getDocumentTitle in class NoNamespaceHandler
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 interface NamespaceHandler
Overrides:
getStylesheets in class NoNamespaceHandler
Parameters:
doc - PARAM
Returns:
The stylesheetLinks value

getDefaultStylesheet

public StylesheetInfo getDefaultStylesheet(StylesheetFactory factory)
Specified by:
getDefaultStylesheet in interface NamespaceHandler
Overrides:
getDefaultStylesheet in class NoNamespaceHandler
Returns:
the default CSS stylesheet for this namespace

Flying Saucer Project Release ${app.version}

Flying Saucer Project Home