Class CommonInfoContainer
- java.lang.Object
-
- fi.tut.mei.resdescapi.rescatapi.model.DescriptionInfo
-
- fi.tut.mei.resdescapi.rescatapi.model.DescriptionInfoWithCategories
-
- fi.tut.mei.resdescapi.rescatapi.model.CommonInfoContainer
-
- All Implemented Interfaces:
Cloneable
public abstract class CommonInfoContainer extends DescriptionInfoWithCategories
- Author:
- Niko Siltala
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,CapabilityInfo>
capabilitiesList
Collection of Capabilitiesprotected Map<String,InterfaceRefInfo>
interfaceRefList
Collection of InterfaceReferencesprotected Map<String,PropertyInfo>
propertiesList
Collection of Properties-
Fields inherited from class fi.tut.mei.resdescapi.rescatapi.model.DescriptionInfoWithCategories
categoriesList
-
-
Constructor Summary
Constructors Constructor Description CommonInfoContainer()
CommonInfoContainer(String id, String guid, String name, String desc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addCapabilityInfo(CapabilityInfo capabilityInfo)
Adds new capabilityInfo to this container's collectionboolean
addInterfaceRefInfo(InterfaceRefInfo interfaceRefInfo)
Adds new interfaceRefInfo to this container's collectionboolean
addPropertyInfo(PropertyInfo propertyInfo)
Adds new PropertyInfo to this container's collectionObject
clone()
boolean
equals(Object obj)
Map<String,CapabilityInfo>
getCapabilitiesList()
Map<String,InterfaceRefInfo>
getInterfaceRefList()
Map<String,PropertyInfo>
getPropertiesList()
int
hashCode()
void
setCapabilitiesList(Map<String,CapabilityInfo> capabilitiesList)
void
setInterfaceRefList(Map<String,InterfaceRefInfo> interfaceRefList)
void
setPropertiesList(Map<String,PropertyInfo> propertiesList)
-
Methods inherited from class fi.tut.mei.resdescapi.rescatapi.model.DescriptionInfoWithCategories
addCategoryInfo, getCategoriesList, setCategoriesList
-
Methods inherited from class fi.tut.mei.resdescapi.rescatapi.model.DescriptionInfo
getDescription, getGuid, getId, getName, setDescription, setGuid, setId, setName, toString
-
-
-
-
Field Detail
-
capabilitiesList
protected Map<String,CapabilityInfo> capabilitiesList
Collection of Capabilities
-
interfaceRefList
protected Map<String,InterfaceRefInfo> interfaceRefList
Collection of InterfaceReferences
-
propertiesList
protected Map<String,PropertyInfo> propertiesList
Collection of Properties
-
-
Method Detail
-
clone
public Object clone() throws CloneNotSupportedException
- Overrides:
clone
in classDescriptionInfoWithCategories
- Throws:
CloneNotSupportedException
-
getCapabilitiesList
public Map<String,CapabilityInfo> getCapabilitiesList()
- Returns:
- the capabilitiesList
-
setCapabilitiesList
public void setCapabilitiesList(Map<String,CapabilityInfo> capabilitiesList)
- Parameters:
capabilitiesList
- the capabilitiesList to set
-
addCapabilityInfo
public boolean addCapabilityInfo(CapabilityInfo capabilityInfo)
Adds new capabilityInfo to this container's collection- Parameters:
capabilityInfo
- information about this capability- Returns:
- true if it was added, false if not (e.g. it was existing there already).
-
getInterfaceRefList
public Map<String,InterfaceRefInfo> getInterfaceRefList()
- Returns:
- the interfaceRefList
-
setInterfaceRefList
public void setInterfaceRefList(Map<String,InterfaceRefInfo> interfaceRefList)
- Parameters:
interfaceRefList
- the interfaceRefList to set
-
addInterfaceRefInfo
public boolean addInterfaceRefInfo(InterfaceRefInfo interfaceRefInfo)
Adds new interfaceRefInfo to this container's collection- Parameters:
interfaceRefInfo
- information about this Interface Reference- Returns:
- true if it was added, false if not (e.g. it was existing there already).
-
getPropertiesList
public Map<String,PropertyInfo> getPropertiesList()
- Returns:
- the propertiesList
-
setPropertiesList
public void setPropertiesList(Map<String,PropertyInfo> propertiesList)
- Parameters:
propertiesList
- the propertiesList to set
-
addPropertyInfo
public boolean addPropertyInfo(PropertyInfo propertyInfo)
Adds new PropertyInfo to this container's collection- Parameters:
propertyInfo
- information about this Property- Returns:
- true if it was added, false if not (e.g. it was existing there already).
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classDescriptionInfo
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classDescriptionInfo
-
-