org.apache.xerces.util
Class AugmentationsImpl
java.lang.Object
org.apache.xerces.util.AugmentationsImpl
- org.apache.xerces.xni.Augmentations
public class AugmentationsImpl
extends java.lang.Object
implements 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.
$Id: AugmentationsImpl.java,v 1.9 2004/02/24 23:15:53 mrglavas Exp $ 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() - Remove all objects from the Augmentations structure.
|
Object | removeItem(String key) - Remove additional info from the Augmentations structure
|
String | toString()
|
getItem
public Object getItem(String key)
Get information identified by a key from the Augmentations structure
- getItem in interface org.apache.xerces.xni.Augmentations
key
- Identifier, can't be null
- the value to which the key is mapped in the Augmentations structure;
null
if the key is not mapped to any value.
keys
public Enumeration keys()
Returns an enumeration of the keys in the Augmentations structure
- keys in interface org.apache.xerces.xni.Augmentations
putItem
public Object putItem(String key,
Object item)
Add additional information identified by a key to the Augmentations structure.
- putItem in interface org.apache.xerces.xni.Augmentations
key
- Identifier, can't be null
item
- Additional information
- the previous value of the specified key in the Augmentations strucutre,
or
null
if it did not have one.
removeAllItems
public void removeAllItems()
Remove all objects from the Augmentations structure.
- removeAllItems in interface org.apache.xerces.xni.Augmentations
removeItem
public Object removeItem(String key)
Remove additional info from the Augmentations structure
- removeItem in interface org.apache.xerces.xni.Augmentations
key
- Identifier, can't be null
toString
public String toString()
Copyright B) 1999-2005 Apache XML Project. All Rights Reserved.