com.simonstl.fragment
Class AttCollection

java.lang.Object
  |
  +--java.util.AbstractMap
        |
        +--java.util.HashMap
              |
              +--com.simonstl.fragment.AttCollection
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class AttCollection
extends java.util.HashMap

The AttCollection class extends HashMap with functions for accepting and producing SAX AttributesImpl objects

Version 0.03 adds toString() and print() methods.

Version 0.02 adds the cleanDuplicate() method, which returns a fresh set of attributes.

Version:
0.03 4 July 2001
Author:
Simon St.Laurent
See Also:
Serialized Form

Inner classes inherited from class java.util.Map
java.util.Map.Entry
 
Constructor Summary
AttCollection()
           
 
Method Summary
 void addAttributes(org.xml.sax.Attributes atts, Element parent)
          The addAttributes method accepts a SAX AttributesImpl instance, breaks it into individual attributes, and adds them to the HashMap.
 AttCollection cleanDuplicate()
           
 org.xml.sax.Attributes getAttributes()
          The getAttributes method returns a SAX Attributes instance, built out of the Attributes which were stored in the HashMap.
 void print()
           
 void replaceAttributes(org.xml.sax.Attributes atts, Element parent)
          The replaceAttributes method accepts a SAX Attributes instance, breaks it into individual attributes, and adds them to a fresh HashMap.
 java.lang.String toString()
           
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

AttCollection

public AttCollection()
Method Detail

addAttributes

public void addAttributes(org.xml.sax.Attributes atts,
                          Element parent)

The addAttributes method accepts a SAX AttributesImpl instance, breaks it into individual attributes, and adds them to the HashMap.


replaceAttributes

public void replaceAttributes(org.xml.sax.Attributes atts,
                              Element parent)

The replaceAttributes method accepts a SAX Attributes instance, breaks it into individual attributes, and adds them to a fresh HashMap.


getAttributes

public org.xml.sax.Attributes getAttributes()

The getAttributes method returns a SAX Attributes instance, built out of the Attributes which were stored in the HashMap.


cleanDuplicate

public AttCollection cleanDuplicate()

toString

public java.lang.String toString()
Overrides:
toString in class java.util.AbstractMap

print

public void print()