org.apache.batik.css.engine.value

Class StringValue

public class StringValue extends AbstractValue

This class represents string values.
Field Summary
protected shortunitType
The unit type
protected Stringvalue
The value of the string
Constructor Summary
StringValue(short type, String s)
Creates a new StringValue.
Method Summary
booleanequals(Object obj)
Indicates whether some other object is "equal to" this one.
static StringgetCssText(short type, String value)
Returns the CSS text associated with the given type/value pair.
StringgetCssText()
A string representation of the current value.
shortgetPrimitiveType()
The type of the value.
StringgetStringValue()
This method is used to get the string value.
StringtoString()
Returns a printable representation of this value.

Field Detail

unitType

protected short unitType
The unit type

value

protected String value
The value of the string

Constructor Detail

StringValue

public StringValue(short type, String s)
Creates a new StringValue.

Method Detail

equals

public boolean equals(Object obj)
Indicates whether some other object is "equal to" this one.

Parameters: obj the reference object with which to compare.

getCssText

public static String getCssText(short type, String value)
Returns the CSS text associated with the given type/value pair.

getCssText

public String getCssText()
A string representation of the current value.

getPrimitiveType

public short getPrimitiveType()
The type of the value.

getStringValue

public String getStringValue()
This method is used to get the string value.

Throws: DOMException INVALID_ACCESS_ERR: Raised if the value doesn't contain a string value.

toString

public String toString()
Returns a printable representation of this value.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.