public class XhtmlNamespaceHandler extends XhtmlCssOnlyNamespaceHandler
Constructor and Description |
---|
XhtmlNamespaceHandler() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getImageSourceURI(org.w3c.dom.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.
|
java.lang.String |
getNonCssStyling(org.w3c.dom.Element e)
may return null
|
boolean |
isFormElement(org.w3c.dom.Element e)
Determines whether or not the specified Element represents a
<form>.
|
boolean |
isImageElement(org.w3c.dom.Element e) |
getAnchorName, getClass, getDefaultStylesheet, getDocumentTitle, getElementStyling, getID, getLinkUri, getNamespace, getStylesheets
getAttributeValue, getAttributeValue, getLang
public boolean isImageElement(org.w3c.dom.Element e)
isImageElement
in interface NamespaceHandler
isImageElement
in class NoNamespaceHandler
public boolean isFormElement(org.w3c.dom.Element e)
isFormElement
in interface NamespaceHandler
isFormElement
in class NoNamespaceHandler
e
- The Element to evaluate.public java.lang.String getImageSourceURI(org.w3c.dom.Element e)
NamespaceHandler
NamespaceHandler.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 NamespaceHandler
getImageSourceURI
in class NoNamespaceHandler
e
- The element to extract image info from.public java.lang.String getNonCssStyling(org.w3c.dom.Element e)
NamespaceHandler
getNonCssStyling
in interface NamespaceHandler
getNonCssStyling
in class NoNamespaceHandler