public class InfoItem
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected DataSection |
data
Map containing a set of attributes, stored as key-value pairs.
|
protected java.lang.String |
description
Description string
|
protected java.util.List<java.lang.String> |
modelReferences
List of model references (concepts in ontologies)
|
protected java.lang.String |
name
Name of the info item
|
Constructor and Description |
---|
InfoItem(java.lang.String name,
java.lang.String description,
DataSection data,
java.util.List<java.lang.String> modelReferences)
Creates a new information item
|
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(DataAttribute attr)
Adds an attribute as key-value pair to this information item.
|
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) |
DataSection |
getData() |
java.lang.String |
getDescription() |
java.util.List<java.lang.String> |
getModelReferences() |
java.lang.String |
getName() |
void |
setData(DataSection data)
Sets the information item's attributes.
|
void |
setDescription(java.lang.String description)
Sets the information item's description.
|
void |
setModelReferences(java.util.List<java.lang.String> modelReferences)
Sets the information item's list of model references.
|
void |
setName(java.lang.String name)
Sets the information item's name.
|
java.lang.String |
toString()
Returns a string representation of this information item.
|
protected java.lang.String name
protected java.lang.String description
protected DataSection data
protected java.util.List<java.lang.String> modelReferences
public InfoItem(java.lang.String name, java.lang.String description, DataSection data, java.util.List<java.lang.String> modelReferences)
name
- Name of the information itemdescription
- Description stringdata
- Map containing a set of attributes,modelReferences
- List containing a the model references stored as key-value
pairs.public java.lang.String getName()
public java.lang.String getDescription()
public DataSection getData()
public java.util.List<java.lang.String> getModelReferences()
public void setName(java.lang.String name)
name
- The information item's name.public void setDescription(java.lang.String description)
description
- The information item's description.public void setData(DataSection data)
data
- The information item's attributes.public void setModelReferences(java.util.List<java.lang.String> modelReferences)
modelReferences
- The information item's model references.public void addAttribute(java.lang.String key, java.lang.String value)
key
- Key of the given attribute.value
- Value of the given attribute.public void addAttribute(DataAttribute attr)
key
- Key of the given attribute.value
- Value of the given attribute.public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object