Package com.openhtmltopdf.css.parser
Class PropertyValue
java.lang.Object
com.openhtmltopdf.css.parser.PropertyValue
- All Implemented Interfaces:
CSSPrimitiveValue,CSSValue
public class PropertyValue extends Object implements CSSPrimitiveValue
-
Field Summary
Fields Modifier and Type Field Description static shortVALUE_TYPE_COLORstatic shortVALUE_TYPE_COUNTERSstatic shortVALUE_TYPE_FUNCTIONstatic shortVALUE_TYPE_IDENTstatic shortVALUE_TYPE_LENGTHstatic shortVALUE_TYPE_LISTstatic shortVALUE_TYPE_NUMBERstatic shortVALUE_TYPE_STRINGFields 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_URIFields 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, String cssText)PropertyValue(short type, String stringValue, String cssText)PropertyValue(IdentValue ident)PropertyValue(FSColor color)PropertyValue(FSFunction function)PropertyValue(List<CounterData> values, boolean unused)PropertyValue(List<PropertyValue> values) -
Method Summary
Modifier and Type Method Description List<CounterData>getCounters()StringgetCssText()shortgetCssValueType()StringgetFingerprint()floatgetFloatValue()floatgetFloatValue(short unitType)FSColorgetFSColor()FSFunctiongetFunction()IdentValuegetIdentValue()TokengetOperator()shortgetPrimitiveType()shortgetPropertyValueType()String[]getStringArrayValue()StringgetStringValue()List<PropertyValue>getValues()voidsetCssText(String cssText)voidsetFloatValue(short unitType, float floatValue)voidsetIdentValue(IdentValue identValue)voidsetOperator(Token operator)voidsetStringArrayValue(String[] stringArrayValue)voidsetStringValue(short stringType, String stringValue)StringtoString()
-
Field Details
-
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
-
-
Constructor Details
-
PropertyValue
-
PropertyValue
-
PropertyValue
-
PropertyValue
-
PropertyValue
-
PropertyValue
-
PropertyValue
-
-
Method Details
-
getFloatValue
- Specified by:
getFloatValuein interfaceCSSPrimitiveValue- Throws:
DOMException
-
getFloatValue
public float getFloatValue() -
getPrimitiveType
public short getPrimitiveType()- Specified by:
getPrimitiveTypein interfaceCSSPrimitiveValue
-
getStringValue
- Specified by:
getStringValuein interfaceCSSPrimitiveValue- Throws:
DOMException
-
setFloatValue
- Throws:
DOMException
-
setStringValue
- Throws:
DOMException
-
getCssText
- Specified by:
getCssTextin interfaceCSSValue
-
getCssValueType
public short getCssValueType()- Specified by:
getCssValueTypein interfaceCSSValue
-
setCssText
- Throws:
DOMException
-
getFSColor
-
getIdentValue
-
setIdentValue
-
getPropertyValueType
public short getPropertyValueType() -
getOperator
-
setOperator
-
getStringArrayValue
-
setStringArrayValue
-
toString
-
getValues
-
getCounters
-
getFunction
-
getFingerprint
-