Package com.openhtmltopdf.css.sheet
Class InvalidPropertyDeclaration
- java.lang.Object
-
- com.openhtmltopdf.css.sheet.PropertyDeclaration
-
- com.openhtmltopdf.css.sheet.InvalidPropertyDeclaration
-
public class InvalidPropertyDeclaration extends PropertyDeclaration
Holds an invalid property declaration (ie. one not understood by this project). Useful for passing to plugins such as SVG. WARNING: This is not a general subclass of PropertyDeclaration, the only method which should be used is toCSS.
-
-
Field Summary
-
Fields inherited from class com.openhtmltopdf.css.sheet.PropertyDeclaration
IMPORTANCE_AND_ORIGIN_COUNT
-
-
Constructor Summary
Constructors Constructor Description InvalidPropertyDeclaration(String propertyName, List<PropertyValue> values, int origin, boolean important, int order)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetOrder()Holds the order so as to recreate a list of invalid and valid properties in their original order.StringgetPropertyName()Returns the CSS name of this property, e.g.voidtoCSS(StringBuilder sb)-
Methods inherited from class com.openhtmltopdf.css.sheet.PropertyDeclaration
asIdentValue, getCSSName, getDeclarationStandardText, getFingerprint, getImportanceAndOrigin, getOrigin, getValue, isImportant, toString
-
-
-
-
Constructor Detail
-
InvalidPropertyDeclaration
public InvalidPropertyDeclaration(String propertyName, List<PropertyValue> values, int origin, boolean important, int order)
-
-
Method Detail
-
toCSS
public void toCSS(StringBuilder sb)
- Overrides:
toCSSin classPropertyDeclaration
-
getPropertyName
public String getPropertyName()
Description copied from class:PropertyDeclarationReturns the CSS name of this property, e.g. "font-family".- Overrides:
getPropertyNamein classPropertyDeclaration- Returns:
- See desc.
-
getOrder
public int getOrder()
Holds the order so as to recreate a list of invalid and valid properties in their original order.
-
-