Class CssPseudoElementNode
- java.lang.Object
-
- com.itextpdf.styledxmlparser.css.CssContextNode
-
- com.itextpdf.styledxmlparser.css.pseudo.CssPseudoElementNode
-
- All Implemented Interfaces:
IAttributesContainer,ICustomElementNode,IElementNode,INameContainer,INode,IStylesContainer
public class CssPseudoElementNode extends CssContextNode implements IElementNode, ICustomElementNode
IElementNodeimplementation for pseudo elements.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classCssPseudoElementNode.AttributesStubA simpleIAttributesimplementation.
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringpseudoElementNameThe pseudo element name.private java.lang.StringpseudoElementTagNameThe pseudo element tag name.
-
Constructor Summary
Constructors Constructor Description CssPseudoElementNode(INode parentNode, java.lang.String pseudoElementName)Creates a newCssPseudoElementNodeinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAdditionalHtmlStyles(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.StringgetAttribute(java.lang.String key)Gets an attribute.IAttributesgetAttributes()Gets the attributes.java.lang.StringgetLang()Gets the language.java.lang.StringgetPseudoElementName()Gets the pseudo element name.java.lang.Stringname()Gets the name of the element node.-
Methods inherited from class com.itextpdf.styledxmlparser.css.CssContextNode
addChild, childNodes, getStyles, parentNode, setStyles
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.itextpdf.styledxmlparser.node.INode
addChild, childNodes, parentNode
-
Methods inherited from interface com.itextpdf.styledxmlparser.node.IStylesContainer
getStyles, setStyles
-
-
-
-
Constructor Detail
-
CssPseudoElementNode
public CssPseudoElementNode(INode parentNode, java.lang.String pseudoElementName)
Creates a newCssPseudoElementNodeinstance.- Parameters:
parentNode- the parent nodepseudoElementName- the pseudo element name
-
-
Method Detail
-
getPseudoElementName
public java.lang.String getPseudoElementName()
Gets the pseudo element name.- Returns:
- the pseudo element name
-
name
public java.lang.String name()
Gets the name of the element node.- Specified by:
namein interfaceINameContainer- Returns:
- the string
-
getAttributes
public IAttributes getAttributes()
Gets the attributes.- Specified by:
getAttributesin interfaceIAttributesContainer- Returns:
- the attributes
-
getAttribute
public java.lang.String getAttribute(java.lang.String key)
Gets an attribute.- Specified by:
getAttributein interfaceIAttributesContainer- Parameters:
key- the key of the attribute we want to get- Returns:
- the value of the attribute
-
getAdditionalHtmlStyles
public 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.- Specified by:
getAdditionalHtmlStylesin interfaceIElementNode- Returns:
- the additional html styles
-
addAdditionalHtmlStyles
public void addAdditionalHtmlStyles(java.util.Map<java.lang.String,java.lang.String> styles)
Adds additional HTML styles.- Specified by:
addAdditionalHtmlStylesin interfaceIElementNode- Parameters:
styles- the styles
-
getLang
public java.lang.String getLang()
Gets the language.- Specified by:
getLangin interfaceIElementNode- Returns:
- the language value
-
-