Package org.xhtmlrenderer.css.parser
Class PropertyValue
java.lang.Object
org.xhtmlrenderer.css.parser.PropertyValue
- All Implemented Interfaces:
CSSPrimitiveValue
,CSSValue
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
private final short
private float
private final @Nullable FSColor
private final @Nullable FSFunction
private @Nullable IdentValue
private final @Nullable Token
private final PropertyValue.Type
private final String @Nullable []
private final @Nullable String
private final short
private final List<?>
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
Fields inherited from interface org.w3c.dom.css.CSSValue
CSS_CUSTOM, CSS_INHERIT, CSS_PRIMITIVE_VALUE, CSS_VALUE_LIST
-
Constructor Summary
ConstructorsConstructorDescriptionPropertyValue
(short type, float floatValue, String cssText) PropertyValue
(short type, float floatValue, String cssText, @Nullable Token operatorToken) PropertyValue
(short type, String stringValue, String cssText) PropertyValue
(short type, String stringValue, String cssText, @Nullable Token operatorToken) PropertyValue
(short type, String stringValue, String cssText, String @Nullable [] stringArrayValue, @Nullable Token operatorToken) PropertyValue
(List<?> values) PropertyValue
(IdentValue ident) PropertyValue
(FSColor color) PropertyValue
(FSColor color, @Nullable Token operatorToken) PropertyValue
(FSFunction function) PropertyValue
(FSFunction function, @Nullable Token operatorToken) -
Method Summary
Modifier and TypeMethodDescriptionshort
float
float
getFloatValue
(short unitType) @Nullable FSColor
@Nullable FSFunction
@Nullable IdentValue
@Nullable Token
short
String[]
@Nullable String
<T> List<T>
void
setCssText
(String cssText) void
setFloatValue
(short unitType, float floatValue) void
setIdentValue
(IdentValue identValue) void
setStringValue
(short stringType, String stringValue) toString()
-
Field Details
-
_type
private final short _type -
_cssValueType
private final short _cssValueType -
_stringValue
-
_floatValue
private float _floatValue -
_stringArrayValue
-
_cssText
-
_FSColor
-
_identValue
-
_propertyValueType
-
_operator
-
_values
-
_function
-
-
Constructor Details
-
PropertyValue
-
PropertyValue
-
PropertyValue
-
PropertyValue
-
PropertyValue
-
PropertyValue
-
PropertyValue
-
PropertyValue
-
PropertyValue
-
PropertyValue
-
PropertyValue
-
-
Method Details
-
getCounterValue
- Specified by:
getCounterValue
in interfaceCSSPrimitiveValue
- Throws:
DOMException
-
getFloatValue
- Specified by:
getFloatValue
in interfaceCSSPrimitiveValue
- Throws:
DOMException
-
getFloatValue
public float getFloatValue() -
getPrimitiveType
public short getPrimitiveType()- Specified by:
getPrimitiveType
in interfaceCSSPrimitiveValue
-
getRGBColorValue
- Specified by:
getRGBColorValue
in interfaceCSSPrimitiveValue
- Throws:
DOMException
-
getRectValue
- Specified by:
getRectValue
in interfaceCSSPrimitiveValue
- Throws:
DOMException
-
getStringValue
- Specified by:
getStringValue
in interfaceCSSPrimitiveValue
- Throws:
DOMException
-
setFloatValue
- Specified by:
setFloatValue
in interfaceCSSPrimitiveValue
- Throws:
DOMException
-
setStringValue
- Specified by:
setStringValue
in interfaceCSSPrimitiveValue
- Throws:
DOMException
-
getCssText
- Specified by:
getCssText
in interfaceCSSValue
-
getCssValueType
public short getCssValueType()- Specified by:
getCssValueType
in interfaceCSSValue
-
setCssText
- Specified by:
setCssText
in interfaceCSSValue
- Throws:
DOMException
-
getFSColor
-
getIdentValue
-
setIdentValue
-
getPropertyValueType
-
getOperator
-
getStringArrayValue
-
toString
-
getValues
-
getFunction
-
getFingerprint
-