Class AttributeManager<T extends KeyedObject>

java.lang.Object
ghidra.util.graph.attributes.AttributeManager<T>

public class AttributeManager<T extends KeyedObject> extends Object
Class which creates and keeps track of attributes defined for a single KeyIndexableSet.
  • Field Details Link icon

    • INTEGER_TYPE Link icon

      public static final String INTEGER_TYPE
      Use this String as the attributeType to create an IntegerAttribute.
      See Also:
    • LONG_TYPE Link icon

      public static final String LONG_TYPE
      Use this String as the attributeType to create an LongAttribute.
      See Also:
    • DOUBLE_TYPE Link icon

      public static final String DOUBLE_TYPE
      Use this String as the attributeType to create an DoubleAttribute.
      See Also:
    • STRING_TYPE Link icon

      public static final String STRING_TYPE
      Use this String as the attributeType to create an StringAttribute.
      See Also:
    • OBJECT_TYPE Link icon

      public static final String OBJECT_TYPE
      Use this String as the attributeType to create an ObjectAttribute.
      See Also:
  • Constructor Details Link icon

    • AttributeManager Link icon

      public AttributeManager(KeyIndexableSet<T> attributedSet)
      Constructor.
      Parameters:
      attributedSet - The KeyIndexableSet whose Attributes this AttributeManager manages.
  • Method Details Link icon

    • createAttribute Link icon

      public Attribute<T> createAttribute(String attributeName, String attributeType)
      Create a new attribute.
      Parameters:
      attributeName - The name used to identify this Attribute.
      attributeType - The type of Attribute to construct. Public static Strings have been defined for the various choices.
    • removeAttribute Link icon

      public void removeAttribute(String attributeName)
      Remove the attribute with the specified name from this AttributeManager.
    • hasAttributeNamed Link icon

      public boolean hasAttributeNamed(String attributeName)
      Returns true if there is an attribute with the specified name managed by this attribute manager.
    • getAttribute Link icon

      public Attribute<T> getAttribute(String attributeName)
      Returns the attribute with the specified name. Returns null if there is no attribute with that name.
    • getAttributeNames Link icon

      public String[] getAttributeNames()
      Returns an array of all names of attributes managed by this AttributeManager.
    • clear Link icon

      public void clear()
      Clears all of the attributes managed by this AttributeManager while leaving the attributes defined.