FileDocCategorySizeDatePackage
AugmentationsImpl.javaAPI DocJava SE 6 API8893Tue Jun 10 00:22:50 BST 2008com.sun.org.apache.xerces.internal.util

AugmentationsImpl

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.

author
Elena Litani, IBM
version
$Id: AugmentationsImpl.java,v 1.2.6.1 2005/09/01 09:27:54 neerajbj Exp $

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();