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 Modifier and Type Field Description private int
order
private java.lang.String
propertyName
private java.util.List<PropertyValue>
values
-
Fields inherited from class com.openhtmltopdf.css.sheet.PropertyDeclaration
IMPORTANCE_AND_ORIGIN_COUNT
-
-
Constructor Summary
Constructors Constructor Description InvalidPropertyDeclaration(java.lang.String propertyName, java.util.List<PropertyValue> values, int origin, boolean important, int order)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getOrder()
Holds the order so as to recreate a list of invalid and valid properties in their original order.java.lang.String
getPropertyName()
Returns the CSS name of this property, e.g.void
toCSS(java.lang.StringBuilder sb)
-
Methods inherited from class com.openhtmltopdf.css.sheet.PropertyDeclaration
asIdentValue, getCSSName, getDeclarationStandardText, getFingerprint, getImportanceAndOrigin, getOrigin, getValue, isImportant, toString
-
-
-
-
Field Detail
-
propertyName
private final java.lang.String propertyName
-
values
private final java.util.List<PropertyValue> values
-
order
private final int order
-
-
Constructor Detail
-
InvalidPropertyDeclaration
public InvalidPropertyDeclaration(java.lang.String propertyName, java.util.List<PropertyValue> values, int origin, boolean important, int order)
-
-
Method Detail
-
toCSS
public void toCSS(java.lang.StringBuilder sb)
- Overrides:
toCSS
in classPropertyDeclaration
-
getPropertyName
public java.lang.String getPropertyName()
Description copied from class:PropertyDeclaration
Returns the CSS name of this property, e.g. "font-family".- Overrides:
getPropertyName
in 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.
-
-