Package org.apache.xerces.util
Class AugmentationsImpl
- java.lang.Object
-
- org.apache.xerces.util.AugmentationsImpl
-
- All Implemented Interfaces:
org.apache.xerces.xni.Augmentations
public class AugmentationsImpl extends java.lang.Object implements org.apache.xerces.xni.AugmentationsThis 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 Constructor Description AugmentationsImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetItem(java.lang.String key)Get information identified by a key from the Augmentations structurejava.util.Enumerationkeys()Returns an enumeration of the keys in the Augmentations structurejava.lang.ObjectputItem(java.lang.String key, java.lang.Object item)Add additional information identified by a key to the Augmentations structure.voidremoveAllItems()Remove all objects from the Augmentations structure.java.lang.ObjectremoveItem(java.lang.String key)Remove additional info from the Augmentations structurejava.lang.StringtoString()
-
-
-
Method Detail
-
putItem
public java.lang.Object putItem(java.lang.String key, java.lang.Object item)Add additional information identified by a key to the Augmentations structure.- Specified by:
putItemin interfaceorg.apache.xerces.xni.Augmentations- 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 java.lang.Object getItem(java.lang.String key)
Get information identified by a key from the Augmentations structure- Specified by:
getItemin interfaceorg.apache.xerces.xni.Augmentations- 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 java.lang.Object removeItem(java.lang.String key)
Remove additional info from the Augmentations structure- Specified by:
removeItemin interfaceorg.apache.xerces.xni.Augmentations- 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 java.util.Enumeration keys()
Returns an enumeration of the keys in the Augmentations structure- Specified by:
keysin interfaceorg.apache.xerces.xni.Augmentations
-
removeAllItems
public void removeAllItems()
Remove all objects from the Augmentations structure.- Specified by:
removeAllItemsin interfaceorg.apache.xerces.xni.Augmentations
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-