Package org.apache.xerces.util
Class AugmentationsImpl
java.lang.Object
org.apache.xerces.util.AugmentationsImpl
- All Implemented Interfaces:
org.apache.xerces.xni.Augmentations
This class provides an implementation for Augmentations interface.
Augmentations interface defines a hashtable of additional data that could
be passed along the document pipeline. The information can contain extra
arguments or infoset augmentations, for example PSVI. This additional
information is identified by a String key.
- Version:
- $Id: AugmentationsImpl.java 606488 2007-12-22 20:40:16Z mrglavas $
- Author:
- Elena Litani, IBM
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet information identified by a key from the Augmentations structurekeys()
Returns an enumeration of the keys in the Augmentations structureAdd additional information identified by a key to the Augmentations structure.void
Remove all objects from the Augmentations structure.removeItem
(String key) Remove additional info from the Augmentations structuretoString()
-
Constructor Details
-
AugmentationsImpl
public AugmentationsImpl()
-
-
Method Details
-
putItem
Add additional information identified by a key to the Augmentations structure.- Specified by:
putItem
in interfaceorg.apache.xerces.xni.Augmentations
- Parameters:
key
- Identifier, can't benull
item
- Additional information- Returns:
- the previous value of the specified key in the Augmentations strucutre,
or
null
if it did not have one.
-
getItem
Get information identified by a key from the Augmentations structure- Specified by:
getItem
in interfaceorg.apache.xerces.xni.Augmentations
- Parameters:
key
- Identifier, can't benull
- Returns:
- the value to which the key is mapped in the Augmentations structure;
null
if the key is not mapped to any value.
-
removeItem
Remove additional info from the Augmentations structure- Specified by:
removeItem
in interfaceorg.apache.xerces.xni.Augmentations
- Parameters:
key
- Identifier, can't benull
- Returns:
- the previous value of the specified key in the Augmentations structure,
or
null
if it did not have one.
-
keys
Returns an enumeration of the keys in the Augmentations structure- Specified by:
keys
in interfaceorg.apache.xerces.xni.Augmentations
-
removeAllItems
public void removeAllItems()Remove all objects from the Augmentations structure.- Specified by:
removeAllItems
in interfaceorg.apache.xerces.xni.Augmentations
-
toString
-