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_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, 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
All Methods Instance Methods Concrete Methods 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 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
-
-
Constructor Detail
-
PropertyValue
public PropertyValue(short type, float floatValue, String cssText)
-
PropertyValue
public PropertyValue(FSColor color)
-
PropertyValue
public PropertyValue(IdentValue ident)
-
PropertyValue
public PropertyValue(List<PropertyValue> values)
-
PropertyValue
public PropertyValue(List<CounterData> values, boolean unused)
-
PropertyValue
public PropertyValue(FSFunction function)
-
-
Method Detail
-
getFloatValue
public float getFloatValue(short unitType) throws DOMException- Specified by:
getFloatValuein interfaceCSSPrimitiveValue- Throws:
DOMException
-
getFloatValue
public float getFloatValue()
-
getPrimitiveType
public short getPrimitiveType()
- Specified by:
getPrimitiveTypein interfaceCSSPrimitiveValue
-
getStringValue
public String getStringValue() throws DOMException
- Specified by:
getStringValuein interfaceCSSPrimitiveValue- Throws:
DOMException
-
setFloatValue
public void setFloatValue(short unitType, float floatValue) throws DOMException- Throws:
DOMException
-
setStringValue
public void setStringValue(short stringType, String stringValue) throws DOMException- Throws:
DOMException
-
getCssText
public String getCssText()
- Specified by:
getCssTextin interfaceCSSValue
-
getCssValueType
public short getCssValueType()
- Specified by:
getCssValueTypein interfaceCSSValue
-
setCssText
public void setCssText(String cssText) throws DOMException
- Throws:
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 String[] getStringArrayValue()
-
setStringArrayValue
public void setStringArrayValue(String[] stringArrayValue)
-
getValues
public List<PropertyValue> getValues()
-
getCounters
public List<CounterData> getCounters()
-
getFunction
public FSFunction getFunction()
-
getFingerprint
public String getFingerprint()
-
-