| java.lang.Object org.cyberneko.html.HTMLAugmentations
HTMLAugmentations | public class HTMLAugmentations implements Augmentations(Code) | | This class is here to overcome the XNI changes to the
Augmentations interface. In early versions of XNI, the
augmentations interface contained a clear() method to
remove all of the items from the augmentations instance. A later
version of XNI changed this method to removeAllItems() .
Therefore, this class extends the augmentations interface and
explicitly implements both of these methods.
Note:
This code is inspired by performance enhancements submitted by
Marc-André Morissette.
author: Andy Clark |
Method Summary | |
public void | clear() Removes all of the elements in this augmentations object. | public Object | getItem(String key) Get information identified by a key from the Augmentations structure. | public Enumeration | keys() Returns an enumeration of the keys in the Augmentations structure. | public Object | putItem(String key, Object item) Add additional information identified by a key to the Augmentations
structure. | public void | removeAllItems() Removes all of the elements in this augmentations object. | public Object | removeItem(String key) |
clear | public void clear()(Code) | | Removes all of the elements in this augmentations object.
|
getItem | public Object getItem(String key)(Code) | | Get information identified by a key from the Augmentations structure.
Parameters: key - Identifier, can't be null The value to which the key is mapped in the Augmentations structure; null if the key is not mapped to any value. |
keys | public Enumeration keys()(Code) | | Returns an enumeration of the keys in the Augmentations structure.
|
putItem | public Object putItem(String key, Object item)(Code) | | Add additional information identified by a key to the Augmentations
structure.
Parameters: key - Identifier, can't be null Parameters: item - Additional information The previous value of the specified key in the Augmentations structure, or null if it did not have one. |
removeAllItems | public void removeAllItems()(Code) | | Removes all of the elements in this augmentations object.
|
removeItem | public Object removeItem(String key)(Code) | | Remove additional info from the Augmentations structure
Parameters: key - Identifier, can't be null The previous value of the specified key in the Augmentations structure, or null if it did not have one. |
|
|