public class XhtmlCssOnlyNamespaceHandler extends NoNamespaceHandler
| Constructor and Description |
|---|
XhtmlCssOnlyNamespaceHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
convertToLength(String value) |
String |
getAnchorName(Element e) |
protected String |
getAttribute(Element e,
String attrName) |
String |
getClass(Element e)
Gets the class attribute of the XhtmlNamespaceHandler object
|
StylesheetInfo |
getDefaultStylesheet(StylesheetFactory factory) |
String |
getDocumentTitle(Document doc)
Returns the title of the document as located in the contents of /html/head/title, or "" if none could be found.
|
String |
getElementStyling(Element e)
Gets the elementStyling attribute of the XhtmlNamespaceHandler object
|
String |
getID(Element e)
Gets the iD attribute of the XhtmlNamespaceHandler object
|
String |
getLang(Element e)
Gets the language of an element as specified (in order of precedence) by the lang attribute on the element itself,
the first ancestor with a lang attribute, the Content-Language meta tag or the empty string.
|
String |
getLinkUri(Element e)
Gets the linkUri attribute of the XhtmlNamespaceHandler object
|
String |
getNamespace()
Gets the namespace attribute of the XhtmlNamespaceHandler object
|
protected String |
getPathToDefaultStylesheet() |
StylesheetInfo[] |
getStylesheets(Document doc)
Gets the stylesheetLinks attribute of the XhtmlNamespaceHandler object
|
protected boolean |
isInteger(String value) |
protected StylesheetInfo |
readLinkElement(Element link) |
protected StylesheetInfo |
readStyleElement(Element style) |
getAttributeValue, getAttributeValue, getImageSourceURI, getNonCssStyling, isFormElement, isImageElementpublic String getNamespace()
getNamespace in interface NamespaceHandlergetNamespace in class NoNamespaceHandlerpublic String getClass(Element e)
getClass in interface NamespaceHandlergetClass in class NoNamespaceHandlere - PARAMpublic String getID(Element e)
getID in interface NamespaceHandlergetID in class NoNamespaceHandlere - PARAMprotected boolean isInteger(String value)
public String getLinkUri(Element e)
getLinkUri in interface NamespaceHandlergetLinkUri in class NoNamespaceHandlere - PARAMpublic String getAnchorName(Element e)
getAnchorName in interface NamespaceHandlergetAnchorName in class NoNamespaceHandlerpublic String getElementStyling(Element e)
getElementStyling in interface NamespaceHandlergetElementStyling in class NoNamespaceHandlere - PARAMpublic String getDocumentTitle(Document doc)
getDocumentTitle in interface NamespaceHandlergetDocumentTitle in class NoNamespaceHandlerdoc - the document to search for a titleprotected StylesheetInfo readStyleElement(Element style)
protected StylesheetInfo readLinkElement(Element link)
public StylesheetInfo[] getStylesheets(Document doc)
getStylesheets in interface NamespaceHandlergetStylesheets in class NoNamespaceHandlerpublic StylesheetInfo getDefaultStylesheet(StylesheetFactory factory)
getDefaultStylesheet in interface NamespaceHandlergetDefaultStylesheet in class NoNamespaceHandlerprotected String getPathToDefaultStylesheet()
public String getLang(Element e)
getLang in interface NamespaceHandlergetLang in class NoNamespaceHandlere - PARAMCopyright © 2004–2026. All rights reserved.