Class AttributeMap<K,V>
java.lang.Object
org.x4o.sax3.io.AttributeMap<K,V>
- Type Parameters:
K- The key class.V- The value class.
- All Implemented Interfaces:
Map<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 TypeMethodDescriptionvoidclear()Function not implements.booleancontainsKey(Object key) Checks if there is an attributes with an certain key.booleancontainsValue(Object value) Checks if there is an attributes with an value.entrySet()Returns an Set made of Map.Entry.booleanCompares the SAX attribute list.Returns The value of an attribute.Return the data backend of this map.Returns the namespace used for these attributes.inthashCode()returns the hashCode of the attribute list.booleanisEmpty()Checks if there are attributes in this map.keySet()Returns a new Set whith the names of the attributes.Function not implements.voidFunction not implements.Function not implements.voidsetAttributes(Attributes attributes) Sets the data backend of this map.voidsetNameSpace(String uri) Sets the namespace uri, when set to null it is disabled(default).intsize()Returns the size of the map.values()Returns an Collection of the values in the attributes list.Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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:
containsKeyin 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:
containsValuein 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
-