|
||||||||||
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 java.lang.String |
value
The value of the string |
Constructor Summary | |
---|---|
StringValue(short type,
java.lang.String s)
Creates a new StringValue. |
Method Summary | |
---|---|
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. |
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 java.lang.String value
protected short unitType
Constructor Detail |
---|
public StringValue(short type, java.lang.String s)
Method Detail |
---|
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 org.w3c.dom.DOMException
getStringValue
in interface Value
getStringValue
in class AbstractValue
org.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.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |