Package com.openhtmltopdf.simple.xhtml
Class XhtmlNamespaceHandler
- java.lang.Object
-
- com.openhtmltopdf.simple.NoNamespaceHandler
-
- com.openhtmltopdf.simple.extend.XhtmlCssOnlyNamespaceHandler
-
- com.openhtmltopdf.simple.xhtml.XhtmlNamespaceHandler
-
- All Implemented Interfaces:
NamespaceHandler
@Deprecated public class XhtmlNamespaceHandler extends XhtmlCssOnlyNamespaceHandler
Deprecated.Handles xhtml documents, including presentational html attributes (see css 2.1 spec, 6.4.4). In this class ONLY handling (css equivalents) of presentational properties (according to css 2.1 spec, section 6.4.4) should be specified.- Author:
- Torbjoern Gannholm
-
-
Constructor Summary
Constructors Constructor Description XhtmlNamespaceHandler()Deprecated.
-
Method Summary
Modifier and Type Method Description XhtmlFormcreateForm(Element e)Deprecated.StringgetImageSourceURI(Element e)Deprecated.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.StringgetNonCssStyling(Element e)Deprecated.may return nullbooleanisFormElement(Element e)Deprecated.Determines whether or not the specified Element represents a <form>.booleanisImageElement(Element e)Deprecated.-
Methods inherited from class com.openhtmltopdf.simple.extend.XhtmlCssOnlyNamespaceHandler
convertToLength, getAnchorName, getAttribute, getClass, getDefaultStylesheet, getDocumentTitle, getElementStyling, getID, getLang, getLinkUri, getNamespace, getStylesheets, isInteger, readLinkElement, readStyleElement
-
Methods inherited from class com.openhtmltopdf.simple.NoNamespaceHandler
getAttributeValue, getAttributeValue
-
-
-
-
Method Detail
-
isImageElement
public boolean isImageElement(Element e)
Deprecated.- Specified by:
isImageElementin interfaceNamespaceHandler- Overrides:
isImageElementin classNoNamespaceHandler- Returns:
- Returns true if the Element represents an image.
-
isFormElement
public boolean isFormElement(Element e)
Deprecated.Determines whether or not the specified Element represents a <form>.- Specified by:
isFormElementin interfaceNamespaceHandler- Overrides:
isFormElementin classNoNamespaceHandler- Parameters:
e- The Element to evaluate.- Returns:
- true if the Element is a <form> element, false otherwise.
-
getImageSourceURI
public String getImageSourceURI(Element e)
Deprecated.Description copied from interface:NamespaceHandlerFor 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. For elements whereNamespaceHandler.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.- Specified by:
getImageSourceURIin interfaceNamespaceHandler- Overrides:
getImageSourceURIin classNoNamespaceHandler- Parameters:
e- The element to extract image info from.- Returns:
- String containing the URI for the image.
-
getNonCssStyling
public String getNonCssStyling(Element e)
Deprecated.Description copied from interface:NamespaceHandlermay return null- Specified by:
getNonCssStylingin interfaceNamespaceHandler- Overrides:
getNonCssStylingin classNoNamespaceHandler- Returns:
- The corresponding css properties for styling that is obtained in other ways.
-
-