Class AttributeManager<T extends KeyedObject>
java.lang.Object
ghidra.util.graph.attributes.AttributeManager<T>
Class which creates and keeps track of attributes defined
for a single KeyIndexableSet.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringUse this String as the attributeType to create an DoubleAttribute.static final StringUse this String as the attributeType to create an IntegerAttribute.static final StringUse this String as the attributeType to create an LongAttribute.static final StringUse this String as the attributeType to create an ObjectAttribute.static final StringUse this String as the attributeType to create an StringAttribute. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears all of the attributes managed by this AttributeManager while leaving the attributes defined.createAttribute(String attributeName, String attributeType) Create a new attribute.getAttribute(String attributeName) Returns the attribute with the specified name.String[]Returns an array of all names of attributes managed by this AttributeManager.booleanhasAttributeNamed(String attributeName) Returns true if there is an attribute with the specified name managed by this attribute manager.voidremoveAttribute(String attributeName) Remove the attribute with the specified name from this AttributeManager.
-
Field Details
-
INTEGER_TYPE
Use this String as the attributeType to create an IntegerAttribute.- See Also:
-
LONG_TYPE
Use this String as the attributeType to create an LongAttribute.- See Also:
-
DOUBLE_TYPE
Use this String as the attributeType to create an DoubleAttribute.- See Also:
-
STRING_TYPE
Use this String as the attributeType to create an StringAttribute.- See Also:
-
OBJECT_TYPE
Use this String as the attributeType to create an ObjectAttribute.- See Also:
-
-
Constructor Details
-
AttributeManager
Constructor.- Parameters:
attributedSet- The KeyIndexableSet whose Attributes this AttributeManager manages.
-
-
Method Details
-
createAttribute
-
removeAttribute
Remove the attribute with the specified name from this AttributeManager. -
hasAttributeNamed
Returns true if there is an attribute with the specified name managed by this attribute manager. -
getAttribute
-
getAttributeNames
Returns an array of all names of attributes managed by this AttributeManager. -
clear
public void clear()Clears all of the attributes managed by this AttributeManager while leaving the attributes defined.
-