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.02 adds the cleanDuplicate()
method, which returns a fresh set of attributes.
- Version:
- 0.02 4 July 2001
- Author:
- Simon St.Laurent
- See Also:
- Serialized Form
Inner classes inherited from class java.util.Map |
java.util.Map.Entry |
Method Summary |
void |
addAttributes(org.xml.sax.helpers.AttributesImpl atts)
The addAttributes method accepts a SAX AttributesImpl instance,
breaks it into individual attributes, and adds them to the HashMap. |
AttCollection |
cleanDuplicate()
|
org.xml.sax.helpers.AttributesImpl |
getAttributes()
The getAttributes method returns a SAX AttributesImpl instance,
built out of the Attributes which were stored in the HashMap. |
void |
replaceAttributes(org.xml.sax.helpers.AttributesImpl atts)
The replaceAttributes method accepts a SAX AttributesImpl instance,
breaks it into individual attributes, and adds them to a fresh HashMap. |
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, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
equals, hashCode |
AttCollection
public AttCollection()
addAttributes
public void addAttributes(org.xml.sax.helpers.AttributesImpl atts)
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.helpers.AttributesImpl atts)
The replaceAttributes method accepts a SAX AttributesImpl instance,
breaks it into individual attributes, and adds them to a fresh HashMap.
getAttributes
public org.xml.sax.helpers.AttributesImpl getAttributes()
The getAttributes method returns a SAX AttributesImpl instance,
built out of the Attributes which were stored in the HashMap.
cleanDuplicate
public AttCollection cleanDuplicate()