public class AttributeMap<K,V> extends Object implements Map<K,V>
Constructor and Description |
---|
AttributeMap(Attributes attributes)
Constuctes an new AttributeMap
|
AttributeMap(Attributes attributes,
String uri)
Constructes an new AttributesMap
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Function not implements.
|
boolean |
containsKey(Object key)
Checks if there is an attributes with an certain key.
|
boolean |
containsValue(Object value)
Checks if there is an attributes with an value.
|
Set |
entrySet()
Returns an Set made of Map.Entry.
|
boolean |
equals(Object o)
Compares the SAX attribute list.
|
V |
get(Object key)
Returns The value of an attribute.
|
Attributes |
getAttributes()
Return the data backend of this map.
|
String |
getNameSpace()
Returns the namespace used for these attributes.
|
int |
hashCode()
returns the hashCode of the attribute list.
|
boolean |
isEmpty()
Checks if there are attributes in this map.
|
Set<K> |
keySet()
Returns a new Set whith the names of the attributes.
|
V |
put(K key,
V value)
Function not implements.
|
void |
putAll(Map t)
Function not implements.
|
V |
remove(Object key)
Function not implements.
|
void |
setAttributes(Attributes attributes)
Sets the data backend of this map.
|
void |
setNameSpace(String uri)
Sets the namespace uri, when set to null it is disabled(default).
|
int |
size()
Returns the size of the map.
|
Collection<V> |
values()
Returns an Collection of the values in the attributes list.
|
public AttributeMap(Attributes attributes)
attributes
- The data backend of this map.public AttributeMap(Attributes attributes, String uri)
attributes
- The dat backed of this map.uri
- The namespace of these attributes.public void setAttributes(Attributes attributes)
attributes
- The Attributes to be used as data backend.public Attributes getAttributes()
public void setNameSpace(String uri)
uri
- The namespace uri for when parsing when an certain namespace
is required.public String getNameSpace()
public int size()
public boolean isEmpty()
public boolean containsKey(Object key)
containsKey
in interface Map<K,V>
key
- The name of an attribute.public boolean containsValue(Object value)
containsValue
in interface Map<K,V>
value
- The value to check.public V remove(Object key)
public void clear()
public Collection<V> values()
public Set entrySet()
entrySet
in interface Map<K,V>
Map.entrySet()
Copyright © 2004-2012 X4O. All Rights Reserved.