org.apache.batik.css.value
Class ImmutableValueList

java.lang.Object
  |
  +--org.apache.batik.css.value.AbstractImmutableValue
        |
        +--org.apache.batik.css.value.ImmutableValueList
All Implemented Interfaces:
ImmutableValue

public class ImmutableValueList
extends AbstractImmutableValue

This class implements an immutable value list.


Field Summary
protected  int length
          The list length.
protected  char separator
          The separator character.
protected  CSSValue[] table
          The table that contains the values.
 
Constructor Summary
ImmutableValueList()
          Creates a new ImmutableValueList object.
ImmutableValueList(char c)
          Creates a new ImmutableValueList object.
 
Method Summary
 void append(CSSValue item)
          Appends an item to the list.
 ImmutableValue createReadOnlyCopy()
          Returns a deep read-only copy of this object.
 boolean equals(java.lang.Object obj)
          Indicates whether some other object is "equal to" this one.
 java.lang.String getCssText()
          A string representation of the current value.
 short getCssValueType()
          A code defining the type of the value.
 int getLength()
          The number of CSSValues in the list.
 CSSValue item(int index)
          Used to retrieve a CSS rule by ordinal index.
 
Methods inherited from class org.apache.batik.css.value.AbstractImmutableValue
getCounterValue, getFloatValue, getPrimitiveType, getRectValue, getRGBColorValue, getStringValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

table

protected CSSValue[] table
The table that contains the values.

length

protected int length
The list length.

separator

protected char separator
The separator character.
Constructor Detail

ImmutableValueList

public ImmutableValueList()
Creates a new ImmutableValueList object.

ImmutableValueList

public ImmutableValueList(char c)
Creates a new ImmutableValueList object.
Method Detail

equals

public boolean equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.
Overrides:
equals in class java.lang.Object
Parameters:
obj - the reference object with which to compare.

createReadOnlyCopy

public ImmutableValue createReadOnlyCopy()
Returns a deep read-only copy of this object.

getCssText

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

getCssValueType

public short getCssValueType()
A code defining the type of the value.
Overrides:
getCssValueType in class AbstractImmutableValue

getLength

public int getLength()
The number of CSSValues in the list. The range of valid values of the indices is 0 to length-1 inclusive.
Overrides:
getLength in class AbstractImmutableValue

item

public CSSValue item(int index)
Used to retrieve a CSS rule by ordinal index. The order in this collection represents the order of the values in the CSS style property.
Overrides:
item in class AbstractImmutableValue
Parameters:
index - Index into the collection.
Returns:
The style rule at the index position in the CSSValueList, or null if that is not a valid index.

append

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


Copyright © 2001 Apache Software Foundation. All Rights Reserved.