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 Object
clone()
boolean
equals(Object obj)
String
getDescription()
Gets the description of this info itemString
getGuid()
Gets the Global Unique ID (GUID) of this info itemString
getId()
Gets the (local) id of this info itemString
getName()
Gets the name of this info itemint
hashCode()
void
setDescription(String description)
Sets the description of this info itemvoid
setGuid(String guid)
Sets the Global Unique ID (GUID) of this info itemvoid
setId(String id)
Sets the (local) id of this info itemvoid
setName(String name)
Sets the name of this info itemString
toString()
-
-
-
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:
clone
in 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
-
-