Class ListValue
java.lang.Object
org.apache.batik.css.engine.value.AbstractValue
org.apache.batik.css.engine.value.ListValue
- All Implemented Interfaces:
Value
This class represents a list of values.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Appends an item to the list.A string representation of the current value.short
ImplementsValue.getCssValueType()
.int
ImplementsValue.getLength()
.char
Returns the separator used for this list.item
(int index) ImplementsValue.item(int)
.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 Details
-
length
protected int lengthThe length of the list. -
items
The items. -
separator
protected char separatorThe list separator.
-
-
Constructor Details
-
ListValue
public ListValue()Creates a ListValue. -
ListValue
public ListValue(char s) Creates a ListValue with the given separator.
-
-
Method Details
-
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
A string representation of the current value. -
getLength
ImplementsValue.getLength()
.- Specified by:
getLength
in interfaceValue
- Overrides:
getLength
in classAbstractValue
- Throws:
DOMException
- INVALID_ACCESS_ERR: Raised if the value doesn't contain a list value.
-
item
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:
DOMException
- INVALID_ACCESS_ERR: Raised if the value doesn't contain a list value.
-
toString
Returns a printable representation of this value. -
append
Appends an item to the list.
-