Package gov.nasa.pds.registry.model
Class RegistryObject
- java.lang.Object
-
- gov.nasa.pds.registry.model.Identifiable
-
- gov.nasa.pds.registry.model.RegistryObject
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Association
,AuditableEvent
,Classification
,ClassificationNode
,ClassificationScheme
,ExternalIdentifier
,ExternalLink
,ExtrinsicObject
,RegistryPackage
,Service
,ServiceBinding
,SpecificationLink
@MappedSuperclass public class RegistryObject extends Identifiable
The RegistryObject class extends the Identifiable class and serves as a common super class for most classes in the information model.- Author:
- pramirez
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RegistryObject()
Meant for JAXB onlyRegistryObject(RegistryObject object)
RegistryObject(String guid, String home, String lid, String name, String objectType)
Construct a registry object without a version
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Set<Classification>
getClassifications()
String
getDescription()
Set<ExternalIdentifier>
getExternalIdentifiers()
String
getLid()
String
getName()
String
getObjectType()
ObjectStatus
getStatus()
String
getVersionName()
int
hashCode()
void
setClassifications(Set<Classification> classifications)
void
setDescription(String description)
void
setExternalIdentifiers(Set<ExternalIdentifier> externalIdentifiers)
void
setLid(String lid)
void
setName(String name)
void
setObjectType(String objectType)
void
setStatus(ObjectStatus status)
void
setVersionName(String versionName)
-
-
-
Constructor Detail
-
RegistryObject
public RegistryObject()
Meant for JAXB only
-
RegistryObject
public RegistryObject(String guid, String home, String lid, String name, String objectType)
Construct a registry object without a version- Parameters:
guid
- globally unique identifierhome
- registry URIlid
- logical identifiername
-objectType
-
-
RegistryObject
public RegistryObject(RegistryObject object)
-
-
Method Detail
-
getLid
public String getLid()
- Returns:
- the lid
-
setLid
public void setLid(String lid)
- Parameters:
lid
- the lid to set
-
getName
public String getName()
- Returns:
- the name
-
setName
public void setName(String name)
- Parameters:
name
- the name to set
-
getObjectType
public String getObjectType()
- Returns:
- the objectType
-
setObjectType
public void setObjectType(String objectType)
- Parameters:
objectType
- the objectType to set
-
getStatus
public ObjectStatus getStatus()
- Returns:
- the status
-
setStatus
public void setStatus(ObjectStatus status)
- Parameters:
status
- the status to set
-
getDescription
public String getDescription()
- Returns:
- the description
-
setDescription
public void setDescription(String description)
- Parameters:
description
- the description to set
-
getVersionName
public String getVersionName()
- Returns:
- the internally tracked version
-
setVersionName
public void setVersionName(String versionName)
- Parameters:
versionName
- the version to set for the registry tracked version
-
getClassifications
public Set<Classification> getClassifications()
-
setClassifications
public void setClassifications(Set<Classification> classifications)
-
getExternalIdentifiers
public Set<ExternalIdentifier> getExternalIdentifiers()
-
setExternalIdentifiers
public void setExternalIdentifiers(Set<ExternalIdentifier> externalIdentifiers)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classIdentifiable
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classIdentifiable
-
-