org.processmining.framework.log
Class InfoItem

java.lang.Object
  extended by org.processmining.framework.log.InfoItem

public class InfoItem
extends java.lang.Object

A general information item from a workflow log.

Version:
2.0
Author:
Christian W. Guenther (christian at deckfour dot org), Peter van den Brand

Field Summary
protected  java.util.Map<java.lang.String,java.lang.String> data
          Map containing a set of attributes, stored as key-value pairs.
protected  java.lang.String description
          Description string
protected  java.lang.String name
          Name of the info item
 
Constructor Summary
InfoItem(java.lang.String name, java.lang.String description, java.util.Map<java.lang.String,java.lang.String> data)
          Creates a new information item
 
Method Summary
 void addAttribute(java.lang.String key, java.lang.String value)
          Adds an attribute as key-value pair to this information item.
 boolean equals(java.lang.Object other)
           
 java.util.Map<java.lang.String,java.lang.String> getData()
           
 java.lang.String getDescription()
           
 java.lang.String getName()
           
 void setData(java.util.Map<java.lang.String,java.lang.String> data)
          Sets the information item's attributes.
 void setDescription(java.lang.String description)
          Sets the information item's description.
 void setName(java.lang.String name)
          Sets the information item's name.
 java.lang.String toString()
          Returns a string representation of this information item.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected java.lang.String name
Name of the info item


description

protected java.lang.String description
Description string


data

protected java.util.Map<java.lang.String,java.lang.String> data
Map containing a set of attributes, stored as key-value pairs.

Constructor Detail

InfoItem

public InfoItem(java.lang.String name,
                java.lang.String description,
                java.util.Map<java.lang.String,java.lang.String> data)
Creates a new information item

Parameters:
name - Name of the information item
description - Description string
data - Map containing a set of attributes, stored as key-value pairs.
Method Detail

getName

public java.lang.String getName()
Returns:
The name of the information item

getDescription

public java.lang.String getDescription()
Returns:
The description of the information item

getData

public java.util.Map<java.lang.String,java.lang.String> getData()
Returns:
The attributes, stored as key-value pairs.

setName

public void setName(java.lang.String name)
Sets the information item's name.

Parameters:
name - The information item's name.

setDescription

public void setDescription(java.lang.String description)
Sets the information item's description.

Parameters:
description - The information item's description.

setData

public void setData(java.util.Map<java.lang.String,java.lang.String> data)
Sets the information item's attributes.

Parameters:
data - The information item's attributes.

addAttribute

public void addAttribute(java.lang.String key,
                         java.lang.String value)
Adds an attribute as key-value pair to this information item.

Parameters:
key - Key of the given attribute.
value - Value of the given attribute.

toString

public java.lang.String toString()
Returns a string representation of this information item.

Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object