public interface VizIdentifiable
This interface describes operations that would make a class uniquely identifiable.
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
This operation returns a clone of the Identifiable instance using a deep
copy.
|
boolean |
equals(java.lang.Object otherObject)
This operation is used to check equality between the ICE and another
Identifiable entity.
|
java.lang.String |
getDescription()
This operation retrieves the description of the Identifiable entity.
|
int |
getId()
This operation retrieves the identification number of the Identifiable
entity.
|
java.lang.String |
getName()
This operation retrieves the name of the Identifiable entity.
|
int |
hashCode()
This operation returns the hashcode value of the Identifiable entity.
|
void |
setDescription(java.lang.String description)
This operation sets the description of the Identifiable entity.
|
void |
setId(int id)
This operation sets the identification number of the Identifiable entity.
|
void |
setName(java.lang.String name)
This operation sets the name of the Identifiable entity.
|
void setId(int id)
This operation sets the identification number of the Identifiable entity. It must be greater than zero.
id
- The unique identification number that should be assigned to the Identifiable entity.
java.lang.String getDescription()
This operation retrieves the description of the Identifiable entity.
The description of the Identifiable entity.
int getId()
This operation retrieves the identification number of the Identifiable entity.
The unique identification number of the Identifiable entity.
void setName(java.lang.String name)
This operation sets the name of the Identifiable entity.
name
- The name that should be given to the Identifiable entity.
java.lang.String getName()
This operation retrieves the name of the Identifiable entity.
The name of the Identifiable entity.
void setDescription(java.lang.String description)
This operation sets the description of the Identifiable entity.
description
- The description that should be stored for the Identifiable entity.
boolean equals(java.lang.Object otherObject)
This operation is used to check equality between the ICE and another Identifiable entity. It returns true if the Identifiable entities are equal and false if they are not.
equals
in class java.lang.Object
otherObject
- The other Identifiable entity that should be compared with this one.
True if the Identifiable entitys are equal, false otherwise.
int hashCode()
This operation returns the hashcode value of the Identifiable entity.
hashCode
in class java.lang.Object
The hashcode of the Identifiable entity.
java.lang.Object clone()
This operation returns a clone of the Identifiable instance using a deep copy.
The new clone.