org.apache.batik.css
Class CSSOMReadOnlyStyleDeclaration.PropertyMap

java.lang.Object
  |
  +--org.apache.batik.css.CSSOMReadOnlyStyleDeclaration.PropertyMap
Enclosing class:
CSSOMReadOnlyStyleDeclaration

protected static class CSSOMReadOnlyStyleDeclaration.PropertyMap
extends java.lang.Object

To store the values.


Field Summary
protected  int count
          The number of entries
protected static int INITIAL_CAPACITY
          The initial capacity
protected  CSSOMReadOnlyStyleDeclaration.ValueEntry[] table
          The underlying array
 
Constructor Summary
CSSOMReadOnlyStyleDeclaration.PropertyMap()
          Creates a new table.
CSSOMReadOnlyStyleDeclaration.PropertyMap(CSSOMReadOnlyStyleDeclaration.PropertyMap t)
          Creates a copy of the given PropertyMap object.
 
Method Summary
 CSSOMReadOnlyStyleDeclaration.ValueEntry get(java.lang.String key)
          Gets the value of a variable
 CSSOMReadOnlyStyleDeclaration.ValueEntry item(int index)
          Returns the item at the given position.
 java.lang.String key(int index)
          Returns the key at the given position or null.
 void put(java.lang.String key, CSSOMReadOnlyStyleDeclaration.ValueEntry ve)
          Sets a new value for the given variable
 void put(java.lang.String key, CSSOMReadOnlyValue v, java.lang.String imp, int orig)
          Sets a new value for the given variable
protected  void rehash()
          Rehash the table
 int size()
          Returns the size of this table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INITIAL_CAPACITY

protected static final int INITIAL_CAPACITY
The initial capacity

table

protected CSSOMReadOnlyStyleDeclaration.ValueEntry[] table
The underlying array

count

protected int count
The number of entries
Constructor Detail

CSSOMReadOnlyStyleDeclaration.PropertyMap

public CSSOMReadOnlyStyleDeclaration.PropertyMap()
Creates a new table.

CSSOMReadOnlyStyleDeclaration.PropertyMap

public CSSOMReadOnlyStyleDeclaration.PropertyMap(CSSOMReadOnlyStyleDeclaration.PropertyMap t)
Creates a copy of the given PropertyMap object.
Parameters:
t - The table to copy.
Method Detail

size

public int size()
Returns the size of this table.

get

public CSSOMReadOnlyStyleDeclaration.ValueEntry get(java.lang.String key)
Gets the value of a variable
Returns:
the value or null

put

public void put(java.lang.String key,
                CSSOMReadOnlyValue v,
                java.lang.String imp,
                int orig)
Sets a new value for the given variable
Returns:
the old value or null

put

public void put(java.lang.String key,
                CSSOMReadOnlyStyleDeclaration.ValueEntry ve)
Sets a new value for the given variable
Returns:
the old value or null

key

public java.lang.String key(int index)
Returns the key at the given position or null.

item

public CSSOMReadOnlyStyleDeclaration.ValueEntry item(int index)
Returns the item at the given position.

rehash

protected void rehash()
Rehash the table


Copyright © 2001 Apache Software Foundation. All Rights Reserved.