org.apache.sling.jcr.contentloader.internal.readers
Class XmlReader.AttributeMap

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<String,String>
          extended by org.apache.sling.jcr.contentloader.internal.readers.XmlReader.AttributeMap
All Implemented Interfaces:
Serializable, Cloneable, Map<String,String>
Enclosing class:
XmlReader

protected static class XmlReader.AttributeMap
extends HashMap<String,String>

Utility class for dealing with attributes from KXmlParser.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
protected XmlReader.AttributeMap()
           
 
Method Summary
static XmlReader.AttributeMap getInstance()
           
 void setValues(org.kxml2.io.KXmlParser xmlParser)
          Puts values in an AttributeMap by extracting attributes from the xmlParser.
 
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
 

Constructor Detail

XmlReader.AttributeMap

protected XmlReader.AttributeMap()
Method Detail

getInstance

public static XmlReader.AttributeMap getInstance()

setValues

public void setValues(org.kxml2.io.KXmlParser xmlParser)
Puts values in an AttributeMap by extracting attributes from the xmlParser.

Parameters:
xmlParser - xmlParser to extract attributes from. The parser must be in XmlPullParser.START_TAG state.


Copyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.