Package com.tailf.progress
Class Attributes
Object
com.tailf.progress.Attributes
  Attributes  class is used to create,
 and manipulate progress trace attributes. Attributes
 can be used when creating a new event or span.
 
- 
Constructor Summary
ConstructorsConstructorDescriptionInstantiate an empty attribute objectAttributes(String name, String value) Instantiate an attribute object - 
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear all existng attributesbooleanCheck if attribute exists by its namestatic AttributesBuild attributes from aHashMapGet an attribute's valuemerge(Attributes otherAttrs) Merge 2 attribute objectsvoidSet an attribute name and valuetoMap()Convert the current attributes toHashMapformat 
- 
Constructor Details
- 
Attributes
public Attributes()Instantiate an empty attribute object - 
Attributes
Instantiate an attribute object- Parameters:
 name- the name of the attributevalue- the value of the attribute
 
 - 
 - 
Method Details
- 
set
Set an attribute name and value- Parameters:
 name- the name of the attributevalue- the value of the attribute
 - 
getValue
Get an attribute's value- Parameters:
 name- the atrribute's name- Returns:
 - the value as 
String. This can returnnullif the value is not found. 
 - 
contains
Check if attribute exists by its name- Parameters:
 name- the atrribute's name- Returns:
 - true if the attribute exists, false otherwise
 
 - 
toMap
Convert the current attributes toHashMapformat- Returns:
 - attributes in 
HashMap 
 - 
fromMap
Build attributes from aHashMap- Parameters:
 map- attributes inHashMap- Returns:
 Attributesobject
 - 
merge
Merge 2 attribute objects- Parameters:
 otherAttrs- other attributes- Returns:
 - a new 
Attributesobject 
 - 
clear
public void clear()Clear all existng attributes 
 -