public class ListValue extends AbstractValue
Modifier and Type | Field and Description |
---|---|
protected Value[] |
items
The items.
|
protected int |
length
The length of the list.
|
protected char |
separator
The list separator.
|
Constructor and Description |
---|
ListValue()
Creates a ListValue.
|
ListValue(char s)
Creates a ListValue with the given separator.
|
Modifier and Type | Method and Description |
---|---|
void |
append(Value v)
Appends an item to the list.
|
java.lang.String |
getCssText()
A string representation of the current value.
|
short |
getCssValueType()
Implements
Value.getCssValueType() . |
int |
getLength()
Implements
Value.getLength() . |
char |
getSeparatorChar()
Returns the separator used for this list.
|
Value |
item(int index)
Implements
Value.item(int) . |
java.lang.String |
toString()
Returns a printable representation of this value.
|
createDOMException, getBlue, getBottom, getFloatValue, getGreen, getIdentifier, getLeft, getListStyle, getPrimitiveType, getRed, getRight, getSeparator, getStringValue, getTop
protected int length
protected Value[] items
protected char separator
public ListValue()
public ListValue(char s)
public char getSeparatorChar()
public short getCssValueType()
Value.getCssValueType()
.getCssValueType
in interface Value
getCssValueType
in class AbstractValue
public java.lang.String getCssText()
public int getLength() throws DOMException
Value.getLength()
.getLength
in interface Value
getLength
in class AbstractValue
DOMException
- INVALID_ACCESS_ERR: Raised if the value doesn't contain a list
value.public Value item(int index) throws DOMException
Value.item(int)
.item
in interface Value
item
in class AbstractValue
index
position in the
list, or null
if that is not a valid index.DOMException
- INVALID_ACCESS_ERR: Raised if the value doesn't contain a list
value.public java.lang.String toString()
toString
in class java.lang.Object
public void append(Value v)
Copyright © 2022 Apache Software Foundation. All Rights Reserved.