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, itemprotected 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 ValuegetPrimitiveType in class AbstractValuepublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the reference object with which to compare.public java.lang.String getCssText()
public java.lang.String getStringValue()
throws org.w3c.dom.DOMException
getStringValue in interface ValuegetStringValue in class AbstractValueorg.w3c.dom.DOMException - INVALID_ACCESS_ERR: Raised if the value doesn't contain a string
value.public java.lang.String toString()
toString in class java.lang.ObjectCopyright ? 2009 Apache Software Foundation. All Rights Reserved.