public class XhtmlCssOnlyNamespaceHandler extends NoNamespaceHandler
| 构造器和说明 |
|---|
XhtmlCssOnlyNamespaceHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected String |
convertToLength(String value) |
String |
getAnchorName(Element e) |
protected String |
getAttribute(Element e,
String attrName)
Looks for attribute named attrName on the element, and returns null if not
found, or the attribute value, trimmed, if found.
|
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 |
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, getLang, getNonCssStyling, isFormElement, isImageElementpublic String getNamespace()
getNamespace 在接口中 NamespaceHandlergetNamespace 在类中 NoNamespaceHandlerpublic String getClass(Element e)
getClass 在接口中 NamespaceHandlergetClass 在类中 NoNamespaceHandlere - PARAMpublic String getID(Element e)
getID 在接口中 NamespaceHandlergetID 在类中 NoNamespaceHandlere - PARAMprotected boolean isInteger(String value)
protected String getAttribute(Element e, String attrName)
e - element to test for the given attributeattrName - name of the attribute to look forpublic String getElementStyling(Element e)
getElementStyling 在接口中 NamespaceHandlergetElementStyling 在类中 NoNamespaceHandlere - PARAMpublic String getLinkUri(Element e)
getLinkUri 在接口中 NamespaceHandlergetLinkUri 在类中 NoNamespaceHandlere - PARAMpublic String getAnchorName(Element e)
getAnchorName 在接口中 NamespaceHandlergetAnchorName 在类中 NoNamespaceHandlerpublic String getDocumentTitle(Document doc)
getDocumentTitle 在接口中 NamespaceHandlergetDocumentTitle 在类中 NoNamespaceHandlerdoc - the document to search for a titleprotected StylesheetInfo readStyleElement(Element style)
protected StylesheetInfo readLinkElement(Element link)
public StylesheetInfo[] getStylesheets(Document doc)
getStylesheets 在接口中 NamespaceHandlergetStylesheets 在类中 NoNamespaceHandlerdoc - PARAMpublic StylesheetInfo getDefaultStylesheet(StylesheetFactory factory)
getDefaultStylesheet 在接口中 NamespaceHandlergetDefaultStylesheet 在类中 NoNamespaceHandlerCopyright © 2019. All Rights Reserved.