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