public class JsoupElementNode extends JsoupNode implements IElementNode
IElementNode interface; wrapper for the JSoup JsoupNode class.| Constructor and Description |
|---|
JsoupElementNode(com.itextpdf.styledxmlparser.jsoup.nodes.Element element)
Creates a new
JsoupElementNode instance. |
| Modifier and Type | Method and Description |
|---|---|
void |
addAdditionalHtmlStyles(Map<String,String> styles)
Adds additional HTML styles.
|
List<Map<String,String>> |
getAdditionalHtmlStyles()
Gets additional styles, more specifically styles that affect an element
based on its position in the HTML DOM, e.g.
|
String |
getAttribute(String key)
Gets an attribute.
|
IAttributes |
getAttributes()
Gets the attributes.
|
String |
getLang()
Gets the language.
|
Map<String,String> |
getStyles()
Gets the styles.
|
String |
name()
Gets the name of the element node.
|
void |
setStyles(Map<String,String> elementResolvedStyles)
Sets the styles.
|
String |
text()
Returns the element text.
|
addChild, childNodes, parentNodeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddChild, childNodes, parentNodepublic JsoupElementNode(com.itextpdf.styledxmlparser.jsoup.nodes.Element element)
JsoupElementNode instance.element - the elementpublic String name()
IElementNodename in interface IElementNodepublic IAttributes getAttributes()
IElementNodegetAttributes in interface IElementNodepublic String getAttribute(String key)
IElementNodegetAttribute in interface IElementNodekey - the key of the attribute we want to getpublic void setStyles(Map<String,String> elementResolvedStyles)
IStylesContainersetStyles in interface IStylesContainerelementResolvedStyles - a Map with style keys and values.public Map<String,String> getStyles()
IStylesContainergetStyles in interface IStylesContainerpublic List<Map<String,String>> getAdditionalHtmlStyles()
IElementNodegetAdditionalHtmlStyles in interface IElementNodepublic void addAdditionalHtmlStyles(Map<String,String> styles)
IElementNodeaddAdditionalHtmlStyles in interface IElementNodestyles - the stylespublic String getLang()
IElementNodegetLang in interface IElementNodepublic String text()
Copyright © 1998–2019 iText Group NV. All rights reserved.