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.- Version:
- $Id: ListValue.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappend(Value v)Appends an item to the list.java.lang.StringgetCssText()A string representation of the current value.shortgetCssValueType()ImplementsValue.getCssValueType().intgetLength()ImplementsValue.getLength().chargetSeparatorChar()Returns the separator used for this list.Valueitem(int index)ImplementsValue.item(int).java.lang.StringtoString()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:
getCssValueTypein interfaceValue- Overrides:
getCssValueTypein classAbstractValue
-
getCssText
public java.lang.String getCssText()
A string representation of the current value.
-
getLength
public int getLength() throws org.w3c.dom.DOMExceptionImplementsValue.getLength().- Specified by:
getLengthin interfaceValue- Overrides:
getLengthin 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:
itemin interfaceValue- Overrides:
itemin classAbstractValue- Returns:
- The style rule at the
indexposition in the list, ornullif 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:
toStringin classjava.lang.Object
-
append
public void append(Value v)
Appends an item to the list.
-
-