Package org.xhtmlrenderer.css.parser
Class PropertyValue
- java.lang.Object
-
- org.xhtmlrenderer.css.parser.PropertyValue
-
- All Implemented Interfaces:
org.w3c.dom.css.CSSPrimitiveValue,org.w3c.dom.css.CSSValue
public class PropertyValue extends java.lang.Object implements org.w3c.dom.css.CSSPrimitiveValue
-
-
Field Summary
Fields Modifier and Type Field Description static shortVALUE_TYPE_COLORstatic shortVALUE_TYPE_FUNCTIONstatic shortVALUE_TYPE_IDENTstatic shortVALUE_TYPE_LENGTHstatic shortVALUE_TYPE_LISTstatic shortVALUE_TYPE_NUMBERstatic shortVALUE_TYPE_STRING-
Fields inherited from interface org.w3c.dom.css.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_RGBCOLOR, CSS_S, CSS_STRING, CSS_UNKNOWN, CSS_URI
-
-
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(java.util.List values)PropertyValue(IdentValue ident)PropertyValue(FSColor color)PropertyValue(FSFunction function)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.w3c.dom.css.CountergetCounterValue()java.lang.StringgetCssText()shortgetCssValueType()java.lang.StringgetFingerprint()floatgetFloatValue()floatgetFloatValue(short unitType)FSColorgetFSColor()FSFunctiongetFunction()IdentValuegetIdentValue()TokengetOperator()shortgetPrimitiveType()shortgetPropertyValueType()org.w3c.dom.css.RectgetRectValue()org.w3c.dom.css.RGBColorgetRGBColorValue()java.lang.String[]getStringArrayValue()java.lang.StringgetStringValue()java.util.ListgetValues()voidsetCssText(java.lang.String cssText)voidsetFloatValue(short unitType, float floatValue)voidsetIdentValue(IdentValue identValue)voidsetOperator(Token operator)voidsetStringArrayValue(java.lang.String[] stringArrayValue)voidsetStringValue(short stringType, java.lang.String stringValue)java.lang.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
-
-
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 values)
-
PropertyValue
public PropertyValue(FSFunction function)
-
-
Method Detail
-
getCounterValue
public org.w3c.dom.css.Counter getCounterValue() throws org.w3c.dom.DOMException- Specified by:
getCounterValuein interfaceorg.w3c.dom.css.CSSPrimitiveValue- Throws:
org.w3c.dom.DOMException
-
getFloatValue
public float getFloatValue(short unitType) throws org.w3c.dom.DOMException- Specified by:
getFloatValuein interfaceorg.w3c.dom.css.CSSPrimitiveValue- Throws:
org.w3c.dom.DOMException
-
getFloatValue
public float getFloatValue()
-
getPrimitiveType
public short getPrimitiveType()
- Specified by:
getPrimitiveTypein interfaceorg.w3c.dom.css.CSSPrimitiveValue
-
getRGBColorValue
public org.w3c.dom.css.RGBColor getRGBColorValue() throws org.w3c.dom.DOMException- Specified by:
getRGBColorValuein interfaceorg.w3c.dom.css.CSSPrimitiveValue- Throws:
org.w3c.dom.DOMException
-
getRectValue
public org.w3c.dom.css.Rect getRectValue() throws org.w3c.dom.DOMException- Specified by:
getRectValuein interfaceorg.w3c.dom.css.CSSPrimitiveValue- Throws:
org.w3c.dom.DOMException
-
getStringValue
public java.lang.String getStringValue() throws org.w3c.dom.DOMException- Specified by:
getStringValuein interfaceorg.w3c.dom.css.CSSPrimitiveValue- Throws:
org.w3c.dom.DOMException
-
setFloatValue
public void setFloatValue(short unitType, float floatValue) throws org.w3c.dom.DOMException- Specified by:
setFloatValuein interfaceorg.w3c.dom.css.CSSPrimitiveValue- Throws:
org.w3c.dom.DOMException
-
setStringValue
public void setStringValue(short stringType, java.lang.String stringValue) throws org.w3c.dom.DOMException- Specified by:
setStringValuein interfaceorg.w3c.dom.css.CSSPrimitiveValue- Throws:
org.w3c.dom.DOMException
-
getCssText
public java.lang.String getCssText()
- Specified by:
getCssTextin interfaceorg.w3c.dom.css.CSSValue
-
getCssValueType
public short getCssValueType()
- Specified by:
getCssValueTypein interfaceorg.w3c.dom.css.CSSValue
-
setCssText
public void setCssText(java.lang.String cssText) throws org.w3c.dom.DOMException- Specified by:
setCssTextin interfaceorg.w3c.dom.css.CSSValue- 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:
toStringin classjava.lang.Object
-
getValues
public java.util.List getValues()
-
getFunction
public FSFunction getFunction()
-
getFingerprint
public java.lang.String getFingerprint()
-
-