FileDocCategorySizeDatePackage
AugmentationsImpl.javaAPI DocApache Xerces 3.0.19323Fri Sep 14 20:33:52 BST 2007org.apache.xerces.util

AugmentationsImpl

public class AugmentationsImpl extends 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.

author
Elena Litani, IBM
version
$Id: AugmentationsImpl.java 447241 2006-09-18 05:12:57Z mrglavas $

Fields Summary
private AugmentationsItemsContainer
fAugmentationsContainer
Constructors Summary
Methods Summary
public java.lang.ObjectgetItem(java.lang.String key)
Get information identified by a key from the Augmentations structure

param
key Identifier, can't be null
return
the value to which the key is mapped in the Augmentations structure; null if the key is not mapped to any value.

        return fAugmentationsContainer.getItem(key);
    
public java.util.Enumerationkeys()
Returns an enumeration of the keys in the Augmentations structure

        return fAugmentationsContainer.keys();
    
public java.lang.ObjectputItem(java.lang.String key, java.lang.Object item)
Add additional information identified by a key to the Augmentations structure.

param
key Identifier, can't be null
param
item Additional information
return
the previous value of the specified key in the Augmentations strucutre, or null if it did not have one.

    
                                                                
          
        Object oldValue = fAugmentationsContainer.putItem(key, item);

        if (oldValue == null && fAugmentationsContainer.isFull()) {
            fAugmentationsContainer = fAugmentationsContainer.expand();
        }

        return oldValue;
    
public voidremoveAllItems()
Remove all objects from the Augmentations structure.

        fAugmentationsContainer.clear();
    
public java.lang.ObjectremoveItem(java.lang.String key)
Remove additional info from the Augmentations structure

param
key Identifier, can't be null

        return fAugmentationsContainer.removeItem(key);
    
public java.lang.StringtoString()

        return fAugmentationsContainer.toString();