Class AttributeMap<K,V>
java.lang.Object
org.x4o.sax3.io.AttributeMap<K,V>
-
Nested Class Summary
-
Constructor Summary
ConstructorsConstructorDescriptionAttributeMap
(Attributes attributes) Constuctes an new AttributeMap.AttributeMap
(Attributes attributes, String uri) Constructes an new AttributesMap. -
Method Summary
Modifier and TypeMethodDescriptionvoid
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.entrySet()
Returns an Set made of Map.Entry.boolean
Compares the SAX attribute list.Returns The value of an attribute.Return the data backend of this map.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.keySet()
Returns a new Set whith the names of the attributes.Function not implements.void
Function not implements.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.values()
Returns an Collection of the values in the attributes list.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
AttributeMap
Constuctes an new AttributeMap.- Parameters:
attributes
- The data backend of this map.
-
AttributeMap
Constructes an new AttributesMap.- Parameters:
attributes
- The data backed of this map.uri
- The namespace of these attributes.
-
-
Method Details
-
setAttributes
Sets the data backend of this map.- Parameters:
attributes
- The Attributes to be used as data backend.
-
getAttributes
Return the data backend of this map.- Returns:
- The data backend of attributes
-
setNameSpace
Sets the namespace uri, when set to null it is disabled(default).- Parameters:
uri
- The namespace uri for when parsing when an certain namespace is required.
-
getNameSpace
Returns the namespace used for these attributes.- Returns:
- The namespace uri for the attributes.
-
size
-
isEmpty
-
containsKey
Checks if there is an attributes with an certain key.- Specified by:
containsKey
in interfaceMap<K,
V> - Parameters:
key
- The name of an attribute.- Returns:
- True if the attributes excist.
-
containsValue
Checks if there is an attributes with an value.- Specified by:
containsValue
in interfaceMap<K,
V> - Parameters:
value
- The value to check.- Returns:
- True if an attributes has this value.
-
get
-
put
-
remove
-
putAll
-
clear
-
keySet
-
values
-
entrySet
-
equals
-
hashCode
-