Package gov.nasa.pds.registry.model
Class Identifiable
- java.lang.Object
-
- gov.nasa.pds.registry.model.Identifiable
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ObjectRef
,RegistryObject
@MappedSuperclass public abstract class Identifiable extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Identifiable()
Identifiable(String guid, String home, Set<Slot> slots)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSlot(Slot slot)
Convenience method to add a slot to the set of slots.boolean
equals(Object obj)
String
getGuid()
String
getHome()
Slot
getSlot(String slotName)
Convenience method to look up a slot with a given name.Set<Slot>
getSlots()
int
hashCode()
void
setGuid(String guid)
void
setHome(String home)
void
setSlots(Set<Slot> slots)
-
-
-
Method Detail
-
getGuid
public String getGuid()
- Returns:
- the guid
-
getHome
public String getHome()
- Returns:
- the home
-
setGuid
public void setGuid(String guid)
- Parameters:
guid
- the global unique identifier to set
-
setHome
public void setHome(String home)
- Parameters:
home
- the home to set
-
getSlot
public Slot getSlot(String slotName)
Convenience method to look up a slot with a given name.- Parameters:
slotName
- to look for within the list of slots- Returns:
- Slot of null if not found
-
addSlot
public void addSlot(Slot slot)
Convenience method to add a slot to the set of slots.- Parameters:
slot
- to be added
-
-