public class StringValue extends AbstractValue
Modifier and Type | Field and Description |
---|---|
protected short |
unitType
The unit type
|
protected String |
value
The value of the string
|
Constructor and Description |
---|
StringValue(short type,
String s)
Creates a new StringValue.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
String |
getCssText()
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 |
getPrimitiveType()
The type of the value.
|
String |
getStringValue()
This method is used to get the string value.
|
String |
toString()
Returns a printable representation of this value.
|
createDOMException, getBlue, getBottom, getCssValueType, getFloatValue, getGreen, getIdentifier, getLeft, getLength, getListStyle, getRed, getRight, getSeparator, getTop, item
protected String value
protected short unitType
public StringValue(short type, String s)
public static String getCssText(short type, String value)
public short getPrimitiveType()
getPrimitiveType
in interface Value
getPrimitiveType
in class AbstractValue
public boolean equals(Object obj)
public String getCssText()
public String getStringValue() throws DOMException
getStringValue
in interface Value
getStringValue
in class AbstractValue
DOMException
- INVALID_ACCESS_ERR: Raised if the value doesn't contain a string
value.Copyright © 2000–2023 Apache Software Foundation. All rights reserved.