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)
may return null
|
String |
getLinkUri(Element e)
Gets the linkUri attribute of the XhtmlNamespaceHandler object
|
String |
getNamespace()
Gets the namespace attribute of the XhtmlNamespaceHandler object
|
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 getElementStyling(Element e)
getElementStyling in interface NamespaceHandlergetElementStyling in class NoNamespaceHandlere - PARAMpublic String getLinkUri(Element e)
getLinkUri in interface NamespaceHandlergetLinkUri in class NoNamespaceHandlere - PARAMpublic String getAnchorName(Element e)
getAnchorName in interface NamespaceHandlergetAnchorName in class NoNamespaceHandlerpublic 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 NoNamespaceHandlerdoc - PARAMpublic StylesheetInfo getDefaultStylesheet(StylesheetFactory factory)
getDefaultStylesheet in interface NamespaceHandlergetDefaultStylesheet in class NoNamespaceHandlerpublic String getLang(Element e)
NamespaceHandlergetLang in interface NamespaceHandlergetLang in class NoNamespaceHandlere - PARAMCopyright © 2017. All rights reserved.