Package com.openhtmltopdf.css.parser
Class PropertyValue
- java.lang.Object
-
- com.openhtmltopdf.css.parser.PropertyValue
-
- All Implemented Interfaces:
CSSPrimitiveValue
,CSSValue
public class PropertyValue extends java.lang.Object implements CSSPrimitiveValue
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<CounterData>
_counters
private java.lang.String
_cssText
private short
_cssValueType
private float
_floatValue
private FSColor
_FSColor
private FSFunction
_function
private IdentValue
_identValue
private Token
_operator
private short
_propertyValueType
private java.lang.String[]
_stringArrayValue
private java.lang.String
_stringValue
private short
_type
private java.util.List<PropertyValue>
_values
static short
VALUE_TYPE_COLOR
static short
VALUE_TYPE_COUNTERS
static short
VALUE_TYPE_FUNCTION
static short
VALUE_TYPE_IDENT
static short
VALUE_TYPE_LENGTH
static short
VALUE_TYPE_LIST
static short
VALUE_TYPE_NUMBER
static short
VALUE_TYPE_STRING
-
Fields inherited from interface com.openhtmltopdf.css.parser.CSSPrimitiveValue
CSS_ATTR, CSS_CM, CSS_COUNTER, CSS_DEG, CSS_DIMENSION, CSS_EMS, CSS_EXS, CSS_GRAD, CSS_HZ, CSS_IDENT, CSS_IN, CSS_KHZ, CSS_MM, CSS_MS, CSS_NUMBER, CSS_PC, CSS_PERCENTAGE, CSS_PT, CSS_PX, CSS_RAD, CSS_RECT, CSS_REMS, CSS_RGBCOLOR, CSS_S, CSS_STRING, CSS_UNKNOWN, CSS_URI
-
Fields inherited from interface com.openhtmltopdf.css.parser.CSSValue
CSS_CUSTOM, CSS_INHERIT, CSS_PRIMITIVE_VALUE, CSS_VALUE_LIST
-
-
Constructor Summary
Constructors Constructor Description PropertyValue(short type, float floatValue, java.lang.String cssText)
PropertyValue(short type, java.lang.String stringValue, java.lang.String cssText)
PropertyValue(IdentValue ident)
PropertyValue(FSColor color)
PropertyValue(FSFunction function)
PropertyValue(java.util.List<CounterData> values, boolean unused)
PropertyValue(java.util.List<PropertyValue> values)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<CounterData>
getCounters()
java.lang.String
getCssText()
short
getCssValueType()
java.lang.String
getFingerprint()
float
getFloatValue()
float
getFloatValue(short unitType)
FSColor
getFSColor()
FSFunction
getFunction()
IdentValue
getIdentValue()
Token
getOperator()
short
getPrimitiveType()
short
getPropertyValueType()
java.lang.String[]
getStringArrayValue()
java.lang.String
getStringValue()
java.util.List<PropertyValue>
getValues()
void
setCssText(java.lang.String cssText)
void
setFloatValue(short unitType, float floatValue)
void
setIdentValue(IdentValue identValue)
void
setOperator(Token operator)
void
setStringArrayValue(java.lang.String[] stringArrayValue)
void
setStringValue(short stringType, java.lang.String stringValue)
java.lang.String
toString()
-
-
-
Field Detail
-
VALUE_TYPE_NUMBER
public static final short VALUE_TYPE_NUMBER
- See Also:
- Constant Field Values
-
VALUE_TYPE_LENGTH
public static final short VALUE_TYPE_LENGTH
- See Also:
- Constant Field Values
-
VALUE_TYPE_COLOR
public static final short VALUE_TYPE_COLOR
- See Also:
- Constant Field Values
-
VALUE_TYPE_IDENT
public static final short VALUE_TYPE_IDENT
- See Also:
- Constant Field Values
-
VALUE_TYPE_STRING
public static final short VALUE_TYPE_STRING
- See Also:
- Constant Field Values
-
VALUE_TYPE_LIST
public static final short VALUE_TYPE_LIST
- See Also:
- Constant Field Values
-
VALUE_TYPE_FUNCTION
public static final short VALUE_TYPE_FUNCTION
- See Also:
- Constant Field Values
-
VALUE_TYPE_COUNTERS
public static final short VALUE_TYPE_COUNTERS
- See Also:
- Constant Field Values
-
_type
private final short _type
-
_cssValueType
private final short _cssValueType
-
_stringValue
private java.lang.String _stringValue
-
_floatValue
private float _floatValue
-
_stringArrayValue
private java.lang.String[] _stringArrayValue
-
_cssText
private final java.lang.String _cssText
-
_FSColor
private FSColor _FSColor
-
_identValue
private IdentValue _identValue
-
_propertyValueType
private short _propertyValueType
-
_operator
private Token _operator
-
_values
private java.util.List<PropertyValue> _values
-
_counters
private java.util.List<CounterData> _counters
-
_function
private FSFunction _function
-
-
Constructor Detail
-
PropertyValue
public PropertyValue(short type, float floatValue, java.lang.String cssText)
-
PropertyValue
public PropertyValue(FSColor color)
-
PropertyValue
public PropertyValue(short type, java.lang.String stringValue, java.lang.String cssText)
-
PropertyValue
public PropertyValue(IdentValue ident)
-
PropertyValue
public PropertyValue(java.util.List<PropertyValue> values)
-
PropertyValue
public PropertyValue(java.util.List<CounterData> values, boolean unused)
-
PropertyValue
public PropertyValue(FSFunction function)
-
-
Method Detail
-
getFloatValue
public float getFloatValue(short unitType) throws org.w3c.dom.DOMException
- Specified by:
getFloatValue
in interfaceCSSPrimitiveValue
- Throws:
org.w3c.dom.DOMException
-
getFloatValue
public float getFloatValue()
-
getPrimitiveType
public short getPrimitiveType()
- Specified by:
getPrimitiveType
in interfaceCSSPrimitiveValue
-
getStringValue
public java.lang.String getStringValue() throws org.w3c.dom.DOMException
- Specified by:
getStringValue
in interfaceCSSPrimitiveValue
- Throws:
org.w3c.dom.DOMException
-
setFloatValue
public void setFloatValue(short unitType, float floatValue) throws org.w3c.dom.DOMException
- Throws:
org.w3c.dom.DOMException
-
setStringValue
public void setStringValue(short stringType, java.lang.String stringValue) throws org.w3c.dom.DOMException
- Throws:
org.w3c.dom.DOMException
-
getCssText
public java.lang.String getCssText()
- Specified by:
getCssText
in interfaceCSSValue
-
getCssValueType
public short getCssValueType()
- Specified by:
getCssValueType
in interfaceCSSValue
-
setCssText
public void setCssText(java.lang.String cssText) throws org.w3c.dom.DOMException
- Throws:
org.w3c.dom.DOMException
-
getFSColor
public FSColor getFSColor()
-
getIdentValue
public IdentValue getIdentValue()
-
setIdentValue
public void setIdentValue(IdentValue identValue)
-
getPropertyValueType
public short getPropertyValueType()
-
getOperator
public Token getOperator()
-
setOperator
public void setOperator(Token operator)
-
getStringArrayValue
public java.lang.String[] getStringArrayValue()
-
setStringArrayValue
public void setStringArrayValue(java.lang.String[] stringArrayValue)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getValues
public java.util.List<PropertyValue> getValues()
-
getCounters
public java.util.List<CounterData> getCounters()
-
getFunction
public FSFunction getFunction()
-
getFingerprint
public java.lang.String getFingerprint()
-
-