Class Attributed
java.lang.Object
ghidra.service.graph.Attributed
- Direct Known Subclasses:
AttributedEdge, AttributedVertex
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()removes all key/value mappingsentrySet()Returns aSetcontaining the key/value entry associationsgetAttribute(String key) gets the value of the given attribute nameReturns an unmodifiable view of the attribute mapgets the description of this Attributed object.booleanhasAttribute(String key) Returns true if there is an attribute with that namebooleanisEmpty()Return true if there are no attributeskeys()Returns the keys for the attributesvoidputAttributes(Map<String, String> map) Adds all the key/value pairs from the given map as attributesremoveAttribute(String key) Removes the attribute with the given keysetAttribute(String key, String value) Sets the attribute with the given key and valuesetDescription(String value) Sets a description for this Attributed objectintsize()Returns the number of attributes definedvalues()Returns the attribute values
-
Constructor Details
-
Attributed
public Attributed()
-
-
Method Details
-
getAttributes
-
setAttribute
-
getAttribute
-
removeAttribute
-
hasAttribute
Returns true if there is an attribute with that name- Parameters:
key- attribute key- Returns:
- true if there is an attribute with that name
-
size
public int size()Returns the number of attributes defined- Returns:
- the number of attributes defined
-
isEmpty
public boolean isEmpty()Return true if there are no attributes- Returns:
- true if there are no mapped attributes
-
putAttributes
-
clear
public void clear()removes all key/value mappings -
keys
-
values
-
entrySet
-
setDescription
-
getDescription
gets the description of this Attributed object.- Returns:
- the description of this Attributed object.
-