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 SummaryConstructors Constructor Description Identifiable()Identifiable(String guid, String home, Set<Slot> slots)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSlot(Slot slot)Convenience method to add a slot to the set of slots.booleanequals(Object obj)StringgetGuid()StringgetHome()SlotgetSlot(String slotName)Convenience method to look up a slot with a given name.Set<Slot>getSlots()inthashCode()voidsetGuid(String guid)voidsetHome(String home)voidsetSlots(Set<Slot> slots)
 
- 
- 
- 
Method Detail- 
getGuidpublic String getGuid() - Returns:
- the guid
 
 - 
getHomepublic String getHome() - Returns:
- the home
 
 - 
setGuidpublic void setGuid(String guid) - Parameters:
- guid- the global unique identifier to set
 
 - 
setHomepublic void setHome(String home) - Parameters:
- home- the home to set
 
 - 
getSlotpublic 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
 
 - 
addSlotpublic void addSlot(Slot slot) Convenience method to add a slot to the set of slots.- Parameters:
- slot- to be added
 
 
- 
 
-