Interface IElementNode
-
- All Superinterfaces:
IAttributesContainer
,INameContainer
,INode
,IStylesContainer
- All Known Subinterfaces:
ICustomElementNode
,IDocumentNode
- All Known Implementing Classes:
CssPseudoElementNode
,JsoupDocumentNode
,JsoupElementNode
,PageMarginBoxContextNode
public interface IElementNode extends INode, IStylesContainer, IAttributesContainer, INameContainer
Interface for node classes that have a parent and children, and for which styles can be defined; each of these nodes can also have a name and attributes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addAdditionalHtmlStyles(java.util.Map<java.lang.String,java.lang.String> styles)
Adds additional HTML styles.java.util.List<java.util.Map<java.lang.String,java.lang.String>>
getAdditionalHtmlStyles()
Gets additional styles, more specifically styles that affect an element based on its position in the HTML DOM, e.g.java.lang.String
getLang()
Gets the language.-
Methods inherited from interface com.itextpdf.styledxmlparser.node.IAttributesContainer
getAttribute, getAttributes
-
Methods inherited from interface com.itextpdf.styledxmlparser.node.INameContainer
name
-
Methods inherited from interface com.itextpdf.styledxmlparser.node.INode
addChild, childNodes, parentNode
-
Methods inherited from interface com.itextpdf.styledxmlparser.node.IStylesContainer
getStyles, setStyles
-
-
-
-
Method Detail
-
getAdditionalHtmlStyles
java.util.List<java.util.Map<java.lang.String,java.lang.String>> getAdditionalHtmlStyles()
Gets additional styles, more specifically styles that affect an element based on its position in the HTML DOM, e.g. cell borders that are set due to the parent table "border" attribute, or styles from "col" tags that affect table elements, or blocks horizontal alignment that is the result of parent's "align" attribute.- Returns:
- the additional html styles
-
addAdditionalHtmlStyles
void addAdditionalHtmlStyles(java.util.Map<java.lang.String,java.lang.String> styles)
Adds additional HTML styles.- Parameters:
styles
- the styles
-
getLang
java.lang.String getLang()
Gets the language.- Returns:
- the language value
-
-