Class DescriptionInfo
- java.lang.Object
-
- fi.tut.mei.resdescapi.rescatapi.model.DescriptionInfo
-
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
CapabilityInfo,CategoryInfo,DescriptionInfoWithCategories,InterfaceStdInfo,PropertyInfo
public class DescriptionInfo extends Object implements Cloneable
Data container for a single descriptive information element- Author:
- Niko Siltala
-
-
Constructor Summary
Constructors Constructor Description DescriptionInfo()Default constructorDescriptionInfo(String id, String guid, String name, String desc)Constructor for assigning information at construction.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()booleanequals(Object obj)StringgetDescription()Gets the description of this info itemStringgetGuid()Gets the Global Unique ID (GUID) of this info itemStringgetId()Gets the (local) id of this info itemStringgetName()Gets the name of this info iteminthashCode()voidsetDescription(String description)Sets the description of this info itemvoidsetGuid(String guid)Sets the Global Unique ID (GUID) of this info itemvoidsetId(String id)Sets the (local) id of this info itemvoidsetName(String name)Sets the name of this info itemStringtoString()
-
-
-
Constructor Detail
-
DescriptionInfo
public DescriptionInfo()
Default constructor
-
DescriptionInfo
public DescriptionInfo(String id, String guid, String name, String desc)
Constructor for assigning information at construction.- Parameters:
id- Id value for this information elementguid- Global Unique Id value for this information elementname- Name of this information elementdesc- Description of this information element
-
-
Method Detail
-
clone
public Object clone() throws CloneNotSupportedException
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
getId
public String getId()
Gets the (local) id of this info item- Returns:
- the id
-
setId
public void setId(String id)
Sets the (local) id of this info item- Parameters:
id- the id to set
-
getGuid
public String getGuid()
Gets the Global Unique ID (GUID) of this info item- Returns:
- the guid
-
setGuid
public void setGuid(String guid)
Sets the Global Unique ID (GUID) of this info item- Parameters:
guid- the guid to set
-
getName
public String getName()
Gets the name of this info item- Returns:
- the name
-
setName
public void setName(String name)
Sets the name of this info item- Parameters:
name- the name to set
-
getDescription
public String getDescription()
Gets the description of this info item- Returns:
- the description
-
setDescription
public void setDescription(String description)
Sets the description of this info item- Parameters:
description- the description to set
-
-