public class HTMLAugmentations extends Object implements org.apache.xerces.xni.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 |
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 |
getItem(String key)
Get information identified by a key from the Augmentations structure.
|
Enumeration |
keys()
Returns an enumeration of the keys in the Augmentations structure.
|
Object |
putItem(String key,
Object item)
Add additional information identified by a key to the Augmentations
structure.
|
void |
removeAllItems()
Removes all of the elements in this augmentations object.
|
Object |
removeItem(String key)
Remove additional info from the Augmentations structure
|
protected final Hashtable fItems
public void removeAllItems()
removeAllItems
in interface org.apache.xerces.xni.Augmentations
public void clear()
public Object putItem(String key, Object item)
putItem
in interface org.apache.xerces.xni.Augmentations
key
- Identifier, can't be null
item
- Additional informationnull
if it did not have one.public Object getItem(String key)
getItem
in interface org.apache.xerces.xni.Augmentations
key
- Identifier, can't be null
null
if the key is not mapped to any
value.public Object removeItem(String key)
removeItem
in interface org.apache.xerces.xni.Augmentations
key
- Identifier, can't be null
null
if it did not have one.public Enumeration keys()
keys
in interface org.apache.xerces.xni.Augmentations
Copyright © 2017. All rights reserved.