public class StringValue extends AbstractValue
Modifier and Type | Field and Description |
---|---|
protected short |
unitType
The unit type
|
protected java.lang.String |
value
The value of the string
|
Constructor and Description |
---|
StringValue(short type,
java.lang.String s)
Creates a new StringValue.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.
|
java.lang.String |
getCssText()
A string representation of the current value.
|
static java.lang.String |
getCssText(short type,
java.lang.String value)
Returns the CSS text associated with the given type/value pair.
|
short |
getPrimitiveType()
The type of the value.
|
java.lang.String |
getStringValue()
This method is used to get the string value.
|
java.lang.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 java.lang.String value
protected short unitType
public StringValue(short type, java.lang.String s)
public static java.lang.String getCssText(short type, java.lang.String value)
public short getPrimitiveType()
getPrimitiveType
in interface Value
getPrimitiveType
in class AbstractValue
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the reference object with which to compare.public java.lang.String getCssText()
public java.lang.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.public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2022 Apache Software Foundation. All Rights Reserved.