public class NoNamespaceHandler extends Object implements NamespaceHandler
| 构造器和说明 |
|---|
NoNamespaceHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getAnchorName(Element e) |
String |
getAttributeValue(Element e,
String attrName)
may return null.
|
String |
getAttributeValue(Element e,
String namespaceURI,
String attrName) |
String |
getClass(Element e)
may return null
|
StylesheetInfo |
getDefaultStylesheet(StylesheetFactory factory) |
String |
getDocumentTitle(Document doc) |
String |
getElementStyling(Element e)
may return null
|
String |
getID(Element e)
may return null
|
String |
getImageSourceURI(Element e)
For an element where isImageElement returns true, retrieves the URI associated with that Image, as
reported by the element; makes no guarrantee that the URI is correct, complete or points to anything in
particular.
|
String |
getLang(Element e)
may return null
|
String |
getLinkUri(Element e)
should return null if element is not a link
|
String |
getNamespace() |
String |
getNonCssStyling(Element e)
may return null
|
StylesheetInfo[] |
getStylesheets(Document doc) |
boolean |
isFormElement(Element e)
Determines whether or not the specified Element represents a
<form>.
|
boolean |
isImageElement(Element e) |
public String getNamespace()
getNamespace 在接口中 NamespaceHandlerpublic String getAttributeValue(Element e, String attrName)
NamespaceHandlergetAttributeValue 在接口中 NamespaceHandlere - PARAMattrName - PARAMpublic String getAttributeValue(Element e, String namespaceURI, String attrName)
getAttributeValue 在接口中 NamespaceHandlerpublic String getClass(Element e)
NamespaceHandlergetClass 在接口中 NamespaceHandlere - PARAMpublic String getID(Element e)
NamespaceHandlergetID 在接口中 NamespaceHandlere - PARAMpublic String getLang(Element e)
NamespaceHandlergetLang 在接口中 NamespaceHandlere - PARAMpublic String getElementStyling(Element e)
NamespaceHandlergetElementStyling 在接口中 NamespaceHandlere - PARAMpublic String getNonCssStyling(Element e)
NamespaceHandlergetNonCssStyling 在接口中 NamespaceHandlerpublic String getLinkUri(Element e)
NamespaceHandlergetLinkUri 在接口中 NamespaceHandlere - PARAMpublic String getDocumentTitle(Document doc)
getDocumentTitle 在接口中 NamespaceHandlerpublic String getAnchorName(Element e)
getAnchorName 在接口中 NamespaceHandlerpublic boolean isImageElement(Element e)
isImageElement 在接口中 NamespaceHandlerpublic String getImageSourceURI(Element e)
NamespaceHandlerNamespaceHandler.isImageElement(org.w3c.dom.Element) returns false, this method may
return false, and may also return false if the Element is not correctly formed and contains no URI; check the
return value carefully.getImageSourceURI 在接口中 NamespaceHandlere - The element to extract image info from.public boolean isFormElement(Element e)
NamespaceHandlerisFormElement 在接口中 NamespaceHandlere - The Element to evaluate.public StylesheetInfo[] getStylesheets(Document doc)
getStylesheets 在接口中 NamespaceHandlerpublic StylesheetInfo getDefaultStylesheet(StylesheetFactory factory)
getDefaultStylesheet 在接口中 NamespaceHandlerCopyright © 2019. All Rights Reserved.