public class NoNamespaceHandler extends Object implements NamespaceHandler
| Constructor and Description |
|---|
NoNamespaceHandler() |
| Modifier and Type | Method and Description |
|---|---|
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) |
StylesheetInfo |
getDefaultStylesheet(StylesheetFactory factory) |
String |
getDocumentTitle(Document doc) |
String |
getElementStyling(Element e) |
String |
getID(Element e) |
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 guarantee that the URI is correct, complete or points to anything in
particular.
|
String |
getLang(Element e) |
String |
getLinkUri(Element e)
should return null if element is not a link
|
String |
getNamespace() |
String |
getNonCssStyling(Element e) |
StylesheetInfo[] |
getStylesheets(Document doc) |
boolean |
isFormElement(Element e)
Determines whether the specified Element represents a
<form>.
|
boolean |
isImageElement(Element e) |
public String getNamespace()
getNamespace in interface NamespaceHandlerpublic String getAttributeValue(Element e, String attrName)
NamespaceHandlergetAttributeValue in interface NamespaceHandlerpublic String getAttributeValue(Element e, String namespaceURI, String attrName)
getAttributeValue in interface NamespaceHandlerpublic String getClass(Element e)
getClass in interface NamespaceHandlerpublic String getID(Element e)
getID in interface NamespaceHandlerpublic String getLang(Element e)
getLang in interface NamespaceHandlerpublic String getElementStyling(Element e)
getElementStyling in interface NamespaceHandlerpublic String getNonCssStyling(Element e)
getNonCssStyling in interface NamespaceHandlerpublic String getLinkUri(Element e)
NamespaceHandlergetLinkUri in interface NamespaceHandlerpublic String getDocumentTitle(Document doc)
getDocumentTitle in interface NamespaceHandlerpublic String getAnchorName(Element e)
getAnchorName in interface NamespaceHandlerpublic boolean isImageElement(Element e)
isImageElement in interface 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 in interface NamespaceHandlere - The element to extract image info from.public boolean isFormElement(Element e)
NamespaceHandlerisFormElement in interface NamespaceHandlere - The Element to evaluate.public StylesheetInfo[] getStylesheets(Document doc)
getStylesheets in interface NamespaceHandlerpublic StylesheetInfo getDefaultStylesheet(StylesheetFactory factory)
getDefaultStylesheet in interface NamespaceHandlerCopyright © 2023. All rights reserved.