Class StringValue
- java.lang.Object
-
- org.apache.batik.css.engine.value.AbstractValue
-
- org.apache.batik.css.engine.value.StringValue
-
- All Implemented Interfaces:
Value
- Direct Known Subclasses:
URIValue
public class StringValue extends AbstractValue
This class represents string values.- Version:
- $Id: StringValue.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
Constructor Summary
Constructors Constructor Description StringValue(short type, java.lang.String s)Creates a new StringValue.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)Indicates whether some other object is "equal to" this one.java.lang.StringgetCssText()A string representation of the current value.static java.lang.StringgetCssText(short type, java.lang.String value)Returns the CSS text associated with the given type/value pair.shortgetPrimitiveType()The type of the value.java.lang.StringgetStringValue()This method is used to get the string value.java.lang.StringtoString()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
-
-
-
-
Method Detail
-
getCssText
public static java.lang.String getCssText(short type, java.lang.String value)Returns the CSS text associated with the given type/value pair.
-
getPrimitiveType
public short getPrimitiveType()
The type of the value.- Specified by:
getPrimitiveTypein interfaceValue- Overrides:
getPrimitiveTypein classAbstractValue
-
equals
public boolean equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.- Overrides:
equalsin classjava.lang.Object- Parameters:
obj- the reference object with which to compare.
-
getCssText
public java.lang.String getCssText()
A string representation of the current value.
-
getStringValue
public java.lang.String getStringValue() throws org.w3c.dom.DOMExceptionThis method is used to get the string value.- Specified by:
getStringValuein interfaceValue- Overrides:
getStringValuein classAbstractValue- Throws:
org.w3c.dom.DOMException- INVALID_ACCESS_ERR: Raised if the value doesn't contain a string value.
-
toString
public java.lang.String toString()
Returns a printable representation of this value.- Overrides:
toStringin classjava.lang.Object
-
-