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 TypeMethodDescriptionboolean
Indicates whether some other object is "equal to" this one.A string representation of the current value.static String
getCssText
(short type, String value) Returns the CSS text associated with the given type/value pair.short
The 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 org.apache.batik.css.engine.value.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
Returns the CSS text associated with the given type/value pair. -
getPrimitiveType
public short getPrimitiveType()The type of the value.- Specified by:
getPrimitiveType
in interfaceValue
- Overrides:
getPrimitiveType
in classAbstractValue
-
equals
Indicates whether some other object is "equal to" this one. -
getCssText
A string representation of the current value. -
getStringValue
This method is used to get the string value.- Specified by:
getStringValue
in interfaceValue
- Overrides:
getStringValue
in classAbstractValue
- Throws:
DOMException
- INVALID_ACCESS_ERR: Raised if the value doesn't contain a string value.
-
toString
Returns a printable representation of this value.
-