Class AugmentationsImpl
- java.lang.Object
-
- org.smooks.engine.delivery.sax.ng.org.apache.xerces.util.AugmentationsImpl
-
- All Implemented Interfaces:
Augmentations
public class AugmentationsImpl extends Object implements 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$
- Author:
- Elena Litani, IBM
-
-
Constructor Summary
Constructors Constructor Description AugmentationsImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetItem(String key)Get information identified by a key from the Augmentations structureEnumerationkeys()Returns an enumeration of the keys in the Augmentations structureObjectputItem(String key, Object item)Add additional information identified by a key to the Augmentations structure.voidremoveAllItems()Remove all objects from the Augmentations structure.ObjectremoveItem(String key)Remove additional info from the Augmentations structureStringtoString()
-
-
-
Method Detail
-
putItem
public Object putItem(String key, Object item)
Add additional information identified by a key to the Augmentations structure.- Specified by:
putItemin interfaceAugmentations- Parameters:
key- Identifier, can't benullitem- Additional information- Returns:
- the previous value of the specified key in the Augmentations strucutre,
or
nullif it did not have one.
-
getItem
public Object getItem(String key)
Get information identified by a key from the Augmentations structure- Specified by:
getItemin interfaceAugmentations- Parameters:
key- Identifier, can't benull- Returns:
- the value to which the key is mapped in the Augmentations structure;
nullif the key is not mapped to any value.
-
removeItem
public Object removeItem(String key)
Remove additional info from the Augmentations structure- Specified by:
removeItemin interfaceAugmentations- Parameters:
key- Identifier, can't benull- Returns:
- the previous value of the specified key in the Augmentations structure,
or
nullif it did not have one.
-
keys
public Enumeration keys()
Returns an enumeration of the keys in the Augmentations structure- Specified by:
keysin interfaceAugmentations
-
removeAllItems
public void removeAllItems()
Remove all objects from the Augmentations structure.- Specified by:
removeAllItemsin interfaceAugmentations
-
-