Class StringValue
java.lang.Object
org.apache.batik.css.engine.value.AbstractValue
org.apache.batik.css.engine.value.StringValue
- All Implemented Interfaces:
Value
- Direct Known Subclasses:
URIValue
This class represents string values.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.A string representation of the current value.static StringgetCssText(short type, String value) Returns the CSS text associated with the given type/value pair.shortThe type of the value.This method is used to get the string value.toString()Returns a printable representation of this value.Methods inherited from class AbstractValue
createDOMException, getBlue, getBottom, getCssValueType, getFloatValue, getGreen, getIdentifier, getLeft, getLength, getListStyle, getRed, getRight, getSeparator, getTop, item
-
Field Details
-
value
The value of the string -
unitType
protected short unitTypeThe unit type
-
-
Constructor Details
-
StringValue
Creates a new StringValue.
-
-
Method Details
-
getCssText
-
getPrimitiveType
public short getPrimitiveType()The type of the value.- Specified by:
getPrimitiveTypein interfaceValue- Overrides:
getPrimitiveTypein classAbstractValue
-
equals
-
getCssText
A string representation of the current value. -
getStringValue
This method is used to get the string value.- Specified by:
getStringValuein interfaceValue- Overrides:
getStringValuein classAbstractValue- Throws:
DOMException- INVALID_ACCESS_ERR: Raised if the value doesn't contain a string value.
-
toString
-