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 TypeMethodDescriptionvoidAppends an item to the list.A string representation of the current value.shortImplementsValue.getCssValueType().intImplementsValue.getLength().charReturns the separator used for this list.item(int index) ImplementsValue.item(int).toString()Returns a printable representation of this value.Methods inherited from class 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:
getCssValueTypein interfaceValue- Overrides:
getCssValueTypein classAbstractValue
-
getCssText
A string representation of the current value. -
getLength
ImplementsValue.getLength().- Specified by:
getLengthin interfaceValue- Overrides:
getLengthin classAbstractValue- Throws:
DOMException- INVALID_ACCESS_ERR: Raised if the value doesn't contain a list value.
-
item
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:
DOMException- INVALID_ACCESS_ERR: Raised if the value doesn't contain a list value.
-
toString
-
append
Appends an item to the list.
-