Package com.itextpdf.styledxmlparser.css
Class CssFontFaceRule
- java.lang.Object
-
- com.itextpdf.styledxmlparser.css.CssStatement
-
- com.itextpdf.styledxmlparser.css.CssAtRule
-
- com.itextpdf.styledxmlparser.css.CssNestedAtRule
-
- com.itextpdf.styledxmlparser.css.CssFontFaceRule
-
public class CssFontFaceRule extends CssNestedAtRule
Class to store a CSS font face At rule.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<CssDeclaration>
properties
Properties in the form of a list of CSS declarations.-
Fields inherited from class com.itextpdf.styledxmlparser.css.CssNestedAtRule
body
-
-
Constructor Summary
Constructors Constructor Description CssFontFaceRule()
Instantiates a new CSS font face rule.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addBodyCssDeclarations(java.util.List<CssDeclaration> cssDeclarations)
Adds the body CSS declarations.java.util.List<CssDeclaration>
getProperties()
Gets the properties.Range
resolveUnicodeRange()
Resolves `unicode-range` property if it exists in the properties.java.lang.String
toString()
-
Methods inherited from class com.itextpdf.styledxmlparser.css.CssNestedAtRule
addStatementsToBody, addStatementToBody, getCssRuleSets, getRuleParameters, getStatements
-
Methods inherited from class com.itextpdf.styledxmlparser.css.CssAtRule
getRuleName
-
-
-
-
Field Detail
-
properties
private java.util.List<CssDeclaration> properties
Properties in the form of a list of CSS declarations.
-
-
Method Detail
-
getProperties
public java.util.List<CssDeclaration> getProperties()
Gets the properties.- Returns:
- the properties
-
addBodyCssDeclarations
public void addBodyCssDeclarations(java.util.List<CssDeclaration> cssDeclarations)
Description copied from class:CssNestedAtRule
Adds the body CSS declarations.- Overrides:
addBodyCssDeclarations
in classCssNestedAtRule
- Parameters:
cssDeclarations
- a list of CSS declarations
-
toString
public java.lang.String toString()
- Overrides:
toString
in classCssNestedAtRule
-
resolveUnicodeRange
public Range resolveUnicodeRange()
Resolves `unicode-range` property if it exists in the properties.- Returns:
- the resolved range or
null
if there is no `unicode-range` property
-
-