Class ListValue
- java.lang.Object
-
- org.apache.batik.css.engine.value.AbstractValue
-
- org.apache.batik.css.engine.value.ListValue
-
- All Implemented Interfaces:
Value
public class ListValue extends AbstractValue
This class represents a list of values.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
append(Value v)
Appends an item to the list.java.lang.String
getCssText()
A string representation of the current value.short
getCssValueType()
ImplementsValue.getCssValueType()
.int
getLength()
ImplementsValue.getLength()
.char
getSeparatorChar()
Returns the separator used for this list.Value
item(int index)
ImplementsValue.item(int)
.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, getFloatValue, getGreen, getIdentifier, getLeft, getListStyle, getPrimitiveType, getRed, getRight, getSeparator, getStringValue, getTop
-
-
-
-
Field Detail
-
length
protected int length
The length of the list.
-
items
protected Value[] items
The items.
-
separator
protected char separator
The list separator.
-
-
Method Detail
-
getSeparatorChar
public char getSeparatorChar()
Returns the separator used for this list.
-
getCssValueType
public short getCssValueType()
ImplementsValue.getCssValueType()
.- Specified by:
getCssValueType
in interfaceValue
- Overrides:
getCssValueType
in classAbstractValue
-
getCssText
public java.lang.String getCssText()
A string representation of the current value.
-
getLength
public int getLength() throws org.w3c.dom.DOMException
ImplementsValue.getLength()
.- Specified by:
getLength
in interfaceValue
- Overrides:
getLength
in classAbstractValue
- Throws:
org.w3c.dom.DOMException
- INVALID_ACCESS_ERR: Raised if the value doesn't contain a list value.
-
item
public Value item(int index) throws org.w3c.dom.DOMException
ImplementsValue.item(int)
.- Specified by:
item
in interfaceValue
- Overrides:
item
in classAbstractValue
- Returns:
- The style rule at the
index
position in the list, ornull
if that is not a valid index. - Throws:
org.w3c.dom.DOMException
- INVALID_ACCESS_ERR: Raised if the value doesn't contain a list value.
-
toString
public java.lang.String toString()
Returns a printable representation of this value.- Overrides:
toString
in classjava.lang.Object
-
append
public void append(Value v)
Appends an item to the list.
-
-