|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.batik.css.engine.value.AbstractValue
org.apache.batik.css.engine.value.StringValue
public class StringValue
This class represents string values.
Field Summary | |
---|---|
protected short |
unitType
The unit type |
protected String |
value
The value of the string |
Constructor Summary | |
---|---|
StringValue(short type,
String s)
Creates a new StringValue. |
Method Summary | |
---|---|
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. |
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 |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected String value
protected short unitType
Constructor Detail |
---|
public StringValue(short type, String s)
Method Detail |
---|
public static String getCssText(short type, String value)
public short getPrimitiveType()
getPrimitiveType
in interface Value
getPrimitiveType
in class AbstractValue
public boolean equals(Object obj)
equals
in class Object
obj
- the reference object with which to compare.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.public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |