|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.cyberneko.html.HTMLAugmentations
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.
| Field Summary | |
protected java.util.Hashtable |
fItems
Augmentation items. |
| Constructor Summary | |
HTMLAugmentations()
|
|
| Method Summary | |
void |
clear()
Removes all of the elements in this augmentations object. |
java.lang.Object |
getItem(java.lang.String key)
Get information identified by a key from the Augmentations structure. |
java.util.Enumeration |
keys()
Returns an enumeration of the keys in the Augmentations structure. |
java.lang.Object |
putItem(java.lang.String key,
java.lang.Object item)
Add additional information identified by a key to the Augmentations structure. |
void |
removeAllItems()
Removes all of the elements in this augmentations object. |
java.lang.Object |
removeItem(java.lang.String key)
Remove additional info from the Augmentations structure |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.util.Hashtable fItems
| Constructor Detail |
public HTMLAugmentations()
| Method Detail |
public void removeAllItems()
removeAllItems in interface org.apache.xerces.xni.Augmentationspublic void clear()
public java.lang.Object putItem(java.lang.String key,
java.lang.Object item)
putItem in interface org.apache.xerces.xni.Augmentationskey - Identifier, can't be nullitem - Additional information
null if it did not have one.public java.lang.Object getItem(java.lang.String key)
getItem in interface org.apache.xerces.xni.Augmentationskey - Identifier, can't be null
null if the key is not mapped to any
value.public java.lang.Object removeItem(java.lang.String key)
removeItem in interface org.apache.xerces.xni.Augmentationskey - Identifier, can't be null
null if it did not have one.public java.util.Enumeration keys()
keys in interface org.apache.xerces.xni.Augmentations
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||