Package ghidra.util.graph.attributes
Class AttributeManager<T extends KeyedObject>
- java.lang.Object
 - 
- ghidra.util.graph.attributes.AttributeManager<T>
 
 
- 
public class AttributeManager<T extends KeyedObject> extends java.lang.ObjectClass which creates and keeps track of attributes defined for a single KeyIndexableSet. 
- 
- 
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDOUBLE_TYPEUse this String as the attributeType to create an DoubleAttribute.static java.lang.StringINTEGER_TYPEUse this String as the attributeType to create an IntegerAttribute.static java.lang.StringLONG_TYPEUse this String as the attributeType to create an LongAttribute.static java.lang.StringOBJECT_TYPEUse this String as the attributeType to create an ObjectAttribute.static java.lang.StringSTRING_TYPEUse this String as the attributeType to create an StringAttribute. 
- 
Constructor Summary
Constructors Constructor Description AttributeManager(KeyIndexableSet<T> attributedSet)Constructor. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Clears all of the attributes managed by this AttributeManager while leaving the attributes defined.Attribute<T>createAttribute(java.lang.String attributeName, java.lang.String attributeType)Create a new attribute.Attribute<T>getAttribute(java.lang.String attributeName)Returns the attribute with the specified name.java.lang.String[]getAttributeNames()Returns an array of all names of attributes managed by this AttributeManager.booleanhasAttributeNamed(java.lang.String attributeName)Returns true if there is an attribute with the specified name managed by this attribute manager.voidremoveAttribute(java.lang.String attributeName)Remove the attribute with the specified name from this AttributeManager. 
 - 
 
- 
- 
Field Detail
- 
INTEGER_TYPE
public static final java.lang.String INTEGER_TYPE
Use this String as the attributeType to create an IntegerAttribute.- See Also:
 - Constant Field Values
 
 
- 
LONG_TYPE
public static final java.lang.String LONG_TYPE
Use this String as the attributeType to create an LongAttribute.- See Also:
 - Constant Field Values
 
 
- 
DOUBLE_TYPE
public static final java.lang.String DOUBLE_TYPE
Use this String as the attributeType to create an DoubleAttribute.- See Also:
 - Constant Field Values
 
 
- 
STRING_TYPE
public static final java.lang.String STRING_TYPE
Use this String as the attributeType to create an StringAttribute.- See Also:
 - Constant Field Values
 
 
- 
OBJECT_TYPE
public static final java.lang.String OBJECT_TYPE
Use this String as the attributeType to create an ObjectAttribute.- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Constructor Detail
- 
AttributeManager
public AttributeManager(KeyIndexableSet<T> attributedSet)
Constructor.- Parameters:
 attributedSet- The KeyIndexableSet whose Attributes this AttributeManager manages.
 
 - 
 
- 
Method Detail
- 
createAttribute
public Attribute<T> createAttribute(java.lang.String attributeName, java.lang.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
public void removeAttribute(java.lang.String attributeName)
Remove the attribute with the specified name from this AttributeManager. 
- 
hasAttributeNamed
public boolean hasAttributeNamed(java.lang.String attributeName)
Returns true if there is an attribute with the specified name managed by this attribute manager. 
- 
getAttribute
public Attribute<T> getAttribute(java.lang.String attributeName)
Returns the attribute with the specified name. Returns null if there is no attribute with that name. 
- 
getAttributeNames
public java.lang.String[] 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. 
 - 
 
 -