public class HTMLAugmentations extends Object implements Augmentations
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.
| Modifier and Type | Field and Description |
|---|---|
protected Hashtable<String,Object> |
fItems
Augmentation items.
|
| Constructor and Description |
|---|
HTMLAugmentations() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Removes all of the elements in this augmentations object.
|
Object |
get(String key)
Get information identified by a key from the Augmentations structure.
|
Set<String> |
keys()
Returns an enumeration of the keys in the Augmentations structure.
|
Object |
put(String key,
Object item)
Add additional information identified by a key to the Augmentations
structure.
|
Object |
remove(String key)
Remove additional info from the Augmentations structure
|
public void clear()
clear in interface Augmentationspublic Object put(String key, Object item)
put in interface Augmentationskey - Identifier, can't be nullitem - Additional informationnull if it did not have one.public Object get(String key)
get in interface Augmentationskey - Identifier, can't be nullnull if the key is not mapped to any
value.public Object remove(String key)
remove in interface Augmentationskey - Identifier, can't be nullnull if it did not have one.public Set<String> keys()
keys in interface AugmentationsCopyright © 2023 Gargoyle Software Inc.. All rights reserved.