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)
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 in interface NamespaceHandlerpublic String getAttributeValue(Element e, String attrName)
NamespaceHandlergetAttributeValue in interface NamespaceHandlere - PARAMattrName - PARAMpublic String getAttributeValue(Element e, String namespaceURI, String attrName)
getAttributeValue in interface NamespaceHandlerpublic String getClass(Element e)
NamespaceHandlergetClass in interface NamespaceHandlere - PARAMpublic String getID(Element e)
NamespaceHandlergetID in interface NamespaceHandlere - PARAMpublic String getLang(Element e)
NamespaceHandlergetLang in interface NamespaceHandlere - PARAMpublic String getElementStyling(Element e)
NamespaceHandlergetElementStyling in interface NamespaceHandlere - PARAMpublic String getNonCssStyling(Element e)
NamespaceHandlergetNonCssStyling in interface NamespaceHandlerpublic String getLinkUri(Element e)
NamespaceHandlergetLinkUri in interface NamespaceHandlere - PARAMpublic 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 © 2016. All rights reserved.