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.StringgetAnchorName(org.w3c.dom.Element e)java.lang.StringgetClass(org.w3c.dom.Element e)Gets the class attribute of the XhtmlNamespaceHandler objectStylesheetInfogetDefaultStylesheet(StylesheetFactory factory)java.lang.StringgetDocumentTitle(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.StringgetElementStyling(org.w3c.dom.Element e)Gets the elementStyling attribute of the XhtmlNamespaceHandler objectjava.lang.StringgetID(org.w3c.dom.Element e)Gets the iD attribute of the XhtmlNamespaceHandler objectjava.lang.StringgetLinkUri(org.w3c.dom.Element e)Gets the linkUri attribute of the XhtmlNamespaceHandler objectjava.lang.StringgetNamespace()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:
getNamespacein interfaceNamespaceHandler- Overrides:
getNamespacein 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:
getClassin interfaceNamespaceHandler- Overrides:
getClassin 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:
getIDin interfaceNamespaceHandler- Overrides:
getIDin 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:
getElementStylingin interfaceNamespaceHandler- Overrides:
getElementStylingin 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:
getLinkUriin interfaceNamespaceHandler- Overrides:
getLinkUriin classNoNamespaceHandler- Parameters:
e- PARAM- Returns:
- The linkUri value
-
getAnchorName
public java.lang.String getAnchorName(org.w3c.dom.Element e)
- Specified by:
getAnchorNamein interfaceNamespaceHandler- Overrides:
getAnchorNamein 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:
getDocumentTitlein interfaceNamespaceHandler- Overrides:
getDocumentTitlein 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:
getStylesheetsin interfaceNamespaceHandler- Overrides:
getStylesheetsin classNoNamespaceHandler- Parameters:
doc- PARAM- Returns:
- The stylesheetLinks value
-
getDefaultStylesheet
public StylesheetInfo getDefaultStylesheet(StylesheetFactory factory)
- Specified by:
getDefaultStylesheetin interfaceNamespaceHandler- Overrides:
getDefaultStylesheetin classNoNamespaceHandler- Returns:
- the default CSS stylesheet for this namespace
-
-