org.apache.batik.css.engine.value

Class ListValue

public class ListValue extends AbstractValue

This class represents a list of values.
Field Summary
protected Value[]items
The items.
protected intlength
The length of the list.
protected charseparator
The list separator.
Constructor Summary
ListValue()
Creates a ListValue.
ListValue(char s)
Creates a ListValue with the given separator.
Method Summary
voidappend(Value v)
Appends an item to the list.
StringgetCssText()
A string representation of the current value.
shortgetCssValueType()
Implements getCssValueType.
intgetLength()
Implements getLength.
chargetSeparatorChar()
Returns the separator used for this list.
Valueitem(int index)
Implements Value.
StringtoString()
Returns a printable representation of this value.

Field Detail

items

protected Value[] items
The items.

length

protected int length
The length of the list.

separator

protected char separator
The list separator.

Constructor Detail

ListValue

public ListValue()
Creates a ListValue.

ListValue

public ListValue(char s)
Creates a ListValue with the given separator.

Method Detail

append

public void append(Value v)
Appends an item to the list.

getCssText

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

getCssValueType

public short getCssValueType()
Implements getCssValueType.

getLength

public int getLength()
Implements getLength.

getSeparatorChar

public char getSeparatorChar()
Returns the separator used for this list.

item

public Value item(int index)
Implements Value.

toString

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